Skip to content

Commit

Permalink
hard-code version
Browse files Browse the repository at this point in the history
  • Loading branch information
swharden committed Sep 3, 2020
1 parent 9a8e710 commit 420e215
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
6 changes: 1 addition & 5 deletions src/pyabf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@
Documentation and code examples, and more can be found at:
https://github.com/swharden/pyABF
"""
__version__ = '2.2.8'

import sys
import os

dirname = os.path.abspath(os.path.dirname(__file__))
version_path = os.path.join(dirname, "version.txt")
with open(version_path) as version_file:
__version__ = version_file.read().strip()

if sys.version_info < (3, 6):
sys.stdout.write("ERROR: pyabf "+__version__+" requires Python 3.6 or newer.\n")
sys.stdout.write("pyabf 2.1.10 was the last version to support Python 2.7 and Python 3.5\n")
Expand Down
1 change: 0 additions & 1 deletion src/pyabf/version.txt

This file was deleted.

7 changes: 1 addition & 6 deletions src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,10 @@
long_description = f.read()
print("loaded description: (%s lines)" % (long_description.count("\n")))

version_path = os.path.join(PATH_HERE, "pyabf", "version.txt")
with open(version_path, "r") as version_file:
version = version_file.read().strip()


# standard pypi stuff
setup(
name='pyabf',
version=version,
version='2.2.8',
author='Scott W Harden',
author_email='SWHarden@gmail.com',
packages=['pyabf', 'pyabf.tools'],
Expand Down

0 comments on commit 420e215

Please sign in to comment.