From 0166b5ec3e8b4d20003e891b3e6d329efb9d7f2f Mon Sep 17 00:00:00 2001 From: Michael Kryukov Date: Sun, 3 Dec 2023 23:00:58 +0300 Subject: [PATCH] refactor: updated releasing process --- .github/workflows/check.yml | 2 +- .github/workflows/deploy.yml | 8 ++++---- setup.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 5a74c61..cd05c3a 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -15,7 +15,7 @@ jobs: max-parallel: 4 matrix: os: [windows-latest, ubuntu-latest] - python-version: ["3.7", "3.10"] + python-version: ["3.7", "3.11"] steps: - uses: actions/checkout@v1 - name: Set up Python ${{ matrix.python-version }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d2b2c5e..bca00b4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,7 +10,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: ["3.10"] + python-version: ["3.11"] steps: - uses: actions/checkout@v1 @@ -20,17 +20,17 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - python3 -m pip install --upgrade pip setuptools wheel twine + python3 -m pip install --upgrade pip build wheel twine python3 -m pip install -r requirements.txt - name: Test with coverage and pytest run: | make test - name: Generate distribution archives run: | - python3 setup.py sdist bdist_wheel + python3 -m build - name: Upload the distribution archives run: | - python3 -m twine upload dist/* + python3 -m twine upload --verbose dist/* env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} diff --git a/setup.py b/setup.py index a6a401e..35f2de3 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ assert os.environ.get('GITHUB_REF_TYPE') == 'tag' assert os.environ.get('GITHUB_REF_NAME') -VERSION = os.environ['GITHUB_REF_NAME'] +VERSION = os.environ['GITHUB_REF_NAME'].lstrip('v') with open("README.md", "r") as fh: