Skip to content

Commit 047f9c6

Browse files
Move setuptools-scm configuration to pyproject.toml
1 parent 330bb8b commit 047f9c6

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ authors = [
1212
{name = "Olivier Hoenen", email = "olivier.hoenen@iter.org"},
1313
]
1414
description = "Pythonic wrappers for the IMAS Access Layer"
15-
license = {file = "LICENSE"}
1615
readme = {file = "README.md", content-type = "text/markdown"}
1716
requires-python = ">=3.7"
17+
license = {file = "LICENSE"}
1818
classifiers = [
1919
"Development Status :: 3 - Alpha",
2020
"Environment :: Console",
@@ -49,6 +49,7 @@ classifiers = [
4949
"Topic :: System :: Software Distribution",
5050
"Topic :: Utilities",
5151
]
52+
dynamic = ["version"]
5253

5354
[project.scripts]
5455
ids_convert = "imaspy.tools:convert"
@@ -59,5 +60,9 @@ build_DD = "imaspy.dd_helpers:prepare_data_dictionaries"
5960
[project.urls]
6061
homepage = "https://git.iter.org/projects/IMAS/repos/imaspy"
6162

63+
# See https://pypi.org/project/setuptools-scm/
64+
[tool.setuptools_scm]
65+
fallback_version="0.0.0" # TODO: Check if we can use IMASPY_VERSION here to match with EasyBuild
66+
6267
[tool.pytest.ini_options]
6368
minversion = "6.0"

setup.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,6 @@ def run(self):
322322
# For allowed version strings, see https://packaging.python.org/specifications/core-metadata/ for allow version strings
323323

324324
setup(
325-
use_scm_version={
326-
"fallback_version": os.getenv("IMASPY_VERSION", "0.0.0"),
327-
},
328325
setup_requires=pyproject_data["build-system"]["requires"],
329326
install_requires=install_requires,
330327
extras_require=optional_reqs,

0 commit comments

Comments
 (0)