Skip to content

Commit 394c5f6

Browse files
committed
start testing with Python 3.12.0rc1
1 parent d07a281 commit 394c5f6

File tree

3 files changed

+46
-45
lines changed

3 files changed

+46
-45
lines changed

.github/workflows/ci-tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
matrix:
2222
py-ver-major: [3]
23-
py-ver-minor: [6, 7, 8, 9, 10, 11]
23+
py-ver-minor: [6, 8, 9, 10, 11, 12]
2424
step: [lint, bandit, unit, mypy, memleak]
2525
exclude:
2626
- py-ver-major: 3
@@ -44,6 +44,7 @@ jobs:
4444
uses: actions/setup-python@v4
4545
with:
4646
python-version: ${{ env.py-semver }}
47+
allow-prereleases: true
4748
cache: pip
4849
cache-dependency-path: |
4950
requirements.txt

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
download_url="https://github.com/common-workflow-language/schema_salad/releases",
119119
ext_modules=ext_modules,
120120
license="Apache 2.0",
121-
python_requires=">=3.6,<3.12",
121+
python_requires=">=3.6,<3.13",
122122
setup_requires=pytest_runner + ["setuptools_scm"],
123123
packages=["schema_salad", "schema_salad.tests", "schema_salad.avro"],
124124
package_data={
@@ -167,11 +167,11 @@
167167
"Operating System :: MacOS :: MacOS X",
168168
"Development Status :: 5 - Production/Stable",
169169
"Programming Language :: Python :: 3.6",
170-
"Programming Language :: Python :: 3.7",
171170
"Programming Language :: Python :: 3.8",
172171
"Programming Language :: Python :: 3.9",
173172
"Programming Language :: Python :: 3.10",
174173
"Programming Language :: Python :: 3.11",
174+
"Programming Language :: Python :: 3.12",
175175
"Typing :: Typed",
176176
],
177177
use_scm_version=True,

tox.ini

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[tox]
22
envlist =
3-
py{36,37,38,39,310,311}-lint,
4-
py{36,37,38,39,310,311}-unit,
5-
py{37,38,39,310,311}-bandit,
6-
py{37,38,39,310,311}-mypy,
7-
py{37,38,39,310,311}-memleak,
8-
py310-lintreadme,
9-
py310-pydocstyle
3+
py3{6,8,9,10,11,12}-lint,
4+
py3{6,8,9,10,11,12}-unit,
5+
py3{8,9,10,11,12}-bandit,
6+
py3{8,9,10,11,12}-mypy,
7+
py3{8,9,10,11,12}-memleak,
8+
py311-lintreadme,
9+
py311-pydocstyle
1010

1111
skip_missing_interpreters = True
1212

@@ -17,72 +17,72 @@ testpaths=schema_salad/tests
1717
[gh-actions]
1818
python =
1919
3.6: py36
20-
3.7: py37
2120
3.8: py38
2221
3.9: py39
2322
3.10: py310
2423
3.11: py311
24+
3.12: py312
2525

2626
[testenv]
2727
description =
28-
py{36,37,38,39,310,311}-unit: Run the unit tests
29-
py{36,37,38,39,310,311}-lint: Lint the Python code
30-
py{37,38,39,310,311}-bandit: Search for common security issues
31-
py{37,38,39,310,311}-mypy: Check for type safety
32-
py{37,38,39,310,311}-memleak: Simple test for memory leaks with mypyc
33-
py310-pydocstyle: docstring style checker
34-
py310-lintreadme: Lint the README.rst->.md conversion
28+
py3{6,8,9,10,11,12}-unit: Run the unit tests
29+
py3{6,8,9,10,11,12}-lint: Lint the Python code
30+
py3{8,9,10,11,12}-bandit: Search for common security issues
31+
py3{8,9,10,11,12}-mypy: Check for type safety
32+
py3{8,9,10,11,12}-memleak: Simple test for memory leaks with mypyc
33+
py311-pydocstyle: docstring style checker
34+
py311-lintreadme: Lint the README.rst->.md conversion
3535

