Skip to content

Commit

Permalink
Switch pixl_dcmd from setup.py to pyproject.toml
Browse files Browse the repository at this point in the history
Describe project and runtime, dev and test dependencies in pyproject.toml.
Removed requirements.txt and setup.py.  Updated README.md to reflect new
installation procedure.
  • Loading branch information
jstutters committed Jan 29, 2024
1 parent a625965 commit 3b410a5
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 55 deletions.
10 changes: 1 addition & 9 deletions pixl_dcmd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,7 @@ and persisting it in the PIXL postgres database.
Install the Python dependencies with

```bash
pip install -e ../../pixl_core/ .
```

```bash
pip install -r requirements.txt
```

```bash
pip install -e .
pip install -e ../pixl_core/ .[test,dev]
```

## Test
Expand Down
42 changes: 42 additions & 0 deletions pixl_dcmd/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[project]
name = "pixl_dcmd"
version = "0.0.2"
authors = [
{ name="PIXL authors" },
]
description = "DICOM header anonymisation functions"
readme = "README.md"
requires-python = "~=3.9"
classifiers = [
"Programming Language :: Python :: 3"
]
dependencies = [
"arrow==1.2.3",
"pydicom==2.4.4",
"pydicom-data",
"logger==1.4",
"pyyaml==6.0",
"requests==2.31.0",
"python-decouple==3.6",
"types-requests~=2.28",
]

[project.optional-dependencies]
test = [
"pytest==7.4.2",
]
dev = [
"mypy",
"pre-commit",
"ruff"
]

[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[tool.ruff]
extend = "./ruff.toml"

[tool.ruff.extend-per-file-ignores]
"./tests/**" = ["D100"]
11 changes: 0 additions & 11 deletions pixl_dcmd/src/requirements.txt

This file was deleted.

35 changes: 0 additions & 35 deletions pixl_dcmd/src/setup.py

This file was deleted.

0 comments on commit 3b410a5

Please sign in to comment.