Skip to content

Commit b3e0740

Browse files
authored
Update supported Python versions (#1293)
* remove python 3.6 and add 3.11 * pin benchmark * fix version pin
1 parent 7473d13 commit b3e0740

File tree

5 files changed

+23
-19
lines changed

5 files changed

+23
-19
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
os: [ubuntu-latest, macos-latest, windows-latest]
23-
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
23+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
2424
timeout-minutes: 360
2525

2626
steps:

.github/workflows/safety.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
os: [ubuntu-latest, macos-latest, windows-latest]
19-
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
19+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
2020
timeout-minutes: 120
2121

2222
steps:

release-notes/next-release.md

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## New features
44

55
* View number of genes in model notebook representation.
6+
* added support for Python 3.11
67

78
## Fixes
89

@@ -23,6 +24,8 @@
2324

2425
## Deprecated features
2526

27+
* dropped support for Python 3.6
28+
2629
## Backwards incompatible changes
2730
* Removed `model.add_reaction()` and replaced remaining usages of it with `model.add_reactions()`
2831
* Removed the following tests: test_add_remove_reaction_benchmark, test_add_reaction,

setup.cfg

+12-12
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ parse = (?P<major>\d+)
66
\.(?P<minor>\d+)
77
\.(?P<patch>\d+)
88
(?P<release>[a]*)(?P<num>\d*)
9-
serialize =
9+
serialize =
1010
{major}.{minor}.{patch}{release}{num}
1111
{major}.{minor}.{patch}
1212
tag_name = {new_version}
@@ -15,33 +15,33 @@ tag_name = {new_version}
1515
name = cobra
1616
url = https://opencobra.github.io/cobrapy
1717
download_url = https://pypi.org/project/cobra
18-
project_urls =
18+
project_urls =
1919
Source Code = https://github.com/opencobra/cobrapy
2020
Documentation = https://cobrapy.readthedocs.io
2121
Bug Tracker = https://github.com/opencobra/cobrapy/issues
2222
author = The cobrapy core development team.
2323
author_email = [email protected]
2424
maintainer = Moritz E. Beber
2525
maintainer_email = [email protected]
26-
classifiers =
26+
classifiers =
2727
Development Status :: 5 - Production/Stable
2828
Intended Audience :: Science/Research
2929
License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)
3030
License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)
3131
Natural Language :: English
3232
Operating System :: OS Independent
33-
Programming Language :: Python :: 3.6
3433
Programming Language :: Python :: 3.7
3534
Programming Language :: Python :: 3.8
3635
Programming Language :: Python :: 3.9
3736
Programming Language :: Python :: 3.10
37+
Programming Language :: Python :: 3.11
3838
Programming Language :: Python :: Implementation :: CPython
3939
Topic :: Scientific/Engineering :: Bio-Informatics
4040
license = LGPL-2.0-or-later OR GPL-2.0-or-later
4141
description = COBRApy is a package for constraint-based modeling of metabolic networks.
4242
long_description = file: README.rst, INSTALL.rst
4343
long_description_content_type = text/x-rst
44-
keywords =
44+
keywords =
4545
metabolism
4646
biology
4747
constraint-based
@@ -53,7 +53,7 @@ keywords =
5353

5454
[options]
5555
zip_safe = True
56-
install_requires =
56+
install_requires =
5757
appdirs ~=1.4
5858
depinfo ~=1.7
5959
diskcache ~=5.0
@@ -68,24 +68,24 @@ install_requires =
6868
rich >=8.0
6969
ruamel.yaml ~=0.16
7070
swiglpk
71-
tests_require =
71+
tests_require =
7272
tox
7373
packages = find:
74-
package_dir =
74+
package_dir =
7575
= src
7676

7777
[options.packages.find]
7878
where = src
7979

8080
[options.package_data]
81-
cobra =
81+
cobra =
8282
data/*
8383
io/*.json
8484

8585
[options.extras_require]
86-
array =
86+
array =
8787
scipy
88-
development =
88+
development =
8989
black
9090
bumpversion
9191
isort
@@ -97,7 +97,7 @@ universal = 1
9797
[bumpversion:part:release]
9898
optional_value = placeholder
9999
first_value = placeholder
100-
values =
100+
values =
101101
placeholder
102102
a
103103

tox.ini

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
[tox]
2-
envlist = isort, black, flake8, safety, py3{6,7,8,9,10}, coverage
2+
envlist = isort, black, flake8, safety, py3{7,8,9,10,11}, coverage
33

44
[gh-actions]
55
python =
66
3.6: install, py36
77
3.7: install, py37
88
3.8: install, py38
9-
3.9: install, py39, coverage
10-
3.10: install, py310
9+
3.9: install, py39
10+
3.10: install, py310, coverage
11+
3.11: install, py311
1112

1213
[testenv]
1314
extras =
@@ -16,7 +17,7 @@ deps=
1617
jsonschema
1718
osqp~=0.6 ; python_version < "3.10"
1819
pytest
19-
pytest-benchmark
20+
pytest-benchmark~=4.0
2021
pytest-mock
2122
pytest-raises
2223
commands =
@@ -30,7 +31,7 @@ deps=
3031
jsonschema
3132
osqp~=0.6 ; python_version < "3.10"
3233
pytest
33-
pytest-benchmark
34+
pytest-benchmark~=4.0
3435
pytest-cov
3536
pytest-mock
3637
pytest-raises

0 commit comments

Comments
 (0)