From 543c5fba0877fb50bc7f2ace63bc9f331915141c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Wale=C5=84?= Date: Mon, 25 Nov 2024 17:02:56 +0100 Subject: [PATCH] Release of version 2.2.0 (#83) * migration to pyproject.toml * fixing workflow * adding optional dependencies for tests * added python parametrization for CI pytest * new release --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ pyproject.toml | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..11dc9ee --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: publish +run-name: Publish to PyPi +on: + release: + types: [published] + +jobs: + build-and-publish: + name: Build and publish to PyPi + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.8 + - name: Install build + run: | + python3 -m pip install build + python3 -m pip install setuptools --upgrade + - name: Build + run: | + python3 -m build --sdist --wheel --outdir dist/ . + - name: Publish + if: startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_TOKEN }} \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 233945d..c89591f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,7 @@ dependencies = [ "requests", "six", ] -version = "2.1.5" +version = "2.2.0" [project.urls] "homepage" = "https://github.com/sio2project/filetracker"