Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:

- run: mk docs
if: |
matrix.python-version == '3.12'
matrix.python-version == '3.13'
&& matrix.system == 'ubuntu-latest'

- run: mk python-test
Expand All @@ -77,16 +77,16 @@ jobs:
env:
TWINE_USERNAME: __token__
if: |
matrix.python-version == '3.12'
matrix.python-version == '3.13'
&& matrix.system == 'ubuntu-latest'
&& env.TWINE_PASSWORD != ''
&& github.ref_name == 'master'

- run: |
mk python-release owner=libre-embedded \
repo=ifgen version=4.4.5
repo=ifgen version=4.5.0
if: |
matrix.python-version == '3.12'
matrix.python-version == '3.13'
&& matrix.system == 'ubuntu-latest'
&& env.GITHUB_API_TOKEN != ''
&& github.ref_name == 'master'
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
=====================================
generator=datazen
version=3.2.3
hash=bb7c6c6ee9e74f924d3169c09662b491
hash=ad4ce6e07bb17efc31e796eb165cb185
=====================================
-->

# ifgen ([4.4.5](https://pypi.org/project/ifgen/))
# ifgen ([4.5.0](https://pypi.org/project/ifgen/))

[![python](https://img.shields.io/pypi/pyversions/ifgen.svg)](https://pypi.org/project/ifgen/)
![Build Status](https://github.com/libre-embedded/ifgen/workflows/Python%20Package/badge.svg)
Expand Down Expand Up @@ -40,27 +40,27 @@ This package is tested on the following platforms:
# Command-line Options

```
$ ./venv3.12/bin/ig -h
$ ./venv3.13/bin/ig -h

usage: ig [-h] [--version] [-v] [-q] [--curses] [--no-uvloop] [-C DIR]
{gen,svd,noop} ...

An interface generator for distributed computing.

options:
-h, --help show this help message and exit
--version show program's version number and exit
-v, --verbose set to increase logging verbosity
-q, --quiet set to reduce output
--curses whether or not to use curses.wrapper when starting
--no-uvloop whether or not to disable uvloop as event loop driver
-C DIR, --dir DIR execute from a specific directory
-h, --help show this help message and exit
--version show program's version number and exit
-v, --verbose set to increase logging verbosity
-q, --quiet set to reduce output
--curses whether or not to use curses.wrapper when starting
--no-uvloop whether or not to disable uvloop as event loop driver
-C, --dir DIR execute from a specific directory

commands:
{gen,svd,noop} set of available commands
gen generate interfaces
svd process CMSIS-SVD files
noop command stub (does nothing)
{gen,svd,noop} set of available commands
gen generate interfaces
svd process CMSIS-SVD files
noop command stub (does nothing)

```

Expand Down
4 changes: 2 additions & 2 deletions ifgen/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# =====================================
# generator=datazen
# version=3.2.3
# hash=67eaf4ed029fdce58622eee8dd8cfdf0
# hash=8042bfab9549cff58935b1dd444a1e8f
# =====================================

"""
Expand All @@ -10,4 +10,4 @@

DESCRIPTION = "An interface generator for distributed computing."
PKG_NAME = "ifgen"
VERSION = "4.4.5"
VERSION = "4.5.0"
5 changes: 1 addition & 4 deletions ifgen/plugins/struct_receiver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,7 @@ def cpp_struct_receiver(task: GenerateTask) -> None:
writer.empty()

writer.c_comment("Read identifier and advance buffer.")
writer.write(
"struct_id_t ident = "
"handle_endian<struct_id_t, endianness>("
)
writer.write("struct_id_t ident = handle_endian<endianness>(")
with writer.indented():
writer.write(
"*reinterpret_cast<const struct_id_t *>(data));"
Expand Down
3 changes: 2 additions & 1 deletion ifgen/svd/group/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def get_enum_name(name: str, peripheral: str, raw_mapping: EnumValues) -> str:

hashed = hash(
",".join(
name + f"={val['value']}" for name, val in raw_mapping.items()
name + f"={val['value']}"
for name, val in sorted(raw_mapping.items())
)
)

Expand Down
4 changes: 2 additions & 2 deletions local/variables/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
major: 4
minor: 4
patch: 5
minor: 5
patch: 0
entry: ig
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta:__legacy__"

[project]
name = "ifgen"
version = "4.4.5"
version = "4.5.0"
description = "An interface generator for distributed computing."
readme = "README.md"
requires-python = ">=3.12"
Expand Down
2 changes: 1 addition & 1 deletion tests/data/valid/scenarios/sample/ifgen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ custom:
c: 3
file2: *data

clang_format: clang-format-18
clang_format: clang-format-19

structs:
Test1:
Expand Down