Skip to content
This repository has been archived by the owner on Dec 21, 2019. It is now read-only.

Commit

Permalink
use setuptools_scm to compute version from git
Browse files Browse the repository at this point in the history
  • Loading branch information
anthrotype committed Oct 15, 2018
1 parent 20e264e commit 306ed9e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ __pycache__/
.cache/
.tox/
.coverage
htmlcov/
htmlcov/
src/tfont/_version.py
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name="tfont",
version="0.1.0.dev0",
use_scm_version={"write_to": "src/tfont/_version.py"},
description="tfont is a font library that writes to JSON.",
long_description=long_description,
author="Adrien Tétar",
Expand All @@ -32,6 +32,9 @@
"pytest-randomly",
],
},
setup_requires=[
"setuptools_scm",
],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Operating System :: OS Independent",
Expand Down
6 changes: 6 additions & 0 deletions src/tfont/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
from tfont.converters.tfontConverter import TFontConverter
from tfont.objects.font import Font


try:
from ._version import version as __version__
except ImportError:
__version__ = "0.0.0+unknown"

0 comments on commit 306ed9e

Please sign in to comment.