diff --git a/MANIFEST.in b/MANIFEST.in index 9ce31a2c..5409b4ea 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,6 @@ + include macapype/utils/*.json include macapype/bash/* include workflows/params*.json +include macapype/_version.py diff --git a/pyproject.toml b/pyproject.toml index e19e303b..b50aa023 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,46 @@ requires = [ build-backend = "setuptools.build_meta" [project] -dynamic = ["version"] +dynamic = ['version'] +name = "macapype" +maintainers = [{name = "Macapype developers" }] +authors= [{name = "Macatools team"}] +description= "Pipeline for anatomic processing for macaque " +readme = {content-type = "text/markdown", file = "README.md"} +requires-python = ">= 3.10" +license = {text = "BSD-3-Clause"} -[tool.setuptools.dynamic] -version = {attr = "macapype.__version__"} +dependencies = [ + "nipype", + "rdflib==6.3.1", + "pandas==2.2.3", + "matplotlib", + "nilearn", + "networkx", + "pybids", + "scikit-image", + "nibabel", + "numpy", + "SimpleITK" +] + + +[project.optional-dependencies] +# Dependencies for building the documentation +doc_deps = [ + "sphinx", + "sphinx-gallery", + "sphinx_bootstrap_theme", + "numpydoc", + "sphinxcontrib-fulltoc" +] +test_deps = [ + "pytest", + "pytest-cov", + "codecov", + ] +flake_deps = [ + "flake8" + ] +test=["macapype[test_deps, flake_deps]"] +doc=["macapype[flake_deps, test_deps, doc_deps]"] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 1f667181..00000000 --- a/setup.cfg +++ /dev/null @@ -1,59 +0,0 @@ -[metadata] -url = https://github.com/macatools/macapype -author="macatools team", -maintainer = Macapype developers -description="Pipeline for anatomic processing for macaque", -long_description = file:README.md -long_description_content_type = text/markdown; charset=UTF-8 -license = Apache License, 2.0 -provides = - macapype -classifiers = - Development Status :: 3 - Alpha - Environment :: Console - Intended Audience :: Science/Research - License :: OSI Approved :: Apache Software License - Operating System :: MacOS :: MacOS X - Operating System :: POSIX :: Linux - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Topic :: Scientific/Engineering - -[options] -python_requires = >= 3.10 -requires = - nipype - rdflib==6.3.1 - pandas==2.2.3 - nilearn - networkx - pybids - scikit-image - nibabel - numpy - SimpleITK -packages = find: -include_package_data = True - -[options.package_data] -pydra = - schema/context.jsonld - -[options.extras_require] -test = - pytest - pytest-cov - codecov - flake8 -tests = - %(test)s -doc = - sphinx - sphinx-gallery - sphinx_bootstrap_theme - numpydoc - sphinxcontrib-fulltoc - matplotlib -docs = - %(doc)s - %(test)s diff --git a/setup.py b/setup.py index 7e887e2d..6c90932b 100755 --- a/setup.py +++ b/setup.py @@ -9,7 +9,6 @@ import re - def _get_version(): verstr = "unknown" @@ -26,17 +25,7 @@ def _get_version(): raise RuntimeError("unable to find version in yourpackage/_version.py") return verstr - -# Give setuptools a hint to complain if it's too old a version -# 30.3.0 allows us to put most metadata in setup.cfg -# Should match pyproject.toml -SETUP_REQUIRES = ["setuptools >= 30.3.0"] -# This enables setuptools to install wheel on-the-fly -SETUP_REQUIRES += ["wheel"] if "bdist_wheel" in sys.argv else [] - if __name__ == "__main__": setup( - name="macapype", - version=_get_version(), - setup_requires=SETUP_REQUIRES, + version=_get_version() )