|
2 | 2 | requires = ["setuptools >= 45", "setuptools_scm[toml]>=6.2"]
|
3 | 3 | build-backend = "setuptools.build_meta"
|
4 | 4 |
|
| 5 | +[project] |
| 6 | +name = "nitransforms" |
| 7 | +authors = [{ name = "The NiPy developers", email = "[email protected]"}] |
| 8 | +readme = "README.md" |
| 9 | +classifiers = [ |
| 10 | + "Development Status :: 2 - Pre-Alpha", |
| 11 | + "Intended Audience :: Science/Research", |
| 12 | + "Topic :: Scientific/Engineering :: Image Recognition", |
| 13 | + "License :: OSI Approved :: BSD License", |
| 14 | + "Programming Language :: Python :: 3.9", |
| 15 | + "Programming Language :: Python :: 3.10", |
| 16 | + "Programming Language :: Python :: 3.11", |
| 17 | + "Programming Language :: Python :: 3.12", |
| 18 | +] |
| 19 | +description = "NiTransforms -- Neuroimaging spatial transforms in Python." |
| 20 | +license = {text = "MIT License"} |
| 21 | +requires-python = ">= 3.9" |
| 22 | +dependencies = [ |
| 23 | + "numpy ~= 1.21", |
| 24 | + "scipy >= 1.6.0", |
| 25 | + "nibabel >= 3.0", |
| 26 | + "h5py", |
| 27 | +] |
| 28 | +dynamic = ["version"] |
| 29 | + |
| 30 | +[project.urls] |
| 31 | +Homepage = "https://github.com/nipy/nitransforms" |
| 32 | +Manuscript = "https://doi.org/10.31219/osf.io/8aq7b" |
| 33 | +NiBabel = "https://github.com/nipy/nibabel/pull/656" |
| 34 | + |
| 35 | +[project.optional-dependencies] |
| 36 | +niftiext = ["lxml"] |
| 37 | +test = [ |
| 38 | + "pytest", |
| 39 | + "pytest-cov", |
| 40 | + "pytest-env", |
| 41 | + "codecov", |
| 42 | + "nitransforms[niftiext]", |
| 43 | +] |
| 44 | +# Aliases |
| 45 | +niftiexts = ["nitransforms[niftiext]"] |
| 46 | +tests = ["nitransforms[test]"] |
| 47 | +all = [ |
| 48 | + "nitransforms[test]", |
| 49 | +] |
| 50 | + |
| 51 | +[project.scripts] |
| 52 | +nb-transform = "nitransforms.cli:main" |
| 53 | + |
| 54 | +[tool.setuptools.packages.find] |
| 55 | +include = ["nitransforms*"] |
| 56 | + |
5 | 57 | [tool.setuptools_scm]
|
6 | 58 | write_to = "nitransforms/_version.py"
|
7 | 59 | write_to_template = """\
|
8 | 60 | \"\"\"Version file, automatically generated by setuptools_scm.\"\"\"
|
9 | 61 | __version__ = "{version}"
|
10 | 62 | """
|
11 | 63 | fallback_version = "0.0"
|
| 64 | + |
| 65 | +[tool.pytest.ini_options] |
| 66 | +norecursedirs = [".git"] |
| 67 | +addopts = "-svx --doctest-modules" |
| 68 | +doctest_optionflags = "ALLOW_UNICODE NORMALIZE_WHITESPACE ELLIPSIS" |
| 69 | +env = "PYTHONHASHSEED=0" |
| 70 | +filterwarnings = ["ignore::DeprecationWarning"] |
| 71 | +junit_family = "xunit2" |
0 commit comments