Skip to content

Commit

Permalink
Update to setuptools 75.6.0 + drop support for Python 3.8 (#337)
Browse files Browse the repository at this point in the history
Co-authored-by: Jens Vagelpohl <[email protected]>
  • Loading branch information
icemac and dataflake authored Dec 19, 2024
1 parent abd01d8 commit 46cc4a7
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 15 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# native support. It works, but is slow.
#
# Another major downside: You can't just re-run the job for one part
# of the matrix. So if there's a transient test failure that hit, say, 3.8,
# of the matrix. So if there's a transient test failure that hit, say, 3.11,
# to get a clean run every version of Python runs again. That's bad.
# https://github.community/t/ability-to-rerun-just-a-single-job-in-a-workflow/17234/65

Expand Down Expand Up @@ -97,7 +97,6 @@ jobs:
matrix:
python-version:
- "pypy-3.10"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
Expand Down Expand Up @@ -157,12 +156,12 @@ jobs:
if: matrix.python-version == '3.14'
run: |
pip install -U pip
pip install -U "setuptools < 74" wheel twine
pip install -U "setuptools <= 75.6.0" wheel twine
- name: Install Build Dependencies
if: matrix.python-version != '3.14'
run: |
pip install -U pip
pip install -U "setuptools < 74" wheel twine
pip install -U "setuptools <= 75.6.0" wheel twine
- name: Build zope.interface (macOS x86_64)
if: >
Expand Down Expand Up @@ -265,7 +264,6 @@ jobs:
matrix:
python-version:
- "pypy-3.10"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
Expand Down
2 changes: 0 additions & 2 deletions .manylinux-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ yum -y install libffi-devel

tox_env_map() {
case $1 in
*"cp38"*) echo 'py38';;
*"cp39"*) echo 'py39';;
*"cp310"*) echo 'py310';;
*"cp311"*) echo 'py311';;
Expand All @@ -42,7 +41,6 @@ tox_env_map() {
# Compile wheels
for PYBIN in /opt/python/*/bin; do
if \
[[ "${PYBIN}" == *"cp38/"* ]] || \
[[ "${PYBIN}" == *"cp39/"* ]] || \
[[ "${PYBIN}" == *"cp310/"* ]] || \
[[ "${PYBIN}" == *"cp311/"* ]] || \
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/c-code
[meta]
template = "c-code"
commit-id = "baf6089f"
commit-id = "d1a00d25"

[python]
with-pypy = true
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ repos:
- id: autopep8
args: [--in-place, --aggressive, --aggressive]
- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
rev: v3.19.0
hooks:
- id: pyupgrade
args: [--py38-plus]
args: [--py39-plus]
- repo: https://github.com/isidentical/teyit
rev: 0.4.3
hooks:
Expand Down
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
7.3 (unreleased)
================

- Nothing changed yet.
- Drop support for Python 3.8.


7.2 (2024-11-28)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# https://github.com/zopefoundation/meta/tree/master/config/c-code

[build-system]
requires = ["setuptools < 74"]
requires = ["setuptools <= 75.6.0"]
build-backend = "setuptools.build_meta"

[tool.coverage.run]
Expand Down
5 changes: 2 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
minversion = 4.0
envlist =
lint
py38,py38-pure
py39,py39-pure
py310,py310-pure
py311,py311-pure
Expand All @@ -18,7 +17,7 @@ envlist =
[testenv]
pip_pre = py314: true
deps =
setuptools < 74
setuptools <= 75.6.0
Sphinx
setenv =
pure: PURE_PYTHON=1
Expand Down Expand Up @@ -58,7 +57,7 @@ description = ensure that the distribution is ready to release
basepython = python3
skip_install = true
deps =
setuptools < 74
setuptools <= 75.6.0
twine
build
check-manifest
Expand Down

0 comments on commit 46cc4a7

Please sign in to comment.