Skip to content

Commit

Permalink
Clean up PEP8 style inconsistencies in setup.py
Browse files Browse the repository at this point in the history
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
rnjudge committed Jun 20, 2019
1 parent e17360a commit 9a7f164
Showing 1 changed file with 33 additions and 29 deletions.
62 changes: 33 additions & 29 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
},
)

0 comments on commit 9a7f164

Please sign in to comment.