Skip to content

Commit

Permalink
Update setup.py - fix dependency installation bug
Browse files Browse the repository at this point in the history
I have no idea how this bug made it past me.
  • Loading branch information
nwunderly committed May 11, 2021
1 parent 3ad81f4 commit 8cd1d49
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion aionasa/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.2.0'
__version__ = '0.2.1'

from .asset import Asset
from .client import BaseClient
Expand Down
14 changes: 9 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import setuptools
import re


with open('./README.md', 'r') as fp:
long_description = fp.read()


with open('./aionasa/__init__.py', 'r') as fp:
# FIRST LINE:
# __version__ = '<version>'
line = fp.readline()
version = eval(line[14:])
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fp.read(), re.MULTILINE).group(1)


with open('requirements.txt') as f:
requirements = f.read().splitlines()


# packages = ['aionasa']
# packages.extend(setuptools.find_packages('./aionasa'))
Expand All @@ -26,14 +29,15 @@
description='An async python wrapper for NASA open APIs.',
long_description=long_description,
long_description_content_type='text/markdown',
install_requires=requirements,
extras_require={
'docs': [
'sphinx',
'sphinxcontrib_trio',
],
},
packages=setuptools.find_packages(),
python_requires='>=3.8',
packages=setuptools.find_packages(),
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'License :: OSI Approved :: MIT License',
Expand Down

0 comments on commit 8cd1d49

Please sign in to comment.