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.
Files changed (43) hide show
  1. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/.github/workflows/ci.yaml +36 -9
  2. sbmlmath-0.6.0/.github/workflows/prerelease.yaml +72 -0
  3. {sbmlmath-0.5.0/sbmlmath.egg-info → sbmlmath-0.6.0}/PKG-INFO +2 -2
  4. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/doc/development.rst +17 -0
  5. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/pyproject.toml +1 -1
  6. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/sbmlmath/mathml_parser.py +394 -58
  7. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/sbmlmath/mathml_printer.py +14 -0
  8. {sbmlmath-0.5.0 → sbmlmath-0.6.0/sbmlmath.egg-info}/PKG-INFO +2 -2
  9. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/sbmlmath.egg-info/SOURCES.txt +1 -0
  10. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/sbmlmath.egg-info/scm_file_list.json +1 -0
  11. sbmlmath-0.6.0/sbmlmath.egg-info/scm_version.json +8 -0
  12. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/tests/test_misc.py +10 -0
  13. sbmlmath-0.6.0/tests/test_parser.py +851 -0
  14. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/tests/test_printer.py +21 -0
  15. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/tests/test_species_symbol.py +15 -7
  16. sbmlmath-0.5.0/sbmlmath.egg-info/scm_version.json +0 -8
  17. sbmlmath-0.5.0/tests/test_parser.py +0 -339
  18. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/.github/dependabot.yml +0 -0
  19. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/.github/workflows/deploy_release.yaml +0 -0
  20. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/.pre-commit-config.yaml +0 -0
  21. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/.readthedocs.yml +0 -0
  22. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/CITATION.cff +0 -0
  23. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/LICENSE +0 -0
  24. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/MANIFEST.in +0 -0
  25. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/README.md +0 -0
  26. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/doc/Makefile +0 -0
  27. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/doc/about.rst +0 -0
  28. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/doc/api.rst +0 -0
  29. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/doc/changelog.rst +0 -0
  30. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/doc/conf.py +0 -0
  31. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/doc/index.rst +0 -0
  32. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/doc/make.bat +0 -0
  33. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/doc/rtd_requirements.txt +0 -0
  34. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/sbmlmath/__init__.py +0 -0
  35. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/sbmlmath/cfunction.py +0 -0
  36. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/sbmlmath/csymbol.py +0 -0
  37. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/sbmlmath/species_symbol.py +0 -0
  38. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/sbmlmath.egg-info/dependency_links.txt +0 -0
  39. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/sbmlmath.egg-info/requires.txt +0 -0
  40. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/sbmlmath.egg-info/top_level.txt +0 -0
  41. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/setup.cfg +0 -0
  42. {sbmlmath-0.5.0 → sbmlmath-0.6.0}/tests/test_csymbol.py +0 -0
  43. {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.10", "3.15"]
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
- run: git clone --depth=1 https://github.com/sbmlteam/sbml-test-suite/
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.10", "3.15"]
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
- run: git clone --depth=1 https://github.com/sbmlteam/sbml-test-suite/
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.10", "3.15"]
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
- run: git clone --depth=1 https://github.com/sbmlteam/sbml-test-suite/
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.5.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.10
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
  -----------------
@@ -10,7 +10,7 @@ authors = [
10
10
  ]
11
11
  description = "SBML Math <-> SymPy"
12
12
  readme = "README.md"
13
- requires-python = ">=3.10"
13
+ requires-python = ">=3.11"
14
14
  license = "BSD-3-Clause"
15
15
  dependencies = [
16
16
  "python-libsbml>=5.20.4",