Skip to content

Commit

Permalink
- migrate pyproject file to poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelRosier committed Oct 26, 2023
1 parent 856f93f commit a11f4fe
Showing 1 changed file with 41 additions and 45 deletions.
86 changes: 41 additions & 45 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,59 +1,55 @@
[build-system]
requires = ["setuptools>=61.0", "setuptools_scm[toml]>=6.2"]

[tool.setuptools]
packages = ["brats_toolkit"]

[tool.setuptools.dynamic]
#version = {attr = "my_package.VERSION"}
readme = {file = "README.md"}

[tool.setuptools_scm]
write_to = "brats_toolkit/_version.py"

[project]
[tool.poetry]
name = "BraTS-Toolkit"
dynamic = ["version"]
version = "1.0.7" # TODO: make version dynamic?
description = "BraTS Toolkit is a holistic approach to brain tumor segmentation allowing to build modular pipeliens for preprocessing, segmentation and fusion of segmentations."
license = "AGPL-3.0"

authors = [
{name="Florian Kofler", email="[email protected]"},
{name="Christoph Berger", email="[email protected]"},
{name="Isra Mekki", email="[email protected]"},
{name="Mahyar Valizadeh", email="[email protected]"},
"Florian Kofler <[email protected]>",
"Christoph Berger <[email protected]>",
"Isra Mekki <[email protected]>",
"Mahyar Valizadeh <[email protected]>",
"Marcel Rosier <[email protected]>",
]

maintainers = [
{name="Florian Kofler", email="[email protected]"},
{name="Isra Mekki", email="[email protected]"},
{name="Mahyar Valizadeh", email="[email protected]"},
"Florian Kofler <[email protected]>",
"Isra Mekki <[email protected]>",
"Mahyar Valizadeh <[email protected]>",
"Marcel Rosier <[email protected]>",
]
description = "BraTS Toolkit is a holistic approach to brain tumor segmentation allowing to build modular pipeliens for preprocessing, segmentation and fusion of segmentations."
keywords = ["brain tumor", "glioma", "BraTS", "segmentation", "fusion", "skullstripping", "brain extraction"]

readme = "README.md"
# requires-python = "==3.10"
repository = "https://github.com/neuronflow/BraTS-Toolkit"
documentation = "https://brats-toolkit.readthedocs.io/en/latest/"

keywords = ["brain tumor", "glioma", "BraTS", "segmentation", "fusion", "skullstripping", "brain extraction"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: OS Independent",
]
dependencies = [
'SimpleITK==2.1.1.2',
'numpy==1.22.0',
'python-engineio==3.14.2',
'python-socketio==4.6.1',
'requests==2.24.0',
'rich==13.6.0'
]

[project.optional-dependencies]
dev = [
"pytest",
]
[tool.poetry.dependencies]
python = "^3.10"

[project.scripts]
brats-segment = "brats_toolkit.cli:segmentation"
brats-fuse = "brats_toolkit.cli:fusion"
brats-batch-preprocess = "brats_toolkit.cli:batchpreprocess"
brats-preprocess = "brats_toolkit.cli:singlepreprocess"
# core
SimpleITK = "2.1.1.2"
numpy = "^1.23.0"
python-engineio = "3.14.2"
python-socketio = "4.6.1"
requests = "^2.24.0"

# pretty citation reminder
rich = "^13.6.0"


[tool.poetry.dev-dependencies]
pytest = "^6.2"

[tool.poetry.scripts]
brats-segment = 'brats_toolkit.cli:segmentation'
brats-fuse = 'brats_toolkit.cli:fusion'
brats-batch-preprocess = 'brats_toolkit.cli:batchpreprocess'
brats-preprocess = 'brats_toolkit.cli:singlepreprocess'

[project.urls]
# documentation = "TODO"
repository = "https://github.com/neuronflow/BraTS-Toolkit"

0 comments on commit a11f4fe

Please sign in to comment.