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

setup.py → pyproject.toml #293

Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/run_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install -r requirements_test.txt
pip install .[test]
pip install ${{ matrix.dependencies }}
- name: Lint with flake8
run: |
Expand Down
4 changes: 2 additions & 2 deletions docs/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Install requirements:

.. code-block:: none

pip install -r ~/highdicom/requirements_test.txt
pip install .[test]

Run tests (including checks for PEP8 compliance):

Expand All @@ -79,7 +79,7 @@ Install requirements:

.. code-block:: none

pip install -r ~/highdicom/requirements_docs.txt
pip install .[docs]

Build documentation in *HTML* format:

Expand Down
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
5 changes: 0 additions & 5 deletions requirements_docs.txt

This file was deleted.

5 changes: 0 additions & 5 deletions requirements_test.txt

This file was deleted.

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.

Loading