Skip to content

Commit 81bc28a

Browse files
authored
Merge pull request #7 from ukaea/develop
Adding automatic versioning
2 parents 03ee2a4 + 9e0f7e7 commit 81bc28a

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/publish-to-pypi.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020

2121
steps:
2222
- uses: actions/checkout@v6
23+
with:
24+
fetch-depth: 0
2325

2426
- name: Set up Python
2527
uses: actions/setup-python@v6

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ share/python-wheels/
2626
.installed.cfg
2727
*.egg
2828
MANIFEST
29+
src/tokamap/_version.py
2930

3031
# PyInstaller
3132
*.manifest

pyproject.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[build-system]
2-
requires = ["setuptools>=61.0"]
2+
requires = ["setuptools>=61.0", "setuptools_scm[toml]>=8"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "tokamap"
7-
version = "0.2.0"
7+
dynamic = ["version"]
88
description = "A JSON schema-based framework for mapping and structuring experimental data"
99
authors = [
1010
{ name = "Jonathan Hollocombe", email = "jonathan.hollocombe@ukaea.uk" },
@@ -49,3 +49,9 @@ where = ["src"]
4949

5050
[tool.setuptools.package-data]
5151
"tokamap" = ["schemas/*.json"]
52+
53+
[tool.setuptools_scm]
54+
version_scheme = "post-release"
55+
local_scheme = "no-local-version"
56+
write_to = "src/tokamap/_version.py"
57+

0 commit comments

Comments
 (0)