Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove setup.cfg #1198

Merged
merged 3 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 117 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,128 @@
[build-system]
requires = [
"setuptools>=42",
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "torchio"
version = "0.20.0"
description = "Tools for medical image processing with PyTorch"
readme = {file = "README.md", content-type = "text/markdown"}
authors = [
{name = "TorchIO contributors"}
]
maintainers = [
{name = "Fernando Perez-Garcia", email = "fepegar@gmail.com"}
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Image Processing",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
"Typing :: Typed"
]
keywords = ["medical", "image processing", "pytorch", "augmentation", "mri"]
requires-python = ">=3.8,<3.13"
dependencies = [
"deprecated",
"humanize",
"nibabel",
"numpy>=1.15",
"scipy",
"simpleitk!=2.0.*,!=2.1.1.1",
"torch>=1.1",
"tqdm",
"typer",
]
build-backend = "setuptools.build_meta"

[project.optional-dependencies]
csv = [
"pandas",
]
dev = [
"black",
"bump2version",
"coverage",
"flake8",
"mypy",
"parameterized",
"pre-commit",
"Pillow",
"pytest",
"pytest-cov",
"pytest-sugar",
"tox",
"types-Deprecated",
]
doc = [
"einops",
"furo",
"matplotlib",
"sphinx",
"sphinx-autobuild",
"sphinx-copybutton",
"sphinx-gallery",
"sphinxext-opengraph",
]
plot = [
"matplotlib",
]
all = [
"torchio[doc]",
"torchio[plot]",
"torchio[csv]",
"torchio[dev]",
]

[project.scripts]
tiohd = "torchio.cli.print_info:app"
tiotr = "torchio.cli.apply_transform:app"
torchio-transform = "torchio.cli.apply_transform:app"

[project.urls]
Homepage = "http://torchio.rtfd.io"
Source = "https://github.com/fepegar/torchio"
"Issue tracker" = "https://github.com/fepegar/torchio/issues"
Documentation = "http://torchio.rtfd.io"
"Release notes" = "https://github.com/fepegar/torchio/releases"

[tool.black]
preview = false
skip-string-normalization = true
target-version = ['py311']

[tool.mypy]
pretty = true

[[tool.mypy.overrides]]
module = "duecredit.*"
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = "matplotlib.*"
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = "nibabel.*"
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = "scipy.*"
ignore_missing_imports = true

[tool.pytest.ini_options]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
Expand Down
129 changes: 0 additions & 129 deletions setup.cfg

This file was deleted.

10 changes: 10 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,13 @@ commands =
--install-types \
--non-interactive \
src

[flake8]
max-line-length = 88
select = C,E,F,W,B,B950
extend-ignore =
N813,
E123,
W503,
E203,
E501
Loading