Skip to content

Commit

Permalink
setup.py → pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Jun 16, 2024
1 parent e827aba commit 122cb1d
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 79 deletions.
82 changes: 82 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
[build-system]
requires = ["setuptools>=64"]
build-backend = "setuptools.build_meta"

[project]
name = "highdicom"
dynamic = ["version"]
description = "High-level DICOM abstractions."
readme = "README.md"
requires-python = ">=3.6"
authors = [
{ name = "Markus D. Herrmann" },
]
maintainers = [
{ name = "Markus D. Herrmann" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Multimedia :: Graphics",
"Topic :: Scientific/Engineering :: Information Analysis",
]
dependencies = [
"numpy>=1.19",
"pillow-jpls>=1.0",
"pillow>=8.3",
"pydicom>=2.3.0,!=2.4.0",
]

[project.optional-dependencies]
libjpeg = [
"pylibjpeg-libjpeg>=1.3",
"pylibjpeg-openjpeg>=1.2",
"pylibjpeg>=1.4",
]
test = [
"mypy==0.971",
"pytest==7.1.2",
"pytest-cov==3.0.0",
"pytest-flake8==1.1.1",
"numpy-stubs @ git+https://github.com/numpy/numpy-stubs@201115370a0c011d879d69068b60509accc7f750",
]
docs = [
"sphinx-autodoc-typehints==1.17.0",
"sphinx-pyreverse==0.0.17",
"sphinx-rtd-theme==1.0.0",
"sphinxcontrib-autoprogram==0.1.7",
"sphinxcontrib-websupport==1.2.4",
]

[project.urls]
homepage = "https://github.com/imagingdatacommons/highdicom"
documentation = "https://highdicom.readthedocs.io/"
repository = "https://github.com/ImagingDataCommons/highdicom.git"

[tool.pytest.ini_options]
addopts = "--doctest-modules"
testpaths = ["tests"]
log_cli_level = "INFO"

[tool.mypy]
warn_unreachable = true

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

[[tool.mypy.overrides]]
module = "mypy-PIL.*"
ignore_missing_imports = true
14 changes: 0 additions & 14 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,3 @@ test=pytest
max_line_length = 80
ignore = E121 E125 W504
statistics = True

[mypy]
warn_unreachable = True

[mypy-pydicom.*]
ignore_missing_imports = True

[mypy-PIL.*]
ignore_missing_imports = True

[tool:pytest]
python_files = tests/*.py
log_cli_level = INFO
addopts = --doctest-modules
65 changes: 0 additions & 65 deletions setup.py

This file was deleted.

0 comments on commit 122cb1d

Please sign in to comment.