From 2338bc97f2533f49ac66e42e8fb3d406aafe1f0f Mon Sep 17 00:00:00 2001 From: Dan Callahan Date: Mon, 8 Mar 2021 20:50:51 +0000 Subject: [PATCH] Version 2.1.0 Re-arranges file organization so that a `py.typed` marker can be included to signal PEP 561 compliance. This allows mypy to use the type hints provided by this package. Signed-off-by: Dan Callahan --- .github/workflows/continuous-integration.yml | 6 +++--- pyproject.toml | 5 +---- tests/__init__.py | 0 test_unpaddedbase64.py => tests/test_unpaddedbase64.py | 0 unpaddedbase64.py => unpaddedbase64/__init__.py | 0 unpaddedbase64/py.typed | 0 6 files changed, 4 insertions(+), 7 deletions(-) create mode 100644 tests/__init__.py rename test_unpaddedbase64.py => tests/test_unpaddedbase64.py (100%) rename unpaddedbase64.py => unpaddedbase64/__init__.py (100%) create mode 100644 unpaddedbase64/py.typed diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 799a7ed..91426fe 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -22,13 +22,13 @@ jobs: python -m pip install flake8 black mypy - name: Lint with flake8 run: | - flake8 *.py + flake8 unpaddedbase64/ tests/ - name: Lint with black run: | - black --check --diff *.py + black --check --diff unpaddedbase64/ tests/ - name: Lint with mypy run: | - mypy --strict *.py + mypy --strict unpaddedbase64/ tests/ test: needs: lint diff --git a/pyproject.toml b/pyproject.toml index 115d74f..eed1454 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,16 +4,13 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "unpaddedbase64" -version = "2.0.0" +version = "2.1.0" description = 'Encode and decode Base64 without "=" padding' license = "Apache-2.0" authors = [ "The Matrix.org Foundation C.I.C." ] readme = "README.rst" homepage = "https://github.com/matrix-org/python-unpaddedbase64" keywords = ["base64"] -packages = [ - { include = "unpaddedbase64.py" } -] [tool.poetry.urls] "Issue Tracker" = "https://github.com/matrix-org/python-unpaddedbase64/issues" diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/test_unpaddedbase64.py b/tests/test_unpaddedbase64.py similarity index 100% rename from test_unpaddedbase64.py rename to tests/test_unpaddedbase64.py diff --git a/unpaddedbase64.py b/unpaddedbase64/__init__.py similarity index 100% rename from unpaddedbase64.py rename to unpaddedbase64/__init__.py diff --git a/unpaddedbase64/py.typed b/unpaddedbase64/py.typed new file mode 100644 index 0000000..e69de29