From 6c286c1bda3bc7efe70c9720b23adced2d810d5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A0n=20Todorovich?= Date: Thu, 29 Jun 2023 13:01:20 -0300 Subject: [PATCH] Bump supported python versions --- .github/workflows/main.yml | 34 +++++++++++++--------------------- setup.py | 4 ++-- 2 files changed, 15 insertions(+), 23 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2d6c107..f35e0a4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,13 +12,12 @@ jobs: lint: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: "3.11" - name: Install tox run: pip install tox - name: Run lint @@ -28,24 +27,17 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: [2.7, 3.5, 3.6, 3.7, 3.8] + python: ["3.7", "3.8", "3.9", "3.10", "3.11"] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} - - name: Install dependencies - run: | - pip install -U pip - pip install -U setuptools - sudo apt update - sudo apt install -y build-essential libpq-dev python-dev - name: Install tox run: pip install tox - - name: Run tox - # Run tox using the version of Python in `PATH` + - name: Run tests run: tox -e py deploy: @@ -53,17 +45,17 @@ jobs: needs: [lint, test] if: startsWith(github.ref, 'refs/tags') steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: - python-version: '3.8' + python-version: "3.11" - name: Install dependencies run: | - pip install -U pip - pip install -U wheel setuptools + python -m pip install --upgrade pip + pip install build - name: Build package - run: python setup.py sdist bdist_wheel + run: python -m build - name: Publish package to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: diff --git a/setup.py b/setup.py index 6ce7d0a..7e3a3be 100644 --- a/setup.py +++ b/setup.py @@ -54,8 +54,6 @@ 'License :: OSI Approved :: ' 'GNU Affero General Public License v3 or later (AGPLv3+)', 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', @@ -63,6 +61,8 @@ 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', ),