3636
passenv =
3737
CI
3838
GITHUB_*
3939
deps =
40-
py{36,37,38,39,310,311}-{unit,mypy}: -rrequirements.txt
41-
py{36,37,38,39,310,311}-{unit,mypy}: -rtest-requirements.txt
42-
py{36,37,38,39,310,311}-lint: flake8-bugbear < 22.13
43-
py{36,37,38,39,310,311}-lint: black
44-
py{37,38,39,310,311}-bandit: bandit < 1.8
45-
py{37,38,39,310,311}-{mypy,memleak}: -rmypy-requirements.txt
46-
py{37,38,39,310,311}-memleak: cwl-utils
47-
py{37,38,39,310,311}-memleak: objgraph
40+
py3{6,8,9,10,11,12}-{unit,mypy}: -rrequirements.txt
41+
py3{6,8,9,10,11,12}-{unit,mypy}: -rtest-requirements.txt
42+
py3{6,8,9,10,11,12}-lint: flake8-bugbear < 22.13
43+
py3{6,8,9,10,11,12}-lint: black
44+
py3{8,9,10,11,12}-bandit: bandit < 1.8
45+
py3{8,9,10,11,12}-{mypy,memleak}: -rmypy-requirements.txt
46+
py3{8,9,10,11,12}-memleak: cwl-utils
47+
py3{8,9,10,11,12}-memleak: objgraph
4848
# don't forget to update dev-requirements.txt as well
4949

5050
setenv =
51-
py{36,37,38,39,310,311}-unit: LC_ALL = C.UTF-8
51+
py3{6,8,9,10,11,12}-unit: LC_ALL = C.UTF-8
5252

5353
commands =
54-
py{36,37,38,39,310,311}-unit: python -m pip install -U pip setuptools wheel
55-
py{36,37,38,39,310,311}-unit: make --always-make coverage-report coverage.xml PYTEST_EXTRA="{posargs}"
56-
py{37,38,39,310,311}-bandit: bandit --recursive --exclude schema_salad/tests/ schema_salad
57-
py{36,37,38,39,310,311}-lint: make flake8
58-
py{36,37,38,39,310,311}-lint: make format-check
59-
py{37,38,39,310,311}-mypy: make mypy
60-
py{37,38,39,310,311}-mypy: make mypyc
61-
py{37,38,39,310,311}-memleak: make mypyi
62-
py{37,38,39,310,311}-memleak: python schema_salad/tests/memory-leak-check.py schema_salad/tests/test_real_cwl/ICGC-TCGA-PanCancer/preprocess_vcf.cwl
63-
py37-mypy: make mypy_3.6
54+
py3{6,8,9,10,11,12}-unit: python -m pip install -U pip setuptools wheel
55+
py3{6,8,9,10,11,12}-unit: make --always-make coverage-report coverage.xml PYTEST_EXTRA="{posargs}"
56+
py3{8,9,10,11,12}-bandit: bandit --recursive --exclude schema_salad/tests/ schema_salad
57+
py3{6,8,9,10,11,12}-lint: make flake8
58+
py3{6,8,9,10,11,12}-lint: make format-check
59+
py3{8,9,10,11,12}-mypy: make mypy
60+
py3{8,9,10,11,12}-mypy: make mypyc
61+
py3{8,9,10,11,12}-memleak: make mypyi
62+
py3{8,9,10,11,12}-memleak: python schema_salad/tests/memory-leak-check.py schema_salad/tests/test_real_cwl/ICGC-TCGA-PanCancer/preprocess_vcf.cwl
63+
py38-mypy: make mypy_3.6
6464

6565
allowlist_externals =
66-
py{36,37,38,39,310,311}-lint: flake8
67-
py{36,37,38,39,310,311}-lint: black
68-
py{36,37,38,39,310,311}-{mypy,memleak,shellcheck,lint,lintreadme,unit}: make
66+
py3{6,8,9,10,11,12}-lint: flake8
67+
py3{6,8,9,10,11,12}-lint: black
68+
py3{6,8,9,10,11,12}-{mypy,memleak,shellcheck,lint,lintreadme,unit}: make
6969

7070
skip_install =
71-
py{36,37,38,39,310,311}-lint: true
72-
py{37,38,39,310,311}-bandit: true
71+
py3{6,8,9,10,11,12}-lint: true
72+
py3{8,9,10,11,12}-bandit: true
7373

7474
extras =
75-
py{36,37,38,39,310,311}-unit: pycodegen
75+
py3{6,8,9,10,11,12}-unit: pycodegen
7676

77-
[testenv:py310-pydocstyle]
77+
[testenv:py311-pydocstyle]
7878
allowlist_externals = make
7979
commands = make diff_pydocstyle_report
8080
deps =
8181
pydocstyle
8282
diff-cover
8383
skip_install = true
8484

85-
[testenv:py310-lintreadme]
85+
[testenv:py311-lintreadme]
8686
description = Lint the README.rst->.md conversion
8787
commands =
8888
make clean dist

0 commit comments

Comments
 (0)