Skip to content

Commit

Permalink
Modified setup.py and bumped to v3.0.4 to resolve pypi issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
agstephens committed May 10, 2017
1 parent 5e9c452 commit 02cd071
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
--index-url https://pypi.python.org/simple/

-e .

netCDF4
numpy
cfunits==1.3.3
11 changes: 9 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@

sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)) + '/src')
__version__ = __import__('cfchecker').__version__
__description__ = "\n" + open(os.path.join(os.path.dirname(__file__), 'README.md')).read()

# Need to try/except this because pip install unpacks to a different dir and
# relative path lookup fails. Should still work where needed.
try:
__description__ = "\n" + open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
except:
__description__ = ""


setup(name='cfchecker',
version=__version__,
Expand All @@ -28,7 +35,7 @@

include_package_data=True,
zip_safe=False,
install_requires=['netCDF4', 'cfunits'],
install_requires=['netCDF4', 'numpy', 'cfunits==1.3.3'],
entry_points= {
'console_scripts': ['cfchecks = cfchecker.cfchecks:main'],
},
Expand Down
2 changes: 1 addition & 1 deletion src/cfchecker/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '3.0.2'
__version__ = '3.0.4'

0 comments on commit 02cd071

Please sign in to comment.