Skip to content

Commit

Permalink
hardcode version in setup.py
Browse files Browse the repository at this point in the history
closes #144
  • Loading branch information
gabrielfalcao committed May 16, 2018
1 parent ab76adc commit fa5c87c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
14 changes: 1 addition & 13 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,6 @@
PROJECT_ROOT = os.path.dirname(__file__)


def read_version():
"""Read version from sure/__init__.py without loading any files"""

path = os.path.join(PROJECT_ROOT, 'sure', '__init__.py')
context = {}
with codecs.open(path, 'r', encoding='utf-8') as fp:
file_data = fp.read().encode('utf-8')
exec(file_data, context)

return context['version']


def local_text_file(*f):
path = os.path.join(PROJECT_ROOT, *f)
with open(path, 'rt') as fp:
Expand All @@ -76,7 +64,7 @@ def read_readme():

if __name__ == '__main__':
setup(name='sure',
version=read_version(),
version='1.4.11',
description=__doc__,
long_description=read_readme(),
url='http://github.com/gabrielfalcao/sure',
Expand Down
2 changes: 1 addition & 1 deletion sure/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
if not PY2:
basestring = str

version = '1.4.10'
version = '1.4.11'


not_here_error = \
Expand Down

0 comments on commit fa5c87c

Please sign in to comment.