From 71d6705791b278ae6fd719804b2860c3e5f0268f Mon Sep 17 00:00:00 2001 From: Wouter Zwerink Date: Wed, 26 Feb 2025 13:39:51 +0100 Subject: [PATCH] Switch to pyproject.toml --- pyproject.toml | 31 +++++++++++++++++++++++++++++++ setup.py | 38 -------------------------------------- 2 files changed, 31 insertions(+), 38 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..99c674f --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,31 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "torchstain" +version = "1.4.1" +description = "Stain normalization tools for histological analysis and computational pathology" +readme = "README.md" +license = { text = "MIT" } +authors = [ + { name = "Carlo Alberto Barbano" }, + { name = "André Pedersen" }, +] +maintainers = [ + { name = "EIDOSlab", email = "eidoslab@di.unito.it" } +] +requires-python = ">=3.6" +dependencies = [ + "numpy", +] + +[project.optional-dependencies] +tf = ["tensorflow"] +torch = ["torch"] + +[project.urls] +Homepage = "https://github.com/EIDOSlab/torchstain" + +[tool.setuptools] +packages = ["torchstain"] \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index 3b94eba..0000000 --- a/setup.py +++ /dev/null @@ -1,38 +0,0 @@ -import pathlib -from setuptools import setup, find_packages, find_namespace_packages - -HERE = pathlib.Path(__file__).parent -README = (HERE / "README.md").read_text() - -setup( - name='torchstain', - version='1.4.1', - description='Stain normalization tools for histological analysis and computational pathology', - long_description=README, - long_description_content_type='text/markdown', - url='https://github.com/EIDOSlab/torchstain', - author='Carlo Alberto Barbano, André Pedersen', - author_email='eidoslab@di.unito.it', - license='MIT', - packages=find_packages(exclude=('tests')), - zip_safe=False, - install_requires=[ - 'numpy' - ], - extras_require={ - "tf": ["tensorflow"], - "torch": ["torch"], - }, - classifiers=[ - 'Development Status :: 4 - Beta', - 'Intended Audience :: Developers', - 'Topic :: Scientific/Engineering :: Artificial Intelligence', - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent" - ], - python_requires='>=3.6' -)