From 2938fb08f3c85d0ef9a2fef358c1f1ae96e04466 Mon Sep 17 00:00:00 2001 From: Miku Laitinen Date: Tue, 7 May 2024 18:09:31 +0300 Subject: [PATCH] [CI] An attempt to fix PyPI publishing --- .github/workflows/build-and-publish.yml | 10 +++++----- setup.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index d3dd0ff..778154e 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -18,8 +18,8 @@ jobs: python-version: 3.9 - name: Install dependencies run: | - python setup.py install python -m pip install --upgrade pip + pip install . pip install flake8 pytest if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Lint with flake8 @@ -45,13 +45,13 @@ jobs: --wheel --outdir dist/ - name: Publish distribution 📦 to Test PyPI - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.TEST_PYPI_API_TOKEN }} - repository_url: https://test.pypi.org/legacy/ - skip_existing: true + repository-url: https://test.pypi.org/legacy/ + skip-existing: true - name: Publish distribution 📦 to PyPI if: startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/setup.py b/setup.py index 1e17950..209c1cd 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ import unittest -version = "2.0.2" +version = "2.0.3rc1" setup(name="ofxstatement-revolut", version=version,