From 871971a3cb92f2152c41829e6b0e94b662aebb5c Mon Sep 17 00:00:00 2001 From: Alex Hall Date: Sun, 6 Oct 2024 16:17:51 +0200 Subject: [PATCH 1/3] Test Python 3.13 --- .github/workflows/build-and-test.yml | 3 +++ setup.cfg | 11 ++--------- tox.ini | 2 +- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 2f3c25f..88660a4 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -17,6 +17,7 @@ jobs: - '3.10' - 3.11 - 3.12 + - 3.13 # As per https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md#pypy list of versions - pypy-3.8 - pypy-3.9 @@ -36,6 +37,8 @@ jobs: astroid-version: '<3' - python-version: '3.12' astroid-version: '<3' + - python-version: '3.13' + astroid-version: '<3' - python-version: 'pypy-3.10' astroid-version: '<3' diff --git a/setup.cfg b/setup.cfg index 9a3e834..c0b786c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -23,6 +23,7 @@ classifiers = Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 Programming Language :: Python :: 3.12 + Programming Language :: Python :: 3.13 Programming Language :: Python :: Implementation :: CPython Programming Language :: Python :: Implementation :: PyPy @@ -32,13 +33,12 @@ install_requires = six >= 1.12.0 typing; python_version < "3.5" setup_requires = setuptools>=44; setuptools_scm[toml]>=3.4.3 +python_requires = >=3.8 [options.extras_require] astroid = - astroid >=1, <2; python_version < "3" astroid >=2, <4; python_version >= "3" test = - astroid >=1, <2; python_version < "3" astroid >=2, <4; python_version >= "3" pytest pytest-cov @@ -47,13 +47,6 @@ test = [options.package_data] asttokens = py.typed -[bdist_wheel] -# This flag says that the code is written to work on both Python 2 and Python -# 3. If at all possible, it is good practice to do this. If you cannot, you -# will need to generate wheels for each Python version that you support. -universal=1 - - [tool:pytest] addopts = --disable-warnings --ignore=tests/testdata --strict-markers -m 'not slow' markers = diff --git a/tox.ini b/tox.ini index 4eb45e6..fc281e9 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ # and then run "tox" from this directory. [tox] -envlist = py{38,39,310,311,py,py3} +envlist = py{38,39,310,311,312,313,py3} [testenv] commands = pytest {posargs} From 6930ce09c26a2018ec0c44ae722ea3289d8958f2 Mon Sep 17 00:00:00 2001 From: Alex Hall Date: Sun, 6 Oct 2024 16:24:23 +0200 Subject: [PATCH 2/3] latest ubuntu --- .github/workflows/build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 88660a4..a53dfa8 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -7,7 +7,7 @@ on: workflow_dispatch: jobs: test: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: fail-fast: false matrix: From 8cbac3dc216ca07b75c2f2faef2475102c180f45 Mon Sep 17 00:00:00 2001 From: Alex Hall Date: Sun, 6 Oct 2024 16:26:41 +0200 Subject: [PATCH 3/3] allow-prereleases --- .github/workflows/build-and-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index a53dfa8..5fcfd14 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -49,10 +49,10 @@ jobs: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - if: matrix.python-version != '2.7' - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Install dependencies run: |