Skip to content

Commit

Permalink
setup.py -> pyproject.toml (#381)
Browse files Browse the repository at this point in the history
Move python/swig/ to swig/ to not interfere with python packaging.
  • Loading branch information
dweindl authored Dec 13, 2023
1 parent 1bf1b6e commit c94200f
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 31 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ endif()
if(BUILD_PYTHON_MODULE AND CMAKE_BUILD_TYPE MATCHES Debug)
# Only build swig/python module when we are in debug mode
# This requires PIC, but we don't want PIC for release build at the moment
add_subdirectory(python/swig)
add_subdirectory(swig)
endif()


Expand Down
43 changes: 43 additions & 0 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
name = "parpe"
version = "0.0.0"
authors = [
{name = "Daniel Weindl", email = "[email protected]"},
]
description = "parpe python package"
requires-python = ">=3.9"
license = {text = "MIT"}
dependencies = [
'numpy>=1.18.1',
'termcolor>=1.1.0',
'colorama>=0.4.3',
'petab>=0.1.18',
'amici>=0.20.0',
'h5py>=3.0.0',
'python-libsbml>=5.17.0',
'snakemake>=5.10.0',
'coloredlogs>=15.0',
'scipy',
'matplotlib',
]

[project.optional-dependencies]
test = ["pytest", "pre-commit"]

[project.scripts]
parpe_petab_to_hdf5 = "parpe.hdf5_pe_input:main"

[project.urls]
Documentation = "https://parpe.readthedocs.io/"
Repository = "https://github.com/ICB-DCM/parPE/"

[tool.black]
line-length = 79

[tool.semantic_release]
version_toml = "pyproject.toml:project.version"

30 changes: 0 additions & 30 deletions python/setup.py

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c94200f

Please sign in to comment.