Skip to content

Commit

Permalink
Updated installation, bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
slightlynybbled committed Feb 5, 2018
1 parent 41c7a07 commit 8dd9170
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 12 deletions.
4 changes: 4 additions & 0 deletions docs/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
To build the documentation:

sphinx-build -b html . ../docs

2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
xlrd >= 1.0.0
xlwt >= 1.0.0
31 changes: 20 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,37 @@
#!/usr/bin/env python

from setuptools import setup
from stringify import stringify_py
import os

# provide correct path for version
__version__ = None
here = os.path.dirname(os.path.dirname(__file__))
exec(open(os.path.join(here, 'tk_tools/version.py')).read())
try:
from stringify import stringify_py
except ImportError:
pass

# archive the image files into 'tk_tools/images.py'
stringify_py('images', 'tk_tools/images.py')
requirements = []
with open('requirements.txt', 'r') as f:
for line in f.readlines():
requirements.append(line.strip())

requirements = [
'xlrd >= 1.0.0',
'xlwt >= 1.0.0'
]
print(f'requirements: {requirements}')

setup_requirements = [
'flake8 >= 3.5.0',
'stringify >= 0.1.1',
'sphinx >= 1.6'
]

# provide correct path for version
__version__ = None
here = os.path.dirname(os.path.dirname(__file__))
exec(open(os.path.join(here, 'tk_tools/version.py')).read())

# archive the image files into 'tk_tools/images.py'
try:
stringify_py('images', 'tk_tools/images.py')
except NameError:
print('warning: stringify not present at time of install, you may wish to run this script again')

setup(
name='tk_tools',
version=__version__,
Expand Down
2 changes: 1 addition & 1 deletion tk_tools/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.4.5'
__version__ = '0.4.6'

0 comments on commit 8dd9170

Please sign in to comment.