From f5fa277715bb30a7b72aac41f5af9363d75338b3 Mon Sep 17 00:00:00 2001 From: Ellery Alvarez Date: Fri, 27 Oct 2023 13:57:53 -0500 Subject: [PATCH] Updated compatibility info, dropping 3.7 and adding 3.12 --- .github/workflows/main.yml | 9 +++++---- setup.py | 7 +++++++ tox.ini | 6 +++--- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2ffed4c..c9eef83 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,20 +22,21 @@ jobs: fail-fast: false matrix: python-version: - - 3.7 - 3.8 - 3.9 - "3.10" - "3.11" + - "3.12" - pypy3.9 steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Install dependencies run: | @@ -45,7 +46,7 @@ jobs: # sed is used to remove the '.' so '3.7' becomes '37' for tox (and pypy3 doesn't become pypypy3) run: | tox --skip-missing-interpreters=false -e py`echo ${{ matrix.python-version }} | sed s/\\\.// | sed s/pypy/py/` - tox --skip-missing-interpreters=false -e py`echo ${{ matrix.python-version }} | sed s/\\\.// | sed s/pypy/py/`-no-dep + tox --skip-missing-interpreters=false -e py`echo ${{ matrix.python-version }} | sed s/\\\.// | sed s/pypy/py/`-nodep buildcheck: name: buildcheck @@ -53,7 +54,7 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-python@v4 with: diff --git a/setup.py b/setup.py index 5711f36..64f1994 100644 --- a/setup.py +++ b/setup.py @@ -42,5 +42,12 @@ zip_safe=False, classifiers=[ 'License :: OSI Approved :: BSD License', + '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', + 'Programming Language :: Python :: 3.12', ] ) diff --git a/tox.ini b/tox.ini index 5111d57..731a3d0 100644 --- a/tox.ini +++ b/tox.ini @@ -1,18 +1,18 @@ [tox] skip_missing_interpreters = True envlist = - py{py3,37,38,39,310,311}{,-nodep},buildcheck + py{py3,38,39,310,311,312}{,-nodep},buildcheck [testenv] recreate = True commands = python test.py -[testenv:py{py3,37,38,39,310,311}-nodep] +[testenv:py{py3,38,39,310,311,312}-nodep] recreate = True # install without deps to simulate when many packages are being installed and this one gets installed # before 'regex'. We want to avoid any installation errors/warnings if 'regex' isn't available (yet) install_command = python -m pip install --no-deps {opts} {packages} -allowlist_externals = /bin/bash +allowlist_externals = bash commands = # no output from python itself (site.py) loading our .pth file bash -c 'python -c "pass" 2>&1 | ( ! grep . )'