Skip to content

Commit 44b79bc

Browse files
authored
add some newer versions to tox (#314)
* add some newer versions to tox" * add warning about 3.12 * update jenkinsfile to add 3.10 and 3.11
1 parent 3e73a41 commit 44b79bc

File tree

9 files changed

+19
-63
lines changed

9 files changed

+19
-63
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,27 @@
1-
Contributing to Lewis
2-
=====================
3-
1+
# Contributing to Lewis
42
Contributions to Lewis are always welcome and there are different ways of
53
contributing to the framework. We aim to respond to all communications within
64
one working day.
75

86

9-
Reporting Issues
10-
----------------
11-
7+
## Reporting Issues
128
If you run into any issues or bugs while using Lewis or find the documentation
139
of a feature unclear, you can help us improve Lewis by
14-
`opening an Issue <https://github.com/ess-dmsc/lewis/issues/new>`__
15-
here on GitHub. Please be sure to include enough information to reproduce the
10+
opening an issue here on GitHub. Please be sure to include enough information to reproduce the
1611
issue.
1712

18-
If you've already created a fix, you can also directly
19-
`submit a Pull Request <#submitting-pull-requests>`__.
20-
21-
22-
Requesting Features
23-
-------------------
13+
If you've already created a fix, you can also directly submit a pull request.
2414

15+
## Requesting Features
2516
If a feature you want is missing from Lewis, feel free to
26-
`open an Issue <https://github.com/ess-dmsc/lewis/issues/new>`__
27-
here on GitHub to request it. Please describe the context and the expected
17+
open an issue here on GitHub to request it. Please describe the context and the expected
2818
behaviour in detail.
2919

3020
If you've already implemented a new feature and would like to submit it, you
31-
can also directly `submit a Pull Request <#submitting-pull-requests>`__.
21+
can also directly submit a pull request.
3222

33-
34-
Submitting Pull Requests
35-
------------------------
36-
37-
We are happy to accept contributed Pull Requests from forks. Please read through the
23+
## Submitting Pull Requests
24+
We are happy to accept contributed pull requests from forks. Please read through the
3825
developer guide to get started.
3926

4027
If your Pull Request addresses any open Issues, please reference them with a
@@ -51,10 +38,7 @@ Please ensure your Pull Request passes all integration tests and is able to be
5138
merged with the main branch automatically.
5239

5340

54-
Submitting Devices
55-
------------------
56-
41+
## Submitting Devices
5742
If you have a device you would like to contribute to the main repository, we
5843
are happy to accept these as a Pull Request as well. Please see the
5944
documentation for details on how to write a device simulator.
60-

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ builders = pipeline_builder.createBuilders { container ->
5252
pipeline_builder.stage("${container.key}: Test") {
5353
def test_output = "TestResults.xml"
5454
container.sh """
55-
pyenv local 3.7 3.8 3.9
55+
pyenv local 3.7 3.8 3.9 3.10 3.11
5656
cd ${project}
5757
python -m tox -- --junitxml=${test_output}
5858
"""

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
Lewis - Let's write intricate simulators.
33

44
Lewis is a Python framework for simulating hardware devices. It is
5-
compatible with Python 3.6 or higher.
5+
compatible with Python 3.7 to 3.11.
6+
7+
It is currently not compatible with 3.12 as the asyncchat module has been removed from Python.
8+
We are going to fix this at some point.
69

710
Lewis can be installed via pip or ran from source. See relevant usage sections of the docs for more details.
811

requirements-dev.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
-r requirements.txt
2-
-r requirements-sphinx.txt
32
approvaltests
43
isort
54
mock
@@ -13,6 +12,5 @@ tox-pyenv
1312
twine
1413
wheel
1514

16-
# Pin to match versions in pre-commit hooks
1715
black==22.6.0
1816
flake8==3.8.4

requirements-sphinx.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pyzmq==23.2.1
1+
pyzmq
22
json-rpc
33
semantic_version
44
PyYAML

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def readme():
4848
],
4949
keywords="hardware simulation controls",
5050
packages=find_packages(exclude=["tests", "tests.*"]),
51-
python_requires=">=3.6.0",
51+
python_requires=">=3.7.0",
5252
install_requires=["pyzmq", "json-rpc", "semantic_version", "PyYAML", "scanf"],
5353
extras_require={
5454
"epics": ["pcaspy"],

tox.ini

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,27 @@
11
[tox]
2-
envlist = py37, py38, py39, flake8, coverage, docs
2+
envlist = py37, py38, py39, py310, py311, flake8, coverage
33
isolated_build = true
44
skipsdist=true
55

66
[testenv]
77
description = Run unit tests, arguments are forwarded to pytest.
88
deps =
99
-r{toxinidir}/requirements-dev.txt
10-
requests<2.30.0
1110
commands =
1211
python -m pytest tests system_tests/lewis_tests.py {posargs}
1312

1413
[testenv:flake8]
1514
description = Run flake8.
1615
deps =
1716
-r{toxinidir}/requirements-dev.txt
18-
requests<2.30.0
1917
commands =
2018
python -m flake8 setup.py lewis scripts system_tests tests
2119

2220
[testenv:coverage]
2321
description = Run unit tests with Python and collect coverage data.
2422
basepython =
25-
python3.7
23+
python3.9
2624
deps =
2725
-r{toxinidir}/requirements-dev.txt
28-
requests<2.30.0
2926
commands =
3027
python -m pytest --cov=lewis.core --cov=lewis.devices tests
31-
32-
[testenv:docs]
33-
description = Build the documentation and treat warnings as errors.
34-
basepython =
35-
python3.7
36-
deps =
37-
-r{toxinidir}/requirements-dev.txt
38-
requests<2.30.0
39-
commands =
40-
sphinx-build -W -b html -d {envtmpdir}/doctrees docs/ docs/_build/html

0 commit comments

Comments
 (0)