Skip to content

Commit af9c0bf

Browse files
authored
Merge pull request #280 from ModellingWebLab/support-python-312
Support Python 3.12
2 parents 0ef92bb + e00ba4a commit af9c0bf

13 files changed

+52
-35
lines changed

.github/workflows/pytest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ubuntu-20.04
66
strategy:
77
matrix:
8-
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
8+
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
99
steps:
1010
- name: Checkout repository and submodules
1111
uses: actions/checkout@v4

.readthedocs.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,26 @@
55
# Required
66
version: 2
77

8+
# Set the OS, Python version and other tools you might need
9+
build:
10+
os: ubuntu-22.04
11+
tools:
12+
python: "3.11"
13+
814
# Build documentation in the docs/ directory with Sphinx
915
sphinx:
1016
configuration: docs/conf.py
1117

12-
# Build documentation with MkDocs
13-
#mkdocs:
14-
# configuration: mkdocs.yml
15-
16-
# Optionally build your docs in additional formats such as PDF
18+
# Optionally build your docs in additional formats such as PDF and ePub
1719
formats:
1820
- pdf
1921

20-
# Optionally set the version of Python and requirements required to build your docs
22+
# Optional but recommended, declare the Python requirements required
23+
# to build your documentation
24+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
2125
python:
22-
version: 3.7
2326
install:
2427
- method: pip
2528
path: .
2629
extra_requirements:
27-
- docs
30+
- docs

RELEASE.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# Release 0.10.5
2+
- Added support for Python 3.12.
3+
- Updated dependency versions:
4+
- decorator>=4.4.2, <6
5+
- importlib-metadata>=1.7, <8
6+
- lxml>=4.6.5, <6
7+
- MarkupSafe>=1.1.1, <3
8+
- mpmath>=1.1.0, <2
9+
- networkx>=2.4, <4
10+
- packaging>=20.4, <24
11+
- Pint>=0.9, <0.30
12+
- pyparsing>=2.4.7, <4
13+
- rdflib>=5.0.0, <8
14+
- zipp>=1.2.0, <4
15+
- Jinja2>=3.0.0, <4
16+
117
# Release 0.10.4
218
- Improved the developer documentation with regards to updating python packages, the ontology and releasing new versions of chaste_codegen.
319

chaste_codegen/_command_line_script.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
######################################################################
44
import argparse
55
import os
6-
from collections import OrderedDict
76

87
import chaste_codegen as cg
98
from chaste_codegen import LOGGER, CodegenError, load_model_with_conversions
@@ -17,7 +16,7 @@
1716

1817
# pass --<command_line_tag> to select this model type
1918

20-
TRANSLATORS = OrderedDict(
19+
TRANSLATORS = dict(
2120
[('normal', (cg.NormalChasteModel, 'FromCellML', '', True, '')),
2221
('cvode', (cg.CvodeChasteModel, 'FromCellMLCvode', 'Cvode', True, '')),
2322
('cvode-data-clamp', (cg.CvodeChasteModel, 'FromCellMLCvodeDataClamp', 'CvodeDataClamp', True, '')),
@@ -29,7 +28,7 @@
2928
' in mastrcriptRT with added injection current(i_inj)')),
3029
('rush-larsen-c', (cg.RushLarsenC, '', '', False, ' in C with added injection current(i_inj)'))])
3130

32-
TRANSLATORS_OPT = OrderedDict(
31+
TRANSLATORS_OPT = dict(
3332
[('normal', (cg.OptChasteModel, 'FromCellMLOpt', 'Opt', True, '')),
3433
('cvode', (cg.OptCvodeChasteModel, 'FromCellMLCvodeOpt', 'CvodeOpt', True, '')),
3534
('cvode-data-clamp', (cg.OptCvodeChasteModel, 'FromCellMLCvodeDataClampOpt', 'CvodeDataClampOpt', True, '')),

chaste_codegen/_lookup_tables.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import collections
2-
31
from cellmlmanip.model import Quantity, Variable
42
from sympy import (
53
Piecewise,
@@ -71,7 +69,7 @@ def __init__(self, model, lookup_params=DEFAULT_LOOKUP_PARAMETERS):
7169
'lookup_epxrs': []} for param in lookup_params)
7270
self._model = model
7371
self._lookup_variables = set()
74-
self._lookup_table_expr = collections.OrderedDict()
72+
self._lookup_table_expr = dict()
7573
self._lookup_params_processed, self._lookup_params_printed = False, False
7674

7775
self._method_printed = None

chaste_codegen/data/tests/test_jacobian_equations_2.txt

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

chaste_codegen/data/tests/test_jacobian_equations_2.txt_python36

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

chaste_codegen/data/tests/test_jacobian_matrix_2.txt

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

chaste_codegen/data/tests/test_jacobian_matrix_2.txt_python36

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

chaste_codegen/tests/test_jacobian.py

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)