Skip to content

Commit

Permalink
Merge pull request #39 from hsorby/main
Browse files Browse the repository at this point in the history
Convert from setup.py to pyproject.toml.
  • Loading branch information
hsorby authored Feb 3, 2025
2 parents 5429621 + 89185a6 commit 4719d18
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
31 changes: 31 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[build-system]
requires = ["setuptools>=61.0", "setuptools_scm>=8.0"]
build-backend = "setuptools.build_meta"

[tool.setuptools-git-versioning]
enabled = true

[project]
name = "scaffoldfitter"
dynamic = ["version"]
keywords = ["Medical", "Physiology", "Anatomical", "Mesh", "Finite Element", "Fitting", "SPARC"]
readme = "README.rst"
license = {file = "LICENSE"}
authors = [
{ name="Richard Christie", email="[email protected]" },
]
dependencies = [
"cmlibs.maths >= 0.6.2",
"cmlibs.utils >= 0.10.0",
"cmlibs.zinc >= 4.1"
]
description = "Scaffold/model geometric fitting library using Zinc."
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
]

[tool.setuptools_scm]
3 changes: 3 additions & 0 deletions src/scaffoldfitter/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import importlib.metadata

__version__ = importlib.metadata.version("scaffoldfitter")

0 comments on commit 4719d18

Please sign in to comment.