From 6876d9307c03002330c9204c3e67a8337db2f68a Mon Sep 17 00:00:00 2001 From: Bashir ABDEL WAHED Date: Sat, 15 Mar 2025 16:14:02 +0000 Subject: [PATCH 1/2] test with python3.11 and python3.13 --- setup.py | 4 ++-- tox.ini | 4 ++-- vine/synchronization.py | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 4755502..92fc7b1 100644 --- a/setup.py +++ b/setup.py @@ -15,12 +15,12 @@ Development Status :: 5 - Production/Stable Programming Language :: Python Programming Language :: Python :: 3 - Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 Programming Language :: Python :: 3.12 + Programming Language :: Python :: 3.13 Programming Language :: Python :: 3 :: Only Programming Language :: Python :: Implementation :: CPython Programming Language :: Python :: Implementation :: PyPy @@ -112,7 +112,7 @@ def run_tests(self): platforms=['any'], classifiers=classifiers, license='BSD', - python_requires=">=3.6", + python_requires=">=3.9", install_requires=[], tests_require=reqs('test.txt'), cmdclass={'test': pytest}, diff --git a/tox.ini b/tox.ini index c5e5937..74f1afa 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - {pypy3,3.12,3.8,3.9,3.10}-unit + {pypy3,3.9,3.10,3.11,3.12,3.13}-unit flake8 apicheck pydocstyle @@ -20,9 +20,9 @@ commands = py.test -xv --cov=vine --cov-report=xml --no-cov-on-fail t/unit {posa basepython = flake8,apicheck,linkcheck,pydocstyle: python3.10 pypy3: pypy3.10 - 3.8: python3.8 3.9: python3.9 3.10: python3.10 + 3.11: python3.11 3.12: python3.12 [testenv:apicheck] diff --git a/vine/synchronization.py b/vine/synchronization.py index 539a5fc..26cfd85 100644 --- a/vine/synchronization.py +++ b/vine/synchronization.py @@ -32,6 +32,7 @@ def all_done(): Note that you cannot add new promises to a barrier after the barrier is fulfilled. """ + __slots__ = ( 'p', 'args', 'kwargs', '_value', 'size', 'ready', 'reason', 'cancelled', 'finalized', From f5624c51bdceea2c426e20a83c9f917f8aa53d36 Mon Sep 17 00:00:00 2001 From: Bashir ABDEL WAHED Date: Sun, 16 Mar 2025 15:42:03 +0000 Subject: [PATCH 2/2] consistently use python 3.8->3.13 + pypy3.10 in tests --- .github/workflows/ci.yml | 2 +- setup.py | 1 - tox.ini | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be759be..89c0c88 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ jobs: runs-on: blacksmith-4vcpu-ubuntu-2204 strategy: matrix: - python-version: [3.8,3.9,"3.10","3.12"] + python-version: ["3.9","3.10","3.11","3.12","3.13","pypy3.10"] steps: - name: Check out code from GitHub uses: actions/checkout@v4 diff --git a/setup.py b/setup.py index 92fc7b1..1c8c9fc 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,6 @@ Development Status :: 5 - Production/Stable Programming Language :: Python Programming Language :: Python :: 3 - Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 diff --git a/tox.ini b/tox.ini index 74f1afa..f159e77 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - {pypy3,3.9,3.10,3.11,3.12,3.13}-unit + {3.9,3.10,3.11,3.12,3.13,pypy3.10}-unit flake8 apicheck pydocstyle @@ -19,7 +19,7 @@ commands = py.test -xv --cov=vine --cov-report=xml --no-cov-on-fail t/unit {posa basepython = flake8,apicheck,linkcheck,pydocstyle: python3.10 - pypy3: pypy3.10 + pypy3.10: pypy3.10 3.9: python3.9 3.10: python3.10 3.11: python3.11