Skip to content

Commit

Permalink
use setuptools_scm for versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Sep 19, 2020
1 parent b5f5db2 commit bf4c92f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,4 @@ dmypy.json
.DS_Store
Vault/
/tests/apitests_output/
src/drawbot_skia/_version.py
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name="drawbot-skia",
python_requires=">=3.6",
use_scm_version={"write_to": "src/drawbot_skia/_version.py"},
entry_points={
'console_scripts': ['drawbot=drawbot_skia.__main__:main'],
},
Expand All @@ -17,4 +17,8 @@
"python-bidi",
"unicodedata2",
],
setup_requires=["setuptools_scm"],
python_requires=">=3.6",
classifiers=[
],
)
4 changes: 4 additions & 0 deletions src/drawbot_skia/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
try:
from ._version import version as __version__
except ImportError:
__version__ = "0.0.0+unknown"

0 comments on commit bf4c92f

Please sign in to comment.