Skip to content

Commit

Permalink
Drop Python 3.7 support. (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
icemac committed Jun 3, 2024
1 parent 9a103ae commit d877851
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 25 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,18 @@ jobs:
fail-fast: false
matrix:
os:
- ["ubuntu", "ubuntu-20.04"]
- ["ubuntu", "ubuntu-latest"]
config:
# [Python version, tox env]
- ["3.9", "release-check"]
- ["3.9", "lint"]
- ["3.7", "py37"]
- ["3.11", "release-check"]
- ["3.11", "lint"]
- ["3.8", "py38"]
- ["3.9", "py39"]
- ["3.10", "py310"]
- ["3.11", "py311"]
- ["3.12", "py312"]
- ["pypy-3.10", "pypy3"]
- ["3.9", "docs"]
- ["3.11", "docs"]

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
Expand All @@ -53,7 +52,11 @@ jobs:
python -m pip install --upgrade pip
pip install tox
- name: Test
if: ${{ !startsWith(runner.os, 'Mac') }}
run: tox -e ${{ matrix.config[1] }}
- name: Test (macOS)
if: ${{ startsWith(runner.os, 'Mac') }}
run: tox -e ${{ matrix.config[1] }}-universal2
- name: Coverage
if: matrix.config[1] == 'coverage'
run: |
Expand Down
2 changes: 1 addition & 1 deletion .meta.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://github.com/zopefoundation/meta/tree/master/config/toolkit
[meta]
template = "toolkit"
commit-id = "e45966cd"
commit-id = "2247fc22"

[python]
with-sphinx-doctests = false
Expand Down
5 changes: 5 additions & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@

.. note:: The buildout versions file for all current versions can be found at https://zopefoundation.github.io/groktoolkit/

6.0 (unreleased)
----------------

- Drop support for Python 3.7.

5.0 (2024-04-23)
----------------

Expand Down
11 changes: 0 additions & 11 deletions grok-versions.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,6 @@ z3c.autoinclude = 1.0
zc.recipe.egg = 2.0.7
zdaemon = 5.1

[versions:python37]
# newer Chameleon versions are either yanked or require Python 3.8+
Chameleon = 4.2.0
importlib-metadata = 7.0.0
importlib-resources = 5.12.0
# Newer versions require Python 3.8+
soupsieve = 2.4.1
typing-extensions = 4.7.1
waitress = 2.1.2
zipp = 3.15.0

[versions:python38]
# newer Chameleon versions require Python 3.9+
Chameleon = 4.4.4
Expand Down
2 changes: 0 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/toolkit
[bdist_wheel]
universal = 0

[flake8]
doctests = 1
Expand Down
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup

version = '3.0.0a2.dev0'
version = '6.0.dev0'

with open('README.rst') as f:
README = f.read()
Expand All @@ -17,7 +17,6 @@
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Zope Public License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand All @@ -27,8 +26,8 @@
"Programming Language :: Python :: Implementation :: CPython",
],
zip_safe=False,
python_requires='>=3.7',
python_requires='>=3.8',
install_requires=[],
entry_points={},
packages=[],
)
)
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ minversion = 3.18
envlist =
release-check
lint
py37
py38
py39
py310
Expand All @@ -17,6 +16,7 @@ envlist =
[testenv]
skip_install = true
deps =
setuptools < 69
zc.buildout >= 3.0.1
wheel > 0.37
setenv =
Expand Down Expand Up @@ -59,7 +59,7 @@ deps =
commands_pre =
commands =
check-manifest
check-python-versions
check-python-versions --only setup.py,tox.ini,.github/workflows/tests.yml
python -m build --sdist --no-isolation
twine check dist/*

Expand Down

0 comments on commit d877851

Please sign in to comment.