Skip to content

Commit

Permalink
setup: Read __version__ from setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
jleclanche committed Mar 7, 2017
1 parent 9fb545b commit b353e2a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion hearthstone/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
__version__ = "3.4.17720"
import pkg_resources


__version__ = pkg_resources.require("hearthstone")[0].version
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[metadata]
name = hearthstone
version = 3.4.17720
description = CardDefs.xml parser and Hearthstone enums for Python
author = Jerome Leclanche
author_email = [email protected]
Expand Down
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#!/usr/bin/env python

import hearthstone
from setuptools import setup


setup(
version=hearthstone.__version__,
package_data={"": ["CardDefs.xml", "Strings/*/*.txt"]},
)

0 comments on commit b353e2a

Please sign in to comment.