Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Python 3.11 preparation #206

Merged
merged 2 commits into from
Jul 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:

pull_request:
branches: ["main", "master"]

schedule:
- cron: '0 6 * * MON' # Every Monday morning
- cron: "0 6 * * MON" # Every Monday morning

workflow_dispatch:

Expand All @@ -28,7 +28,8 @@ jobs:
- "3.7"
- "3.8"
- "3.9"
- "3.10.0"
- "3.10"
- "3.11.0-beta.4"
- "pypy2"
- "pypy-3.7"
exclude:
Expand Down
16 changes: 16 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@

Features ^^^^^^^^

- Added Python 3.11 testing

`#206 <https://github.com/hamcrest/PyHamcrest/issues/206>`_


Misc ^^^^

- `#175 <https://github.com/hamcrest/PyHamcrest/issues/175>`_


----


2.0.3 (2021-12-12)
------------------

Expand Down
1 change: 0 additions & 1 deletion changelog.d/175.misc.rst

This file was deleted.

3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ def read(fname):
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: Jython",
"Programming Language :: Python :: Implementation :: PyPy",
Expand Down
11 changes: 11 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ python =
3.8: py38, py38-numpy
3.9: py39, py39-numpy, lint, manifest, typing, changelog, docs
3.10: py310
3.11: py311
pypy-2: pypy2
pypy-3: pypy3

Expand Down Expand Up @@ -96,6 +97,16 @@ setenv =
extras = {env:TOX_AP_TEST_EXTRAS:tests}
commands = coverage run -m pytest {posargs}

[testenv:py311]
# Python 3.6+ has a number of compile-time warnings on invalid string escapes.
# PYTHONWARNINGS=d and --no-compile below make them visible during the Tox run.
basepython = python3.10
install_command = pip install --no-compile {opts} {packages}
setenv =
PYTHONWARNINGS=d
extras = {env:TOX_AP_TEST_EXTRAS:tests}
commands = coverage run -m pytest {posargs}

[testenv:coverage-report]
basepython = python3.9
skip_install = true
Expand Down