Skip to content

Commit

Permalink
version still in setup, but everything else is now in pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmeunier79 committed Dec 9, 2024
1 parent 9b44e63 commit 86bf14a
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 74 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

include macapype/utils/*.json
include macapype/bash/*
include workflows/params*.json

include macapype/_version.py
45 changes: 42 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]"]
59 changes: 0 additions & 59 deletions setup.cfg

This file was deleted.

13 changes: 1 addition & 12 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import re


def _get_version():

verstr = "unknown"
Expand All @@ -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()
)

0 comments on commit 86bf14a

Please sign in to comment.