Skip to content

Commit

Permalink
Adds testing against recent Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
funkyfuture committed Jul 22, 2023
1 parent 3d638a0 commit baded65
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 28 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
- 3.7 # 2023-06-07
- 3.8 # 2024-10
- 3.9 # 2025-10
- 3.10 # 2026-10
- 3.11 # 2027-10
- pypy3.7
- pypy3.8
- pypy3.9
Expand Down
3 changes: 0 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ yours.
Versioning & Interpreter support
--------------------------------

The Cerberus `1.x` versions can be used with Python 2 while version `2.0` and
later rely on Python 3 features.

Starting with Cerberus 1.2, it is maintained according to
`semantic versioning`_. So, a major release sheds off the old and defines a
space for the new, minor releases ship further new features and improvements
Expand Down
23 changes: 4 additions & 19 deletions docs/contribute.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,32 +24,17 @@ that the interpreters themselves need to be available on the system.
$ tox
This might take some time the first run as the different virtual environments
are created and dependencies are installed. If everything is ok, you will see
the following:

.. code-block:: console
_________ summary _________
py27: commands succeeded
py34: commands succeeded
py35: commands succeeded
py36: commands succeeded
pypy: commands succeeded
pypy3: commands succeeded
doclinks: commands succeeded
doctest: commands succeeded
linting: commands succeeded
congratulations :)
are created and dependencies are installed.

If something goes **wrong** and one test fails, you might need to run that test
in the specific python version. You can use the created environments to run
some specific tests. For example, if a test suite fails in Python 3.5:
some specific tests. For example, if a test suite fails in Python 3.11:

.. code-block:: console
$ tox -e py35
$ tox -e py311
Have a look at ``tox.ini`` for the available test environments and their workings.
Have a look at ``tox.ini`` for the available test environments and their setup.

Using Pytest
~~~~~~~~~~~~
Expand Down
7 changes: 2 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,12 @@
"License :: OSI Approved :: ISC License (ISCL)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"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 :: PyPy",
],
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist=py37,py38,py39,pypy3,doclinks,doctest,linting
envlist=py37,py38,py39,py310,py311,pypy3,doclinks,doctest,linting

[testenv]
deps=pytest
Expand Down

0 comments on commit baded65

Please sign in to comment.