Skip to content

Commit

Permalink
chore: move more metadata into pyproject.toml (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
alubbock authored Sep 4, 2024
1 parent da4f504 commit 98c536d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 32 deletions.
12 changes: 10 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
[project]
name = "thunor"
dynamic = ["version", "dependencies"]
dynamic = ["version"]
description = "Dose response curve and drug induced proliferation (DIP) rate fits and visualisation"
authors = [
{name = "Alex Lubbock", email = "[email protected]"},
]
requires-python = ">=3.10"
dependencies = ['numpy', 'scipy', 'pandas', 'plotly', 'seaborn',
'tables']
readme = "README.md"
license = {text = "GPL-3.0-only"}
classifiers = [
Expand All @@ -16,11 +18,17 @@ classifiers = [
"Topic :: Scientific/Engineering :: Medical Science Apps.",
]

[project.optional-dependencies]
test = ['pytest', 'nbval', 'django', 'nbformat', 'flake8',
'codecov', 'pytest-cov']
docs = ['sphinx', 'sphinx-rtd-theme', 'mock', 'nbsphinx',
'ipykernel']

[project.urls]
Homepage = "https://www.thunor.net"

[build-system]
requires = ["setuptools", "versioneer-518"]
requires = ["setuptools", "versioneer"]
build-backend = "setuptools.build_meta"

[tool.flake8]
Expand Down
30 changes: 0 additions & 30 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,42 +1,12 @@
from setuptools import setup
import versioneer
import os


def main():
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, 'README.md'), 'r') as f:
long_description = f.read()

setup(
name='thunor',
version=versioneer.get_version(),
description='Dose response curve and drug induced proliferation '
'(DIP) rate fits and visualisation',
long_description=long_description,
long_description_content_type='text/markdown',
author='Alex Lubbock',
author_email='[email protected]',
url='https://www.thunor.net',
packages=['thunor', 'thunor.converters'],
python_requires='>=3.10',
install_requires=['numpy', 'scipy', 'pandas', 'plotly', 'seaborn',
'tables'],
extras_require={
'test': ['pytest', 'nbval', 'django', 'nbformat', 'flake8',
'codecov', 'pytest-cov'],
'docs': ['sphinx', 'sphinx-rtd-theme', 'mock', 'nbsphinx',
'ipykernel'],
},
cmdclass=versioneer.get_cmdclass(),
zip_safe=True,
classifiers=[
'Intended Audience :: Science/Research',
'Programming Language :: Python',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Scientific/Engineering :: Chemistry',
'Topic :: Scientific/Engineering :: Medical Science Apps.',
]
)


Expand Down

0 comments on commit 98c536d

Please sign in to comment.