Skip to content

Commit

Permalink
Add preliminary support for Python 3.12b2. (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Jun 13, 2023
1 parent e446c14 commit 8396795
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 12 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12.0-alpha.7"
- "3.12.0-beta.2"
os: [ubuntu-20.04, macos-11]
exclude:
- os: macos-11
Expand Down Expand Up @@ -179,15 +179,15 @@ jobs:
python setup.py build_ext -i
python setup.py bdist_wheel
- name: Install zope.security and dependencies (3.12.0-alpha.7)
if: matrix.python-version == '3.12.0-alpha.7'
- name: Install zope.security and dependencies (3.12.0-beta.2)
if: matrix.python-version == '3.12.0-beta.2'
run: |
# Install to collect dependencies into the (pip) cache.
# Use "--pre" here because dependencies with support for this future
# Python release may only be available as pre-releases
pip install --pre .[test]
- name: Install zope.security and dependencies
if: matrix.python-version != '3.12.0-alpha.7'
if: matrix.python-version != '3.12.0-beta.2'
run: |
# Install to collect dependencies into the (pip) cache.
pip install .[test]
Expand Down Expand Up @@ -231,7 +231,7 @@ jobs:
&& startsWith(github.ref, 'refs/tags')
&& startsWith(runner.os, 'Mac')
&& !startsWith(matrix.python-version, 'pypy')
&& !startsWith(matrix.python-version, '3.12.0-alpha.7')
&& !startsWith(matrix.python-version, '3.12.0-beta.2')
env:
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: |
Expand All @@ -250,7 +250,7 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12.0-alpha.7"
- "3.12.0-beta.2"
os: [ubuntu-20.04, macos-11]
exclude:
- os: macos-11
Expand Down Expand Up @@ -287,8 +287,8 @@ jobs:
with:
name: zope.security-${{ runner.os }}-${{ matrix.python-version }}.whl
path: dist/
- name: Install zope.security 3.12.0-alpha.7
if: ${{ startsWith(matrix.python-version, '3.12.0-alpha.7') }}
- name: Install zope.security 3.12.0-beta.2
if: ${{ startsWith(matrix.python-version, '3.12.0-beta.2') }}
run: |
pip install -U wheel setuptools
# coverage has a wheel on PyPI for a future python version which is
Expand All @@ -302,7 +302,7 @@ jobs:
# Python release may only be available as pre-releases
pip install --pre -U -e .[test]
- name: Install zope.security
if: ${{ !startsWith(matrix.python-version, '3.12.0-alpha.7') }}
if: ${{ !startsWith(matrix.python-version, '3.12.0-beta.2') }}
run: |
pip install -U wheel setuptools
pip install -U coverage
Expand Down
7 changes: 6 additions & 1 deletion .meta.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ additional-rules = [

[check-manifest]
additional-ignores = [
"docs/_build/html/_sources/api/*",
"docs/_build/*/*/*/*/*",
"docs/_build/*/*/*/*",
"docs/_build/*/*/*",
"docs/_build/*/*",
"docs/_build/*",
"src/coverage.xml",
]

[flake8]
Expand Down
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

- Drop using ``setup_requires`` due to constant problems on GHA.

- Add preliminary support for Python 3.12 as of 3.12a7 -- even though there are
- Add preliminary support for Python 3.12 as of 3.12b2 -- even though there are
currently tests breaking, so please do not consider it fully supported.


Expand Down
7 changes: 6 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ ignore =
.meta.toml
docs/_build/html/_sources/*
docs/_build/doctest/*
docs/_build/html/_sources/api/*
docs/_build/*/*/*/*/*
docs/_build/*/*/*/*
docs/_build/*/*/*
docs/_build/*/*
docs/_build/*
src/coverage.xml

[isort]
force_single_line = True
Expand Down

0 comments on commit 8396795

Please sign in to comment.