diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..7e48caf8 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,47 @@ +[build-system] +requires = ["setuptools>=61.0.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "chi-drm" +version = "1.0.2" +description = "A python package to model dose response dynamics." +readme = "README.md" +requires-python = ">=3.8" +license = { file = "LICENSE.md" } +authors = [ + { name = "David Augustin", email = "david.augustin@cervify.com" }, +] +keywords = ["python", "packaging", "example"] +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: BSD 3-clause license", + "Operating System :: OS Independent", +] + +dependencies = [ + 'arviz>=0.17', + 'myokit>=1.34', + 'numpy>=1.17', + 'pandas>=0.24', + 'pints>=0.4', + 'plotly>=4.8.1', + 'scipy>=1.11', # 07/2024 - ArviZ seems to not yet keep up with SciPy + 'tqdm>=4.46.1', + 'xarray>=0.19', +] + +[project.optional-dependencies] +docs = [ + 'sphinx-rtd-theme>=1.3', + 'sphinx>=1.5, !=1.7.3', # For doc generation + 'sphinx-copybutton>=0.5.2' +] + +notebooks = [ + 'jupyter==1.0.0', +] + +[project.urls] +Documentation = "https://chi.readthedocs.io" +Repository = "https://github.com/DavAug/chi" \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index a67d3ecd..00000000 --- a/setup.py +++ /dev/null @@ -1,53 +0,0 @@ -from setuptools import setup, find_packages - -# Load text for description -with open('README.md') as f: - readme = f.read() - - -# Go! -setup( - # Module name - name='chi-drm', - version='1.0.2', - description='Package to model dose response dynamics', - long_description=readme, - long_description_content_type="text/markdown", - url="https://chi.readthedocs.io", - - # License name - license='BSD 3-clause license', - - # Maintainer information - maintainer='David Augustin', - maintainer_email='david.augustin@cs.ox.ac.uk', - - # Packages and data to include - packages=find_packages( - include=('chi', 'chi.*'), - exclude=('chi/tests',)), - include_package_data=True, - - # List of dependencies - install_requires=[ - 'arviz>=0.17', - 'myokit>=1.34', - 'numpy>=1.17', - 'pandas>=0.24', - 'pints>=0.4', - 'plotly>=4.8.1', - 'scipy>=1.11', # 07/2024 - ArviZ seems to not yet keep up with SciPy - 'tqdm>=4.46.1', - 'xarray>=0.19', - ], - extras_require={ - 'docs': [ - 'sphinx-rtd-theme>=1.3', - 'sphinx>=1.5, !=1.7.3', # For doc generation - 'sphinx-copybutton>=0.5.2' - ], - 'notebooks': [ - 'jupyter==1.0.0', - ] - }, -)