Skip to content

Commit

Permalink
Move build system over to poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
scaramallion committed Nov 8, 2023
1 parent 4972781 commit 19f996a
Show file tree
Hide file tree
Showing 9 changed files with 1,228 additions and 75 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ celerybeat-schedule
.venv/
venv/
ENV/
env*/

# Spyder project settings
.spyderproject
Expand All @@ -96,3 +97,6 @@ ENV/

# PyCharm
.idea

# mypy
.mypy*
File renamed without changes.
4 changes: 0 additions & 4 deletions MANIFEST.in

This file was deleted.

1,124 changes: 1,124 additions & 0 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pynetdicom/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


# pynetdicom version
__version__ = "2.1.0.dev0"
__version__ = "2.2.0.dev0"

# DICOM Standard version used for SOP classes and instances
__dicom_version__: str = "2021e"
Expand Down
102 changes: 99 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,102 @@
[build-system]
requires = ["setuptools", "wheel"]
build_backend = "setuptools.build_meta"
requires = ["poetry-core >=1.8,<2"]
build-backend = "poetry.core.masonry.api"


[tool.poetry]
authors = [
"pynetdicom contributors"
]
classifiers=[
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Intended Audience :: Healthcare Industry",
"Intended Audience :: Science/Research",
"Development Status :: 5 - Production/Stable",
"Natural Language :: English",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
"Topic :: Software Development :: Libraries",
]
description = "A Python implementation of the DICOM networking protocol"
documentation = "https://pydicom.github.io/pynetdicom"
homepage = "https://github.com/pydicom/pynetdicom"
include = [
"pynetdicom/tests/cert_files/*",
"pynetdicom/tests/dicom_files/*",
"pynetdicom/apps/qrscp/default.ini",
"pynetdicom/py.typed",
"LICENCE",
]

keywords = ["dicom", "networking", "pydicom"]
license = "MIT"
maintainers = [
"scaramallion <[email protected]>",
]
name = "pynetdicom"
readme = "README.rst"
version = "2.2.0.dev0"


[tool.poetry.dependencies]
pydicom = "~2.4"
python = "^3.10"

[tool.poetry.group.apps]
optional = true

[tool.poetry.group.apps.dependencies]
sqlalchemy = "^2.0"

[tool.poetry.group.dev]
optional = true

[tool.poetry.group.dev.dependencies]
black = "^23.10"
codespell = "^2.2"
coverage = "^7.3"
flake8 = "^6.1"
mypy = "^1.6"
pyfakefs = "^5.3"
pytest = "^7.4"
sqlalchemy = "^2.0"

[tool.poetry.group.tests]
optional = true

[tool.poetry.group.tests.dependencies]
pyfakefs = "^5.3"
pytest = "^7.4"
sqlalchemy = "^2.0"

[tool.poetry.group.docs]
optional = true

[tool.poetry.group.docs.dependencies]
numpydoc = "^1.6"
sphinx = "^7.2"
sphinx-copybutton = "^0.5"
sphinx-rtd-theme = "^1.3"


[tool.poetry.scripts]
echoscp = "pynetdicom.apps.echoscp.echoscp:main"
echoscu = "pynetdicom.apps.echoscu.echoscu:main"
findscu = "pynetdicom.apps.findscu.findscu:main"
getscu = "pynetdicom.apps.getscu.getscu:main"
movescu = "pynetdicom.apps.movescu.echoscp:main"
qrscp = "pynetdicom.apps.qrscp.qrscp:main"
storescp = "pynetdicom.apps.storescp.storescp:main"
storescu = "pynetdicom.apps.storescu.storescu:main"


[tool.black]
exclude = ".venv|build|/_.*_dict.py$"
force-exclude = ".venv|/_.*_dict.py$"


[tool.coverage.run]
Expand All @@ -13,7 +109,7 @@ omit = [


[tool.mypy]
python_version = "3.9"
python_version = "3.10" # use the minimum supported Python version
exclude = [
"pynetdicom/tests",
"pynetdicom/apps",
Expand Down
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

7 changes: 0 additions & 7 deletions setup.cfg

This file was deleted.

59 changes: 0 additions & 59 deletions setup.py

This file was deleted.

0 comments on commit 19f996a

Please sign in to comment.