We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c9bb02 commit beef8c0Copy full SHA for beef8c0
pyproject.toml
@@ -1,7 +1,9 @@
1
[build-system]
2
-requires = ["setuptools>=61.0"]
+requires = ["setuptools>=61.0", "setuptools_scm[toml]>=6.2"]
3
build-backend = "setuptools.build_meta"
4
5
+[tool.setuptools_scm]
6
+
7
[project]
8
name = "xpystac"
9
authors = [
xpystac/__init__.py
@@ -1 +1,7 @@
-__version__ = "0.1.2"
+from importlib.metadata import PackageNotFoundError, version
+try:
+ __version__ = version("xpystac")
+except PackageNotFoundError: # noqa
+ # package is not installed
+ pass
0 commit comments