File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ classifiers = [
21
21
"Bug Tracker" = " https://github.com/RasmussenLab/python_package/issues"
22
22
"Homepage" = " https://github.com/RasmussenLab/python_package"
23
23
24
- [tool .setuptools .dynamic ]
25
- version = {attr = " mockup.__version__" }
26
24
27
25
[project .optional-dependencies ]
28
26
docs = [
@@ -36,3 +34,11 @@ docs = [
36
34
# Configure the Ruff linter: Ignore error number 501
37
35
[tool .ruff ]
38
36
ignore = [" E501" ]
37
+
38
+ [build-system ]
39
+ build-backend = " setuptools.build_meta"
40
+ requires = [" setuptools>=64" , " setuptools_scm>=8" ]
41
+
42
+ [tool .setuptools_scm ]
43
+ # https://setuptools-scm.readthedocs.io/
44
+ # used to pick up the version from the git tags or the latest commit.
Original file line number Diff line number Diff line change 1
1
# The __init__.py file is loaded when the package is loaded.
2
2
# It is used to indicate that the directory in which it resides is a Python package
3
3
4
- # ! does not work yet:
5
- # from importlib import metadata
6
- # __version__ = metadata.version("mockup")
7
- __version__ = "24.02"
4
+
5
+ from importlib import metadata
6
+ __version__ = metadata .version ("rasmussenlab-mockup" )
8
7
9
8
from .mockup import add_one , Circle
10
9
You can’t perform that action at this time.
0 commit comments