From f8c22726ef62ea3ab8b81563f5121128c6117b35 Mon Sep 17 00:00:00 2001 From: Bradley Reynolds Date: Sat, 3 Feb 2024 17:29:43 -0600 Subject: [PATCH] Add py.typed to package data (#68) * Add py.typed to package data Signed-off-by: GitHub * Make lints happy Signed-off-by: GitHub --------- Signed-off-by: GitHub --- docs/source/changelog.rst | 6 +++--- pyproject.toml | 5 ++++- src/letsbuilda/pypi/models/models_json.py | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/docs/source/changelog.rst b/docs/source/changelog.rst index 5acce3e..cd79ddf 100644 --- a/docs/source/changelog.rst +++ b/docs/source/changelog.rst @@ -1,9 +1,9 @@ -.. See docs for details on formatting your entries - https://releases.readthedocs.io/en/latest/concepts.html - Changelog ========= +- :release:`5.0.1 <3rd February 2024>` +- :bug:`67` Use a single function to get versioned package metadata + - :release:`5.0.0 <31st July 2023>` - :feature:`48` Replace requests and aiohttp with HTTPX - :feature:`35` Add sync client diff --git a/pyproject.toml b/pyproject.toml index 914ca9d..c8274a5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "letsbuilda-pypi" -version = "5.0.0" +version = "5.0.1" description = "A wrapper for PyPI's API and RSS feed" authors = [ { name = "Bradley Reynolds", email = "bradley.reynolds@darbia.dev" }, @@ -37,6 +37,9 @@ docs = [ requires = ["setuptools", "wheel"] build-backend = "setuptools.build_meta" +[tool.setuptools.package-data] +"letsbuilda.pypi" = ["py.typed"] + [tool.black] target-version = ["py311"] line-length = 120 diff --git a/src/letsbuilda/pypi/models/models_json.py b/src/letsbuilda/pypi/models/models_json.py index 65983c9..2ae9437 100644 --- a/src/letsbuilda/pypi/models/models_json.py +++ b/src/letsbuilda/pypi/models/models_json.py @@ -9,7 +9,7 @@ class Vulnerability: """Security vulnerability.""" - id: str # noqa: A003 - fields named exactly the same as the upstream + id: str aliases: list[str] link: str source: str @@ -99,7 +99,7 @@ class Info: downloads: Downloads home_page: str keywords: str - license: str # noqa: A003 - fields named exactly the same as the upstream + license: str maintainer: str maintainer_email: str name: str