Skip to content

Commit

Permalink
Switch to separate version.py file, exec it
Browse files Browse the repository at this point in the history
  • Loading branch information
kerrickstaley committed Sep 30, 2018
1 parent dce1b18 commit c0ac89a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion genanki/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from .apkg_col import APKG_COL
from .apkg_schema import APKG_SCHEMA

__version__ = '0.6.2'
from .version import __version__

BASE91_TABLE = [
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's',
Expand Down
1 change: 1 addition & 0 deletions genanki/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '0.6.3'
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
from setuptools import setup
from genanki import __version__

version = {}
with open('genanki/version.py') as fp:
exec(fp.read(), version)

setup(name='genanki',
version=__version__,
version=version['__version__'],
description='Generate Anki decks programmatically',
url='https://github.com/kerrickstaley/genanki',
author='Kerrick Staley',
Expand Down

0 comments on commit c0ac89a

Please sign in to comment.