Skip to content

Commit 8a460d7

Browse files
authored
Merge pull request #12 from hsorby/main
Move from using setup.py to pyproject.toml.
2 parents 5e01a2b + 65bb1fc commit 8a460d7

File tree

3 files changed

+35
-59
lines changed

3 files changed

+35
-59
lines changed

pyproject.toml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0", "setuptools_scm>=8.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[tool.setuptools-git-versioning]
6+
enabled = true
7+
8+
[project]
9+
name = "cmlibs.maths"
10+
dynamic = ["version"]
11+
keywords = ["Math", "CMLibs", "Zinc"]
12+
readme = "README.rst"
13+
license = {file = "LICENSE"}
14+
authors = [
15+
{ name="Hugh Sorby", email="[email protected]" },
16+
]
17+
dependencies = [
18+
]
19+
description = "A collection of math functions and algorithms."
20+
requires-python = ">=3.8"
21+
classifiers = [
22+
"Programming Language :: Python :: 3",
23+
"License :: OSI Approved :: Apache Software License",
24+
"Operating System :: OS Independent",
25+
"Topic :: Scientific/Engineering :: Medical Science Apps.",
26+
]
27+
28+
[project.urls]
29+
Homepage = "https://cmlibs.org"
30+
Repository = "https://github.com/CMLibs-Python/cmlibs.utils"
31+
32+
[tool.setuptools_scm]

setup.py

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

src/cmlibs/maths/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
__version__ = '0.6.2'
1+
import importlib.metadata
2+
3+
__version__ = importlib.metadata.version("cmlibs.utils")

0 commit comments

Comments
 (0)