From 386d340f3a0e17e9ef6f84272e388371a05647e4 Mon Sep 17 00:00:00 2001 From: Dave Chen Date: Wed, 4 Oct 2023 13:51:40 -0400 Subject: [PATCH] Add pyproject.toml to make installable with pip --- pyproject.toml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..2789577 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,36 @@ +[build-system] +requires = ["setuptools>=61.0", "setuptools_scm[toml]>=7.1"] +build-backend = "setuptools.build_meta" + +[project] +name = "dicom2stl" +authors = [ + { name="David Chen", email="dchen@mail.nih.gov" }, +] +description = "A script to extract an STL surface mesh from a DICOM volume image." +readme = "README.md" +requires-python = ">=3.8" +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", +] +dynamic = ["dependencies", "version"] + +[project.urls] +"Homepage" = "https://github.com/dave3d/dicom2stl" +"Bug Tracker" = "https://github.com/dave3d/dicom2stl" + +[tool.setuptools.dynamic] +dependencies = {file = ["requirements.txt"]} + +[project.scripts] +comment_spell_check = "dicom2stl:main" + +[tool.setuptools_scm] +local_scheme = "dirty-tag" + +[tool.flake8] +max-line-length = 88 +ignore = ['E203', 'W503'] +max_complexity = 25