Skip to content

Commit 7a59552

Browse files
committed
Improve stub package for PEP 561 compliance and better IDE autocompletion
- Add `py.typed` marker files to all packages (PEP 561) - Fix `cadwork/__init__.pyi` re-exports using `from .x import x as x` syntax - Add `__all__` to `cadwork/__init__.pyi` and `api_types.pyi` - Replace deprecated `typing.List`/`Dict`/`Tuple` with built-in generics (Python 3.12+) - Use `TypeAlias` for type aliases in `api_types.pyi` - Add `py.typed` and `*.pyi` to setuptools package-data in `pyproject.toml
1 parent 512394e commit 7a59552

44 files changed

Lines changed: 597 additions & 527 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "cwapi3d"
3-
version = "32.443.5"
3+
version = "32.443.6"
44
authors = [{ name = "Cadwork", email = "it@cadwork.ca" }]
55
requires-python = ">= 3.12"
66
description = 'Python bindings for CwAPI3D'
@@ -49,5 +49,8 @@ packages = [
4949
]
5050
package-dir = { "" = "src" }
5151

52+
[tool.setuptools.package-data]
53+
"*" = ["*.pyi", "py.typed"]
54+
5255
[tool.setuptools.exclude-package-data]
53-
"*" = [".py"]
56+
"*" = ["*.py"]

0 commit comments

Comments
 (0)