From 7cb43b5ba72701c7d152f553d17a8c5c39d8753d Mon Sep 17 00:00:00 2001 From: Marcin Anforowicz Date: Tue, 9 Jul 2024 12:10:31 -0700 Subject: [PATCH] Added py.typed to project (#343) Fixes #342. Added a `py.typed` marker file to enable typing, per [PEP561](https://peps.python.org/pep-0561/). Also included the file in `setup.cfg`. --------- Co-authored-by: Marcin Anforowicz Co-authored-by: Pavel Kirienko --- CHANGELOG.rst | 8 ++++++-- pycyphal/_version.py | 2 +- pycyphal/py.typed | 0 setup.cfg | 3 +++ 4 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 pycyphal/py.typed diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 0d5f723bf..19db3c3f5 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -3,12 +3,17 @@ Changelog ========= +v1.20 +----- +- Add the `py.typed` annotation (`#343 `_). + v1.19 ----- - Implement configure_acceptance_filters for socketcan. - **v1.19.1:** - Fix socketcan timestamp on newer 32 bit kernel. + + - Fix socketcan timestamp on newer 32 bit kernel. v1.18 ----- @@ -179,7 +184,6 @@ v1.2 - In ``pyuavcan.dsdl``: rename ``generate_package`` into ``compile``, add ``compile_all``. - v1.1 ---- diff --git a/pycyphal/_version.py b/pycyphal/_version.py index 90fa0968e..0dcddbc87 100644 --- a/pycyphal/_version.py +++ b/pycyphal/_version.py @@ -1 +1 @@ -__version__ = "1.19.1" +__version__ = "1.20.0" diff --git a/pycyphal/py.typed b/pycyphal/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/setup.cfg b/setup.cfg index 2bb0c1bf1..0c580f5d0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -70,6 +70,9 @@ include = pycyphal.* [options.package_data] +# Include the py.typed file for the pycyphal package +pycyphal = py.typed + # jingle bells jingle bells # jingle all the way * =