Skip to content

Commit ad150b0

Browse files
committed
chore: Convert to pyproject.toml
1 parent e7757e2 commit ad150b0

File tree

4 files changed

+60
-87
lines changed

4 files changed

+60
-87
lines changed

MANIFEST.in

-7
This file was deleted.

pyproject.toml

+60
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,70 @@
22
requires = ["setuptools >= 45", "setuptools_scm[toml]>=6.2"]
33
build-backend = "setuptools.build_meta"
44

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+
557
[tool.setuptools_scm]
658
write_to = "nitransforms/_version.py"
759
write_to_template = """\
860
\"\"\"Version file, automatically generated by setuptools_scm.\"\"\"
961
__version__ = "{version}"
1062
"""
1163
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"

setup.cfg

-73
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,7 @@
1-
[metadata]
2-
author = The NiPy developers
3-
author_email = [email protected]
4-
classifiers =
5-
Development Status :: 2 - Pre-Alpha
6-
Intended Audience :: Science/Research
7-
Topic :: Scientific/Engineering :: Image Recognition
8-
License :: OSI Approved :: BSD License
9-
Programming Language :: Python :: 3.8
10-
Programming Language :: Python :: 3.9
11-
Programming Language :: Python :: 3.10
12-
Programming Language :: Python :: 3.11
13-
description = NiTransforms -- Neuroimaging spatial transforms in Python.
14-
license = MIT License
15-
long_description = file:README.md
16-
long_description_content_type = text/markdown; charset=UTF-8
17-
provides = nitransforms
18-
project_urls =
19-
Manuscript=https://doi.org/10.31219/osf.io/8aq7b
20-
NiBabel=https://github.com/nipy/nibabel/pull/656
21-
url = https://github.com/nipy/nitransforms
22-
23-
[options]
24-
python_requires = >= 3.8
25-
install_requires =
26-
numpy ~= 1.21
27-
scipy >= 1.6.0
28-
nibabel >= 3.0
29-
h5py
30-
test_requires =
31-
pytest
32-
pytest-cov
33-
pytest-env
34-
nose
35-
codecov
36-
setup_requires =
37-
setuptools_scm
38-
toml
39-
packages = find:
40-
include_package_data = True
41-
42-
[options.extras_require]
43-
niftiext =
44-
lxml
45-
niftiexts =
46-
%(niftiext)s
47-
test =
48-
pytest
49-
pytest-cov
50-
pytest-env
51-
codecov
52-
lxml
53-
tests =
54-
%(test)s
55-
56-
all =
57-
%(niftiext)s
58-
%(test)s
59-
60-
[options.entry_points]
61-
console_scripts =
62-
nb-transform = nitransforms.cli:main
63-
641
[flake8]
652
max-line-length = 99
663
doctests = False
674
ignore =
685
E266
696
E231
707
W503
71-
72-
[tool:pytest]
73-
norecursedirs = .git
74-
addopts = -svx --doctest-modules
75-
doctest_optionflags = ALLOW_UNICODE NORMALIZE_WHITESPACE ELLIPSIS
76-
env =
77-
PYTHONHASHSEED=0
78-
filterwarnings =
79-
ignore::DeprecationWarning
80-
junit_family=xunit2

setup.py

-7
This file was deleted.

0 commit comments

Comments
 (0)