Skip to content

Commit

Permalink
Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
noahp committed Oct 18, 2023
1 parent d37fd86 commit 8371a3a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
matrix:
# note: 3.5 + 3.6 are EOL as of 2022-09-16. tests do fail on python3.5,
# see https://github.com/HBehrens/puncover/issues/36
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
# it's convenient to stay on an older ubuntu as long as we need
# python3.6:
# https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
Expand All @@ -36,9 +36,9 @@ jobs:

- name: Install dependencies
run: |
# this is the latest version of pip that supports python 3.6
# install a specific version to hopefully avoid breakage
pip install --upgrade pip==21.3.1
# bind pip to a specific version to hopefully avoid breakage
pip install -r .github/workflows/requirements-pip.txt
pip install -r requirements-test.txt
- name: Run tox
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/requirements-pip.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# install pip 23.3 on python 3.12+
pip==23.3 ; python_version >= "3.12" and python_version < "4.0"

# this is the latest version of pip that supports python 3.6
pip==21.3.1 ; python_version < "3.12"
11 changes: 6 additions & 5 deletions .python-version
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
3.6.15
3.7.16
3.8.16
3.9.16
3.10.10
3.11.2
3.7.17
3.8.18
3.9.18
3.10.13
3.11.6
3.12.0
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def run(self):
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
packages=find_packages(exclude=["tests", "tests.*"]),
include_package_data=True,
Expand Down

0 comments on commit 8371a3a

Please sign in to comment.