Skip to content

Commit

Permalink
Drop Python 2 and old Python 3; add Python 3.12 and 3.13; not expecte…
Browse files Browse the repository at this point in the history
…d to build on 3.13 right now

Because of zodb/persistent/cffi from nti.testing.
  • Loading branch information
jamadden committed Jun 11, 2024
1 parent 492a6ff commit 53d1cc9
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 32 deletions.
30 changes: 11 additions & 19 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,39 +17,31 @@ jobs:
fail-fast: false
matrix:
os:
- ["ubuntu", "ubuntu-20.04"]
- ["ubuntu", "ubuntu-latest"]
config:
# [Python version, tox env]
- ["3.9", "lint"]
- ["2.7", "py27"]
- ["3.6", "py36"]
- ["3.7", "py37"]
- ["3.12", "lint"]
- ["3.8", "py38"]
- ["3.9", "py39"]
- ["3.10", "py310"]
- ["3.11", "py311"]
- ["pypy-2.7", "pypy"]
- ["pypy-3.7", "pypy3"]
- ["3.9", "docs"]
- ["3.9", "coverage"]
- ["3.12", "py312"]
- ["3.13", "py313"]
- ["pypy-3.10", "pypy3"]
- ["3.12", "docs"]
- ["3.12", "coverage"]

runs-on: ${{ matrix.os[1] }}
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
name: ${{ matrix.config[1] }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.config[0] }}
- name: Pip cache
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.config[0] }}-
${{ runner.os }}-pip-
cache: 'pip'
cache-dependency-path: setup.py
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
5 changes: 3 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
Changes
=========

4.3.1 (unreleased)
5.0.0 (unreleased)
==================

- Nothing changed yet.
- Add support for Python 3.12 and 3.13.
- Drop support for Python 2 and anything less than Python 3.8.


4.3.0 (2023-05-05)
Expand Down
13 changes: 6 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import codecs
from setuptools import setup, find_packages

version = '4.3.1.dev0'
version = '5.0.0.dev0'

entry_points = {
'console_scripts': [
Expand All @@ -16,7 +16,6 @@
'zope.component',
'zope.testrunner',
'ZODB',
'mock; python_version == "2.7"',
]

def _read(fname):
Expand All @@ -40,19 +39,19 @@ def _read(fname):
'Operating System :: OS Independent',
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'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 :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Framework :: ZODB',
],
python_requires=">=3.8",
packages=find_packages('src'),
package_dir={'': 'src'},
include_package_data=True,
Expand Down
6 changes: 2 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@
minversion = 3.18
envlist =
lint
py27
py36
py37
py38
py39
py310
py311
pypy
py312
py313
pypy3
docs
coverage
Expand Down

0 comments on commit 53d1cc9

Please sign in to comment.