From 92f806325611b49f29ee0d30f684feb40f804b1c Mon Sep 17 00:00:00 2001 From: Luca Sbardella Date: Sun, 30 Oct 2022 14:41:52 +0000 Subject: [PATCH] release --- .github/workflows/build.yml | 3 +++ MANIFEST.in | 6 ------ ccy/__init__.py | 2 +- pyproject.toml | 3 +++ 4 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 MANIFEST.in diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6c79b03..724d64c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,3 +34,6 @@ jobs: - name: upload coverage if: matrix.python-version == '3.11' run: make codecov + - name: publish + if: ${{ github.ref == 'refs/heads/main' && matrix.python-version == '3.10' && github.event.head_commit.message == 'release' }} + run: make publish diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 187649d..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1,6 +0,0 @@ -include MANIFEST.in -include README.rst -graft ccy -graft dev -graft docs -global-exclude *.pyc diff --git a/ccy/__init__.py b/ccy/__init__.py index f0e2bb9..7229baf 100644 --- a/ccy/__init__.py +++ b/ccy/__init__.py @@ -1,6 +1,6 @@ """Python currencies""" -__version__ = "1.2.2" +__version__ = "1.3.0" from .core.country import ( diff --git a/pyproject.toml b/pyproject.toml index 63ce6a7..452a088 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,6 +5,9 @@ description = "Python currencies" authors = ["Luca Sbardella "] license = "BSD" readme = "README.rst" +packages = [ + { include = "ccy" } +] [tool.poetry.dependencies] python = "^3.8,<3.12"