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 = [
2121"Bug Tracker" = " https://github.com/RasmussenLab/python_package/issues"
2222"Homepage" = " https://github.com/RasmussenLab/python_package"
2323
24- [tool .setuptools .dynamic ]
25- version = {attr = " mockup.__version__" }
2624
2725[project .optional-dependencies ]
2826docs = [
@@ -36,3 +34,11 @@ docs = [
3634# Configure the Ruff linter: Ignore error number 501
3735[tool .ruff ]
3836ignore = [" 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 11# The __init__.py file is loaded when the package is loaded.
22# It is used to indicate that the directory in which it resides is a Python package
33
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" )
87
98from .mockup import add_one , Circle
109
You can’t perform that action at this time.
0 commit comments