Skip to content

Commit eccff26

Browse files
committed
Move to 0.5.2.
Replace setup files by pyproject.toml.
1 parent eaa3278 commit eccff26

File tree

7 files changed

+46
-60
lines changed

7 files changed

+46
-60
lines changed

.github/workflows/python-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ jobs:
2828
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
2929
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
3030
run: |
31-
python setup.py sdist bdist_wheel
31+
python -m build
3232
twine upload dist/*

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
# Padmet 5.0.2 (2024-10-30)
4+
5+
## Fix
6+
7+
* Bug in `--enhance` functionality from pgdb_to_padmet, reaction IDs were put in dicOfNode instead of reactant IDs (issue #12). Add a test to check this.
8+
9+
## Modification
10+
11+
* Replace `setup.py` and `setup.cfg` by `pyproject.toml`.
12+
313
# Padmet 5.0.1 (2020-10-26)
414

515
## Fix

padmet/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
along with padmet. If not, see <http://www.gnu.org/licenses/>.
1616
"""
1717

18-
__version__='5.0.1'
18+
__version__='5.0.2'

pyproject.toml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "padmet"
7+
dynamic = ["version"]
8+
authors = [{name = "AuReMe", email = "[email protected]"}]
9+
readme = "README.md"
10+
description = "The PADMet package allows conciliating genomics and metabolic network information used to produce a genome-scale constraint-based metabolic model within a database that traces all the reconstruction process steps. It allows representing the metabolic model in the form of a Wiki containing all the used/traced information. Other standard outputs are made available with the package."
11+
license = {text = "GPL-3.0-or-later"}
12+
13+
dependencies = ['docopt>=0.6.2',
14+
'python-libsbml>=5.18.0',
15+
'cobra>=0.17.1',
16+
'biopython>=1.78',
17+
'lxml>=4.3.4'
18+
]
19+
20+
[project.scripts]
21+
padmet = "padmet.__main__:main"
22+
23+
[project.urls]
24+
Homepage = "https://github.com/AuReMe/padmet"
25+
Changelog = "https://github.com/AuReMe/padmet/blob/main/CHANGELOG.md"
26+
27+
28+
[tool.setuptools]
29+
packages = ['padmet', 'padmet.classes', 'padmet.utils', 'padmet.utils.connection', 'padmet.utils.exploration', 'padmet.utils.management']
30+
package-dir = {'padmet' = 'padmet', 'padmet.classes' = 'padmet/classes' , 'padmet.utils' = 'padmet/utils', 'padmet.utils.connection' = 'padmet/utils/connection', 'padmet.utils.exploration' = 'padmet/utils/exploration', 'padmet.utils.management' = 'padmet/utils/management'}
31+
32+
[tool.setuptools.dynamic]
33+
version = { attr = "padmet.__version__" }
34+
dependencies = {file = ["requirements.txt"]}

setup.cfg

Lines changed: 0 additions & 2 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 46 deletions
This file was deleted.

tests/test_connection.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,6 @@
3333
'ETF-Reduced', 'WATER', 'PROTON', 'CPD66-39', 'CO-A', 'ATP', 'PPI', 'AMP', 'ACETYL-COA',
3434
'3-KETOACYL-COA', 'NAD', 'NADH']
3535

36-
FABO_REACTANTS = ['D-3-HYDROXYACYL-COA', 'L-3-HYDROXYACYL-COA', 'TRANS-D2-ENOYL-COA',
37-
'CIS-DELTA3-ENOYL-COA', 'Saturated-Fatty-Acyl-CoA', 'ETF-Oxidized',
38-
'ETF-Reduced', 'WATER', 'PROTON', 'CPD66-39', 'CO-A', 'ATP', 'PPI', 'AMP', 'ACETYL-COA',
39-
'3-KETOACYL-COA', 'NAD', 'NADH']
40-
41-
FABO_PRODUCTS = ['D-3-HYDROXYACYL-COA', 'L-3-HYDROXYACYL-COA', 'TRANS-D2-ENOYL-COA',
42-
'CIS-DELTA3-ENOYL-COA', 'Saturated-Fatty-Acyl-CoA', 'ETF-Oxidized',
43-
'ETF-Reduced', 'WATER', 'PROTON', 'CPD66-39', 'CO-A', 'ATP', 'PPI', 'AMP', 'ACETYL-COA',
44-
'3-KETOACYL-COA', 'NAD', 'NADH']
45-
4636
FABO_GENES = ['b2341', 'b0221', 'b1805', 'b1701', 'b2342', 'b3845', 'b3846']
4737

4838

0 commit comments

Comments
 (0)