Skip to content

Commit c283a17

Browse files
authored
Merge pull request #84 from hsorby/main
Replace setup.py with pyproject.toml.
2 parents 290cce2 + f98985f commit c283a17

File tree

3 files changed

+40
-79
lines changed

3 files changed

+40
-79
lines changed

pyproject.toml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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.widgets"
10+
dynamic = ["version"]
11+
keywords = ["CMLibs", "Zinc", "Widgets", "UI"]
12+
readme = "README.rst"
13+
license = {file = "LICENSE"}
14+
authors = [
15+
{ name="Hugh Sorby", email="[email protected]" },
16+
]
17+
dependencies = [
18+
"cmlibs.maths >= 0.3",
19+
"cmlibs.utils >= 0.6",
20+
"PySide6",
21+
"cmlibs.zinc >= 4.0",
22+
"cmlibs.argon >= 0.4.0",
23+
]
24+
description = "A collection of Qt widgets and utilities for handling user interface interactions with the CMLibs Zinc library."
25+
requires-python = ">=3.8"
26+
classifiers = [
27+
"Programming Language :: Python :: 3",
28+
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
29+
"Operating System :: OS Independent",
30+
"Topic :: Scientific/Engineering :: Medical Science Apps.",
31+
]
32+
33+
[project.urls]
34+
Homepage = "https://cmlibs.org"
35+
Repository = "https://github.com/CMLibs-Python/cmlibs.widgets"
36+
37+
[tool.setuptools_scm]

setup.py

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

src/cmlibs/widgets/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
__version__ = "0.6.4"
1+
import importlib.metadata
22
from cmlibs.widgets.ui import icons_rc
3+
4+
__version__ = importlib.metadata.version("cmlibs.widgets")

0 commit comments

Comments
 (0)