File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed
Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 1+ # Custom ignores
2+ src /linpde_gp /_version.py
3+
14# Python.gitignore
25# from https://github.com/github/gitignore/tree/3bb7b4b767f3f8df07e362dfa03c8bd425f16d32
36
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ github = "https://github.com/marvinpfoertner/linpde-gp"
5252requires = [
5353 " setuptools>=61" ,
5454 " wheel" ,
55+ " setuptools_scm[toml]>=6.0" ,
5556]
5657build-backend = " setuptools.build_meta"
5758
@@ -65,7 +66,18 @@ package-dir = { "" = "src" }
6566include-package-data = true
6667
6768[tool .setuptools .dynamic ]
68- version = { attr = " linpde_gp.__version__" }
69+ version = { attr = " linpde_gp._version.version" }
70+
71+ [tool .setuptools_scm ]
72+ local_scheme = " dirty-tag"
73+ write_to = " src/linpde_gp/_version.py"
74+ write_to_template = """
75+ # pylint: skip-file
76+ # coding: utf-8
77+ # file generated by setuptools_scm
78+ # don't change, don't track in version control
79+ version = \" {version}\"
80+ """
6981
7082# ###############################################################################
7183# Testing Configuration #
Original file line number Diff line number Diff line change 1414
1515from . import linalg , typing , utils
1616
17- __version__ = "0.0.1a1"
17+ # The library version is generated by `setuptools_scm`
18+ try :
19+ from ._version import version as __version__
20+ except ModuleNotFoundError :
21+ pass
You can’t perform that action at this time.
0 commit comments