sbmlmath 0.5.0__tar.gz → 0.6.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/.github/workflows/ci.yaml +36 -9
- sbmlmath-0.6.0/.github/workflows/prerelease.yaml +72 -0
- {sbmlmath-0.5.0/sbmlmath.egg-info → sbmlmath-0.6.0}/PKG-INFO +2 -2
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/doc/development.rst +17 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/pyproject.toml +1 -1
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/sbmlmath/mathml_parser.py +394 -58
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/sbmlmath/mathml_printer.py +14 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0/sbmlmath.egg-info}/PKG-INFO +2 -2
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/sbmlmath.egg-info/SOURCES.txt +1 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/sbmlmath.egg-info/scm_file_list.json +1 -0
- sbmlmath-0.6.0/sbmlmath.egg-info/scm_version.json +8 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/tests/test_misc.py +10 -0
- sbmlmath-0.6.0/tests/test_parser.py +851 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/tests/test_printer.py +21 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/tests/test_species_symbol.py +15 -7
- sbmlmath-0.5.0/sbmlmath.egg-info/scm_version.json +0 -8
- sbmlmath-0.5.0/tests/test_parser.py +0 -339
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/.github/dependabot.yml +0 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/.github/workflows/deploy_release.yaml +0 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/.pre-commit-config.yaml +0 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/.readthedocs.yml +0 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/CITATION.cff +0 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/LICENSE +0 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/MANIFEST.in +0 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/README.md +0 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/doc/Makefile +0 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/doc/about.rst +0 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/doc/api.rst +0 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/doc/changelog.rst +0 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/doc/conf.py +0 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/doc/index.rst +0 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/doc/make.bat +0 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/doc/rtd_requirements.txt +0 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/sbmlmath/__init__.py +0 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/sbmlmath/cfunction.py +0 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/sbmlmath/csymbol.py +0 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/sbmlmath/species_symbol.py +0 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/sbmlmath.egg-info/dependency_links.txt +0 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/sbmlmath.egg-info/requires.txt +0 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/sbmlmath.egg-info/top_level.txt +0 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/setup.cfg +0 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/tests/test_csymbol.py +0 -0
- {sbmlmath-0.5.0 → sbmlmath-0.6.0}/tests/test_mathml_parser_sbml_semantic_suite.py +0 -0
|
@@ -12,7 +12,7 @@ jobs:
|
|
|
12
12
|
|
|
13
13
|
strategy:
|
|
14
14
|
matrix:
|
|
15
|
-
python-version: ["3.
|
|
15
|
+
python-version: ["3.11", "3.15"]
|
|
16
16
|
|
|
17
17
|
steps:
|
|
18
18
|
- name: Check out repository
|
|
@@ -31,16 +31,25 @@ jobs:
|
|
|
31
31
|
restore-keys: |
|
|
32
32
|
${{ runner.os }}-${{ matrix.python-version }}-
|
|
33
33
|
|
|
34
|
+
- name: Get SBML test suite revision
|
|
35
|
+
id: sbml-test-suite-rev
|
|
36
|
+
shell: bash
|
|
37
|
+
run: echo "sha=$(git ls-remote https://github.com/sbmlteam/sbml-test-suite HEAD | cut -f1)" >> "$GITHUB_OUTPUT"
|
|
38
|
+
|
|
34
39
|
- name: Cache / restore SBML test suite
|
|
35
40
|
id: cache-sbml-test-suite
|
|
36
41
|
uses: actions/cache@v6
|
|
37
42
|
with:
|
|
38
43
|
path: sbml-test-suite
|
|
39
|
-
key: ${{ runner.os }}-sbml-test-suite
|
|
44
|
+
key: ${{ runner.os }}-sbml-test-suite-${{ steps.sbml-test-suite-rev.outputs.sha }}
|
|
40
45
|
|
|
41
46
|
- name: Download SBML test suite
|
|
42
47
|
if: steps.cache-sbml-test-suite.outputs.cache-hit != 'true'
|
|
43
|
-
|
|
48
|
+
shell: bash
|
|
49
|
+
run: |
|
|
50
|
+
# only cases/semantic is needed
|
|
51
|
+
git clone --depth=1 --filter=blob:none --sparse https://github.com/sbmlteam/sbml-test-suite/
|
|
52
|
+
git -C sbml-test-suite sparse-checkout set cases/semantic
|
|
44
53
|
|
|
45
54
|
- name: Install local packages
|
|
46
55
|
run: |
|
|
@@ -59,7 +68,7 @@ jobs:
|
|
|
59
68
|
|
|
60
69
|
strategy:
|
|
61
70
|
matrix:
|
|
62
|
-
python-version: ["3.
|
|
71
|
+
python-version: ["3.11", "3.15"]
|
|
63
72
|
|
|
64
73
|
steps:
|
|
65
74
|
- name: Check out repository
|
|
@@ -78,16 +87,25 @@ jobs:
|
|
|
78
87
|
restore-keys: |
|
|
79
88
|
${{ runner.os }}-${{ matrix.python-version }}-
|
|
80
89
|
|
|
90
|
+
- name: Get SBML test suite revision
|
|
91
|
+
id: sbml-test-suite-rev
|
|
92
|
+
shell: bash
|
|
93
|
+
run: echo "sha=$(git ls-remote https://github.com/sbmlteam/sbml-test-suite HEAD | cut -f1)" >> "$GITHUB_OUTPUT"
|
|
94
|
+
|
|
81
95
|
- name: Cache / restore SBML test suite
|
|
82
96
|
id: cache-sbml-test-suite
|
|
83
97
|
uses: actions/cache@v6
|
|
84
98
|
with:
|
|
85
99
|
path: sbml-test-suite
|
|
86
|
-
key: ${{ runner.os }}-sbml-test-suite
|
|
100
|
+
key: ${{ runner.os }}-sbml-test-suite-${{ steps.sbml-test-suite-rev.outputs.sha }}
|
|
87
101
|
|
|
88
102
|
- name: Download SBML test suite
|
|
89
103
|
if: steps.cache-sbml-test-suite.outputs.cache-hit != 'true'
|
|
90
|
-
|
|
104
|
+
shell: bash
|
|
105
|
+
run: |
|
|
106
|
+
# only cases/semantic is needed
|
|
107
|
+
git clone --depth=1 --filter=blob:none --sparse https://github.com/sbmlteam/sbml-test-suite/
|
|
108
|
+
git -C sbml-test-suite sparse-checkout set cases/semantic
|
|
91
109
|
|
|
92
110
|
- name: Install local packages
|
|
93
111
|
run: |
|
|
@@ -103,7 +121,7 @@ jobs:
|
|
|
103
121
|
|
|
104
122
|
strategy:
|
|
105
123
|
matrix:
|
|
106
|
-
python-version: ["3.
|
|
124
|
+
python-version: ["3.11", "3.15"]
|
|
107
125
|
|
|
108
126
|
steps:
|
|
109
127
|
- name: Check out repository
|
|
@@ -122,16 +140,25 @@ jobs:
|
|
|
122
140
|
restore-keys: |
|
|
123
141
|
${{ runner.os }}-${{ matrix.python-version }}-
|
|
124
142
|
|
|
143
|
+
- name: Get SBML test suite revision
|
|
144
|
+
id: sbml-test-suite-rev
|
|
145
|
+
shell: bash
|
|
146
|
+
run: echo "sha=$(git ls-remote https://github.com/sbmlteam/sbml-test-suite HEAD | cut -f1)" >> "$GITHUB_OUTPUT"
|
|
147
|
+
|
|
125
148
|
- name: Cache / restore SBML test suite
|
|
126
149
|
id: cache-sbml-test-suite
|
|
127
150
|
uses: actions/cache@v6
|
|
128
151
|
with:
|
|
129
152
|
path: sbml-test-suite
|
|
130
|
-
key: ${{ runner.os }}-sbml-test-suite
|
|
153
|
+
key: ${{ runner.os }}-sbml-test-suite-${{ steps.sbml-test-suite-rev.outputs.sha }}
|
|
131
154
|
|
|
132
155
|
- name: Download SBML test suite
|
|
133
156
|
if: steps.cache-sbml-test-suite.outputs.cache-hit != 'true'
|
|
134
|
-
|
|
157
|
+
shell: bash
|
|
158
|
+
run: |
|
|
159
|
+
# only cases/semantic is needed
|
|
160
|
+
git clone --depth=1 --filter=blob:none --sparse https://github.com/sbmlteam/sbml-test-suite/
|
|
161
|
+
git -C sbml-test-suite sparse-checkout set cases/semantic
|
|
135
162
|
|
|
136
163
|
- name: Install local packages
|
|
137
164
|
run: |
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
name: Prerelease dependencies
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
schedule:
|
|
6
|
+
- cron: '17 5 * * 1'
|
|
7
|
+
push:
|
|
8
|
+
paths:
|
|
9
|
+
- .github/workflows/prerelease.yaml
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
test:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
|
|
15
|
+
strategy:
|
|
16
|
+
fail-fast: false
|
|
17
|
+
matrix:
|
|
18
|
+
deps: ["pre", "sympy-master"]
|
|
19
|
+
|
|
20
|
+
name: test (${{ matrix.deps }})
|
|
21
|
+
|
|
22
|
+
steps:
|
|
23
|
+
- name: Check out repository
|
|
24
|
+
uses: actions/checkout@v7
|
|
25
|
+
|
|
26
|
+
- name: Set up Python
|
|
27
|
+
uses: actions/setup-python@v7
|
|
28
|
+
with:
|
|
29
|
+
python-version: "3.15"
|
|
30
|
+
|
|
31
|
+
- name: Get SBML test suite revision
|
|
32
|
+
id: sbml-test-suite-rev
|
|
33
|
+
shell: bash
|
|
34
|
+
run: echo "sha=$(git ls-remote https://github.com/sbmlteam/sbml-test-suite HEAD | cut -f1)" >> "$GITHUB_OUTPUT"
|
|
35
|
+
|
|
36
|
+
- name: Cache / restore SBML test suite
|
|
37
|
+
id: cache-sbml-test-suite
|
|
38
|
+
uses: actions/cache@v6
|
|
39
|
+
with:
|
|
40
|
+
path: sbml-test-suite
|
|
41
|
+
key: ${{ runner.os }}-sbml-test-suite-${{ steps.sbml-test-suite-rev.outputs.sha }}
|
|
42
|
+
|
|
43
|
+
- name: Download SBML test suite
|
|
44
|
+
if: steps.cache-sbml-test-suite.outputs.cache-hit != 'true'
|
|
45
|
+
shell: bash
|
|
46
|
+
run: |
|
|
47
|
+
# only cases/semantic is needed
|
|
48
|
+
git clone --depth=1 --filter=blob:none --sparse https://github.com/sbmlteam/sbml-test-suite/
|
|
49
|
+
git -C sbml-test-suite sparse-checkout set cases/semantic
|
|
50
|
+
|
|
51
|
+
- name: Install prerelease dependencies
|
|
52
|
+
if: matrix.deps == 'pre'
|
|
53
|
+
run: |
|
|
54
|
+
python -m pip install --upgrade pip setuptools
|
|
55
|
+
python -m pip install --upgrade --pre .[test]
|
|
56
|
+
|
|
57
|
+
- name: Install sympy master
|
|
58
|
+
if: matrix.deps == 'sympy-master'
|
|
59
|
+
run: |
|
|
60
|
+
python -m pip install --upgrade pip setuptools
|
|
61
|
+
python -m pip install .[test]
|
|
62
|
+
python -m pip install --upgrade "sympy @ git+https://github.com/sympy/sympy@master"
|
|
63
|
+
|
|
64
|
+
- name: Show installed versions
|
|
65
|
+
run: python -m pip list
|
|
66
|
+
|
|
67
|
+
- name: Unit tests
|
|
68
|
+
env:
|
|
69
|
+
SBML_TEST_SUITE_ROOT: "${{ github.workspace }}/sbml-test-suite/"
|
|
70
|
+
run: >
|
|
71
|
+
pytest -vv
|
|
72
|
+
-W error::sympy.utilities.exceptions.SymPyDeprecationWarning
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sbmlmath
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.0
|
|
4
4
|
Summary: SBML Math <-> SymPy
|
|
5
5
|
Author-email: Daniel Weindl <sci@danielweindl.de>
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -9,7 +9,7 @@ Project-URL: Documentation, https://sbmlmath.readthedocs.io/
|
|
|
9
9
|
Project-URL: Repository, https://github.com/dweindl/sbmlmath.git
|
|
10
10
|
Project-URL: Bug Tracker, https://github.com/dweindl/sbmlmath/issues
|
|
11
11
|
Project-URL: PyPI, https://pypi.org/project/sbmlmath/
|
|
12
|
-
Requires-Python: >=3.
|
|
12
|
+
Requires-Python: >=3.11
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
15
|
Requires-Dist: python-libsbml>=5.20.4
|
|
@@ -16,6 +16,23 @@ If you're interested in contributing to the project, please follow these steps:
|
|
|
16
16
|
Before submitting a pull request, please ensure that your code adheres to the
|
|
17
17
|
project's coding standards and includes appropriate tests.
|
|
18
18
|
|
|
19
|
+
Use of AI tools
|
|
20
|
+
^^^^^^^^^^^^^^^
|
|
21
|
+
|
|
22
|
+
You may use AI tools to help with your contribution, under these conditions:
|
|
23
|
+
|
|
24
|
+
* You understand and have reviewed every change you submit.
|
|
25
|
+
* You disclose any use of AI tools in the pull request description.
|
|
26
|
+
* You respond to reviews and discussions in issues and pull requests
|
|
27
|
+
yourself; do not post AI-generated replies.
|
|
28
|
+
|
|
29
|
+
We do not accept drive-by pull requests, i.e., AI-generated pull requests
|
|
30
|
+
whose author does not engage with them personally.
|
|
31
|
+
If a pull request merely relays between us and an AI tool,
|
|
32
|
+
it is easier for us to use the AI tool ourselves.
|
|
33
|
+
Such pull requests, and any others not meeting the conditions above,
|
|
34
|
+
may be closed without comment.
|
|
35
|
+
|
|
19
36
|
|
|
20
37
|
Development setup
|
|
21
38
|
-----------------
|