Skip to content

Commit

Permalink
Updated compatibility info, dropping 3.7 and adding 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellery Alvarez authored and brondsem committed Oct 27, 2023
1 parent f713fdf commit f5fa277
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -45,15 +46,15 @@ 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
runs-on: ubuntu-latest

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:
Expand Down
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]
)
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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 . )'
Expand Down

0 comments on commit f5fa277

Please sign in to comment.