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
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed
- Pinned `headerkit` and `headerkit[treesitter]` dependencies to `==0.48.1` in `pyproject.toml` and `uv.lock`, and updated Cython macro-function comment snapshot fixtures (`zlib.expected.pxd`, `jansson.expected.pxd`, `json_lib.expected.pxd`) to match `headerkit` 0.48.1 output.

## [4.0.3] - 2026-10-28

### Changed
- Pinned `headerkit` and `headerkit[treesitter]` dependencies to `==0.48.1` in `pyproject.toml` and `uv.lock`, and updated Cython macro-function comment snapshot fixtures (`zlib.expected.pxd`, `jansson.expected.pxd`, `json_lib.expected.pxd`) to match `headerkit` 0.48.1 output.

## [4.0.2] - 2026-10-21

### Changed
Expand Down Expand Up @@ -317,7 +325,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- macOS support

[Unreleased]: https://github.com/elijahr/python-autopxd2/compare/v4.0.2...HEAD
[Unreleased]: https://github.com/elijahr/python-autopxd2/compare/v4.0.3...HEAD
[4.0.3]: https://github.com/elijahr/python-autopxd2/compare/v4.0.2...v4.0.3
[4.0.2]: https://github.com/elijahr/python-autopxd2/compare/v4.0.1...v4.0.2
[4.0.1]: https://github.com/elijahr/python-autopxd2/compare/v4.0.0...v4.0.1
[4.0.0]: https://github.com/elijahr/python-autopxd2/compare/v3.2.3...v4.0.0
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "autopxd2"
version = "4.0.2"
version = "4.0.3"
description = "Automatically generate Cython pxd files from C headers"
readme = "README.md"
license = { file = "LICENSE" }
Expand All @@ -31,14 +31,14 @@ classifiers = [
requires-python = ">=3.11"
dependencies = [
"Click",
"headerkit>=0.46.2,<1.0.0",
"headerkit==0.48.1",
]

[project.optional-dependencies]
# libclang backend (C++ support) - headerkit vendors clang bindings, kept for backwards compatibility
libclang = []
# tree-sitter backend - headerkit owns the tree-sitter dependency set
treesitter = ["headerkit[treesitter]>=0.46.2,<1.0.0"]
treesitter = ["headerkit[treesitter]==0.48.1"]

# Testing
# tree-sitter is included so the default dev install exercises both backends
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/realistic_headers/json_lib.expected.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ cdef extern from "json_lib.h":
char text[160]


int JSON_INDENT(int n)
# Macro function 'JSON_INDENT(n)' skipped (preprocessor macro)

int json_is_object(const json_t* json)

Expand Down
44 changes: 22 additions & 22 deletions test/real_headers/jansson.expected.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -15,51 +15,51 @@ cdef extern from "jansson.h":

int JANSSON_THREAD_SAFE_REFCOUNT

int JANSSON_ATTRS(int x)
# Macro function 'JANSSON_ATTRS(x)' skipped (preprocessor macro)

const char* JSON_INTEGER_FORMAT

int json_typeof(int json)
# Macro function 'json_typeof(json)' skipped (preprocessor macro)

int json_is_object(int json)
# Macro function 'json_is_object(json)' skipped (preprocessor macro)

int json_is_array(int json)
# Macro function 'json_is_array(json)' skipped (preprocessor macro)

int json_is_string(int json)
# Macro function 'json_is_string(json)' skipped (preprocessor macro)

int json_is_integer(int json)
# Macro function 'json_is_integer(json)' skipped (preprocessor macro)

int json_is_real(int json)
# Macro function 'json_is_real(json)' skipped (preprocessor macro)

int json_is_number(int json)
# Macro function 'json_is_number(json)' skipped (preprocessor macro)

int json_is_true(int json)
# Macro function 'json_is_true(json)' skipped (preprocessor macro)

int json_is_false(int json)
# Macro function 'json_is_false(json)' skipped (preprocessor macro)

int json_is_boolean(int json)
# Macro function 'json_is_boolean(json)' skipped (preprocessor macro)

int json_is_null(int json)
# Macro function 'json_is_null(json)' skipped (preprocessor macro)

int json_boolean(int val)
# Macro function 'json_boolean(val)' skipped (preprocessor macro)

int JSON_INTERNAL_INCREF(int json)
# Macro function 'JSON_INTERNAL_INCREF(json)' skipped (preprocessor macro)

int JSON_INTERNAL_DECREF(int json)
# Macro function 'JSON_INTERNAL_DECREF(json)' skipped (preprocessor macro)

int JSON_ERROR_TEXT_LENGTH

int JSON_ERROR_SOURCE_LENGTH

int json_object_foreach(int object, int key, int value)
# Macro function 'json_object_foreach(object, key, value)' skipped (preprocessor macro)

int json_object_keylen_foreach(int object, int key, int key_len, int value)
# Macro function 'json_object_keylen_foreach(object, key, key_len, value)' skipped (preprocessor macro)

int json_object_foreach_safe(int object, int n, int key, int value)
# Macro function 'json_object_foreach_safe(object, n, key, value)' skipped (preprocessor macro)

int json_object_keylen_foreach_safe(int object, int n, int key, int key_len, int value)
# Macro function 'json_object_keylen_foreach_safe(object, n, key, key_len, value)' skipped (preprocessor macro)

int json_array_foreach(int array, int index, int value)
# Macro function 'json_array_foreach(array, index, value)' skipped (preprocessor macro)

int JSON_VALIDATE_ONLY

Expand All @@ -77,7 +77,7 @@ cdef extern from "jansson.h":

int JSON_MAX_INDENT

int JSON_INDENT(int n)
# Macro function 'JSON_INDENT(n)' skipped (preprocessor macro)

int JSON_COMPACT

Expand All @@ -91,7 +91,7 @@ cdef extern from "jansson.h":

int JSON_ESCAPE_SLASH

int JSON_REAL_PRECISION(int n)
# Macro function 'JSON_REAL_PRECISION(n)' skipped (preprocessor macro)

int JSON_EMBED

Expand Down
14 changes: 7 additions & 7 deletions test/real_headers/zlib.expected.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,17 @@ cdef extern from "zlib.h":

int Z_NULL

int deflateInit(int strm, int level)
# Macro function 'deflateInit(strm, level)' skipped (preprocessor macro)

int inflateInit(int strm)
# Macro function 'inflateInit(strm)' skipped (preprocessor macro)

int deflateInit2(int strm, int level, int method, int windowBits, int memLevel, int strategy)
# Macro function 'deflateInit2(strm, level, method, windowBits, memLevel, strategy)' skipped (preprocessor macro)

int inflateInit2(int strm, int windowBits)
# Macro function 'inflateInit2(strm, windowBits)' skipped (preprocessor macro)

int inflateBackInit(int strm, int windowBits, int window)
# Macro function 'inflateBackInit(strm, windowBits, window)' skipped (preprocessor macro)

int gzgetc(int g)
# Macro function 'gzgetc(g)' skipped (preprocessor macro)

ctypedef voidpf (*alloc_func)(voidpf opaque, uInt items, uInt size)

Expand Down Expand Up @@ -328,7 +328,7 @@ cdef extern from "zlib.h":

int MAX_WBITS

int OF(int args)
# Macro function 'OF(args)' skipped (preprocessor macro)

int SEEK_SET

Expand Down
12 changes: 6 additions & 6 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading