Improve lib requirements on central file requirement.txt and configure setup.py to read dependencies from that file.
env) $ aardvark config
Traceback (most recent call last):
File "/home/ssm-user/aardvark/env/bin/aardvark", line 11, in <module>
load_entry_point('aardvark', 'console_scripts', 'aardvark')()
File "/home/ssm-user/aardvark/env/lib/python3.8/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/home/ssm-user/aardvark/env/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
return ep.load()
File "/home/ssm-user/aardvark/env/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2443, in load
return self.resolve()
File "/home/ssm-user/aardvark/env/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2449, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/home/ssm-user/aardvark/aardvark/__init__.py", line 14, in <module>
db = SQLAlchemy()
File "/home/ssm-user/aardvark/env/lib/python3.8/site-packages/Flask_SQLAlchemy-2.5.1-py3.8.egg/flask_sqlalchemy/__init__.py", line 758, in __init__
_include_sqlalchemy(self, query_class)
File "/home/ssm-user/aardvark/env/lib/python3.8/site-packages/Flask_SQLAlchemy-2.5.1-py3.8.egg/flask_sqlalchemy/__init__.py", line 112, in _include_sqlalchemy
for key in module.__all__:
AttributeError: module 'sqlalchemy' has no attribute '__all__'
(env) $
Format setup.py according PEP8
setup.py:1:1: D205 1 blank line required between summary line and description
setup.py:1:1: D400 First line should end with a period
setup.py:11:1: I100 Import statements are in the wrong order. 'import os.path' should be before 'import sys'
setup.py:13:1: I101 Imported names are in the wrong order. Should be find_packages, setup
setup.py:33:1: W293 blank line contains whitespace
setup.py:36:1: D400 First line should end with a period
setup.py:43:1: E305 expected 2 blank lines after class or function definition, found 1
setup.py:66:23: E201 whitespace after '['
setup.py:66:61: E202 whitespace before ']'
WHY
Help people to install easily and follow a standard style format for Python to community easily support.
WHAT
requirement.txt
and configuresetup.py
to read dependencies from that file.setup.py
according PEP8WHY
Help people to install easily and follow a standard style format for Python to community easily support.