forked from tern-tools/tern
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up PEP8 style inconsistencies in setup.py
This commit makes very simple changes to address inconsistencies with the PEP8 style in setup.py. Specifically, this PR: 1) Cleans up indentations where necessary. 2) Fixes one line that was too long. 3) Adds new lines where necessary. By cleaning up setup.py, the next person to take on issue tern-tools#331 will not see any linting errors when they open their PR. Signed-off-by: Rose Judge <[email protected]>
- Loading branch information
Showing
1 changed file
with
33 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,43 +8,47 @@ | |
|
||
from tern import Version | ||
|
||
|
||
def _read_long_desc(): | ||
with open("README.md") as fp: | ||
return fp.read() | ||
|
||
|
||
def _get_requirements(): | ||
|
||
with open("requirements.txt") as fp: | ||
return [requirement for requirement in fp] | ||
|
||
|
||
setup( | ||
name="tern", | ||
version=Version, | ||
author="VMWare Inc", | ||
author_email="[email protected]", | ||
url="https://github.com/vmware/tern/", | ||
description=("An inspection tool to find the OSS compliance metadata of" | ||
" the packages installed in a container image."), | ||
long_description=_read_long_desc(), | ||
license="BSD-2.0", | ||
keywords="Distribution, Container, Cloud-Native", | ||
classifiers = [ | ||
'Development Status :: 3 - Alpha', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: BSD License', | ||
'Natural Language :: English', | ||
'Operating System :: POSIX', | ||
'Operating System :: POSIX :: Linux', | ||
'Operating System :: MacOS :: MacOS X', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: Implementation :: CPython', | ||
'Topic :: Software Development' | ||
], | ||
include_package_data=True, | ||
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]), | ||
install_requires=_get_requirements(), | ||
test_suite="tests.runtests", | ||
entry_points={ | ||
"console_scripts": ["tern = tern.__main__:main"] | ||
}, | ||
name="tern", | ||
version=Version, | ||
author="VMWare Inc", | ||
author_email="[email protected]", | ||
url="https://github.com/vmware/tern/", | ||
description=("An inspection tool to find the OSS compliance metadata of" | ||
" the packages installed in a container image."), | ||
long_descrition=_read_long_desc(), | ||
license="BSD-2.0", | ||
keywords="Distribution, Container, Cloud-Native", | ||
classifiers=[ | ||
'Development Status :: 3 - Alpha', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: BSD License', | ||
'Natural Language :: English', | ||
'Operating System :: POSIX', | ||
'Operating System :: POSIX :: Linux', | ||
'Operating System :: MacOS :: MacOS X', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: Implementation :: CPython', | ||
'Topic :: Software Development' | ||
], | ||
include_package_data=True, | ||
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", | ||
"tests"]), | ||
install_requires=_get_requirements(), | ||
test_suite="tests.runtests", | ||
entry_points={ | ||
"console_scripts": ["tern = tern.__main__:main"] | ||
}, | ||
) |