Skip to content

Commit 45c90a1

Browse files
committed
Changing buildtool to uv
1 parent 823564d commit 45c90a1

File tree

25 files changed

+1297
-68
lines changed

25 files changed

+1297
-68
lines changed

.github/workflows/run_unit_tests.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
strategy:
1717
matrix:
1818
python-version: [
19-
"3.8",
2019
"3.9",
2120
"3.10",
2221
"3.11",
@@ -29,18 +28,16 @@ jobs:
2928
- name: Set up Python ${{ matrix.python-version }}
3029
uses: actions/setup-python@v2
3130
with:
32-
python-version: ${{ matrix.python-version }}
31+
python-version: ${{ matrix.python-version }}
32+
- name: Install uv
33+
uses: astral-sh/setup-uv@v6
34+
with:
35+
version: "0.7.2"
3336
- name: Install dependencies
34-
run: |
35-
python -m pip install --upgrade pip setuptools
36-
pip install '.[test]'
37-
pip install .
37+
run: uv sync
3838
- name: Lint with flake8
39-
run: |
40-
flake8 --exclude='bin,build,.eggs'
39+
run: uv run flake8 src tests --exclude=.venv,build,.eggs
4140
- name: Check type hints with mypy
42-
run: |
43-
mypy src tests
41+
run: uv run mypy src tests
4442
- name: Test with pytest
45-
run: |
46-
pytest --cov=dicomweb_client --cov-fail-under=65 tests
43+
run: uv run pytest --cov=pydicomweb_client --cov-fail-under=65 tests

pyproject.toml

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
1-
[build-system]
2-
requires = ["setuptools>=64"]
3-
build-backend = "setuptools.build_meta"
4-
51
[project]
6-
name = "dicomweb-client"
7-
version = "0.59.3"
2+
name = "pydicomweb-client"
3+
dynamic = ["version"]
84
description = "Client for DICOMweb RESTful services."
95
readme = "README.md"
10-
requires-python = ">=3.6"
6+
requires-python = ">=3.9"
117
authors = [
128
{ name = "Markus D. Herrmann" },
9+
{ name = "Sumantra Sharma" },
10+
{ name = "Kai Schlamp" },
1311
]
1412
maintainers = [
15-
{ name = "Markus D. Herrmann" },
16-
{ name = "Christopher P. Bridge" },
17-
{ name = "Steve Pieper" },
13+
{ name = "Sumantra Sharma" },
14+
{ name = "Kai Schlamp" },
1815
]
1916
license = { text = "LICENSE" }
2017
classifiers = [
@@ -28,9 +25,6 @@ classifiers = [
2825
"Topic :: Multimedia :: Graphics",
2926
"Topic :: Scientific/Engineering :: Information Analysis",
3027
"Programming Language :: Python :: 3",
31-
"Programming Language :: Python :: 3.6",
32-
"Programming Language :: Python :: 3.7",
33-
"Programming Language :: Python :: 3.8",
3428
"Programming Language :: Python :: 3.9",
3529
"Programming Language :: Python :: 3.10",
3630
"Programming Language :: Python :: 3.11",
@@ -51,8 +45,11 @@ gcp = [
5145
"dataclasses>=0.8; python_version=='3.6'",
5246
"google-auth>=1.6",
5347
]
54-
test = [
48+
49+
[dependency-groups]
50+
dev = [
5551
"mypy==0.982",
52+
"flake8==6.1.0",
5653
"pytest==7.1.3",
5754
"pytest-cov==3.0.0",
5855
"pytest-flake8==1.1.3",
@@ -69,12 +66,12 @@ docs = [
6966
]
7067

7168
[project.scripts]
72-
dicomweb_client = "dicomweb_client.cli:_main"
69+
pydicomweb_client = "pydicomweb_client.cli:_main"
7370

7471
[project.urls]
75-
homepage = "https://github.com/imagingdatacommons/dicomweb-client"
72+
homepage = "https://github.com/openradx/pydicomweb"
7673
documentation = "https://dicomweb-client.readthedocs.io/"
77-
repository = "https://github.com/ImagingDataCommons/dicomweb-client.git"
74+
repository = "https://github.com/openradx/pydicomweb.git"
7875

7976
[tool.pytest.ini_options]
8077
minversion = "7"
@@ -98,3 +95,13 @@ ignore_missing_imports = true
9895
[[tool.mypy.overrides]]
9996
module = "retrying.*"
10097
ignore_missing_imports = true
98+
99+
[tool.uv-dynamic-versioning]
100+
pattern = "default-unprefixed"
101+
102+
[tool.hatch.version]
103+
source = "uv-dynamic-versioning"
104+
105+
[build-system]
106+
requires = ["hatchling", "uv-dynamic-versioning"]
107+
build-backend = "hatchling.build"

src/dicomweb_client/__init__.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/dicomweb_client/api.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/dicomweb_client/py.typed

Whitespace-only changes.

src/pydicomweb_client/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
__version__ = '0.59.3'
2+
3+
from pydicomweb_client.api import DICOMwebClient, DICOMfileClient
4+
from pydicomweb_client.protocol import DICOMClient
5+
from pydicomweb_client.uri import URI, URISuffix, URIType
6+
7+
__all__ = [
8+
'DICOMClient',
9+
'DICOMfileClient',
10+
'DICOMwebClient',
11+
'URI',
12+
'URISuffix',
13+
'URIType',
14+
]

src/pydicomweb_client/api.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
"""Application Programming Interface (API)"""
2+
from pydicomweb_client.web import DICOMwebClient
3+
from pydicomweb_client.file import DICOMfileClient
4+
from pydicomweb_client.protocol import DICOMClient
5+
6+
__all__ = [
7+
'DICOMClient',
8+
'DICOMfileClient',
9+
'DICOMwebClient',
10+
]
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
import pydicom
1313

14-
from dicomweb_client.api import DICOMwebClient
15-
from dicomweb_client.log import configure_logging
16-
from dicomweb_client.session_utils import (
14+
from pydicomweb_client.api import DICOMwebClient
15+
from pydicomweb_client.log import configure_logging
16+
from pydicomweb_client.session_utils import (
1717
create_session,
1818
create_session_from_user_pass,
1919
add_certs_to_session,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
For further details about GCP, visit: https://cloud.google.com
88
"""
99

10-
from dicomweb_client.ext.gcp.uri import GoogleCloudHealthcareURL # noqa
10+
from pydicomweb_client.ext.gcp.uri import GoogleCloudHealthcareURL # noqa

0 commit comments

Comments
 (0)