Skip to content

Commit

Permalink
EditSetup
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderJuestel committed Sep 15, 2023
1 parent 52426b3 commit f3245ea
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gemgis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
"""
try:
from ._version_generated import __version__
except ImportError:
__version__ = "unreleased"

from gemgis.gemgis import *
import gemgis.vector as vector
Expand Down
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,13 @@ Home = 'https://gemgis.readthedocs.io/'
Repository = 'https://github.com/cgre-aachen/gemgis'
"Source Code" = 'https://github.com/cgre-aachen/gemgis'

[tool.setuptools_scm]
# Make sure setuptools uses version based on the last created tag
version_scheme = "post-release"
# Make sure scm doesn't use local scheme version for push to pypi
# (so there isn't a + in the version)
local_scheme = "no-local-version"
# This _version_generated.py file is a file that you'll never want to add to version control - so you'll want to add it to your gitignore file. but when you build your package, setuptools_Scm creates it. and it contains version information that you will pull into your package below.
write_to = "gemgis/_version_generated.py"
write_to_template = '__version__ = "v{version}"'

0 comments on commit f3245ea

Please sign in to comment.