Skip to content

Commit

Permalink
CPython 3.12 support, drop 3.7 (#405)
Browse files Browse the repository at this point in the history
Add support and testing for py3.12, drop 3.7 since EOL.
Change a test to `assert_has_calls`, since `has_calls` seems to be depreciated in 3.12.
  • Loading branch information
trappitsch committed Jan 29, 2024
1 parent ec4d072 commit f9aecf1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Expand Up @@ -23,8 +23,6 @@ jobs:
strategy:
matrix:
include:
- python-version: 3.7
TOXENV: "py37"
- python-version: 3.8
TOXENV: "py38"
- python-version: 3.9
Expand All @@ -35,6 +33,8 @@ jobs:
TOXENV: "py310"
- python-version: "3.11"
TOXENV: "py311"
- python-version: "3.12"
TOXENV: "py312"
steps:
- uses: actions/checkout@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -112,7 +112,7 @@ send, one can use the following functions to do so:
Python Version Compatibility
----------------------------

At this time, Python 3.7, 3.8, 3.9, 3.10, and 3.11 are supported. Should you encounter
At this time, Python 3.8, 3.9, 3.10, 3.11, and 3.12 are supported. Should you encounter
any problems with this library that occur in one version or another, please
do not hesitate to let us know.

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -12,11 +12,11 @@ classifiers =
Development Status :: 4 - Beta
Programming Language :: Python
Programming Language :: Python :: 3
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 :: 3.12
Operating System :: OS Independent
License :: OSI Approved :: GNU Affero General Public License v3
Intended Audience :: Science/Research
Expand Down
2 changes: 1 addition & 1 deletion tests/test_newport/test_newportesp301.py
Expand Up @@ -191,7 +191,7 @@ def test_define_program(prg_id):
mock.call("EP", target=prg_id),
mock.call("QP"),
)
mock_cmd.has_calls(calls)
mock_cmd.assert_has_calls(calls)


@given(prg_id=st.integers().filter(lambda x: x < 1 or x > 100))
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
@@ -1,5 +1,5 @@
[tox]
envlist = py{37,38,39,310,311},py{37,38,39,310,311}-numpy,pylint
envlist = py{38,39,310,311,312},py{38,39,310,311,312}-numpy,pylint
isolated_build = true

[testenv]
Expand Down

0 comments on commit f9aecf1

Please sign in to comment.