Test Failed
Branch master (43347c)
by Peter
01:10
created

setup.read_file()   A

Complexity

Conditions 2

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 3
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
#!/usr/bin/env python3
2
"""
3
Packaging setup for pyclean
4
"""
5
from os.path import abspath, dirname, join
6
from setuptools import find_packages, setup
7
8
import pyclean as package
9
10
11
def read_file(filename):
12
    """Get the contents of a file"""
13
    with open(join(abspath(dirname(__file__)), filename)) as file:
14
        return file.read()
15
16
17
setup(
18
    name=package.__name__,
19
    version=package.__version__,
20
    license=package.__license__,
21
    author=package.__author__,
22
    author_email=package.__email__,
23
    description=package.__doc__.strip(),
24
    long_description=read_file('README.rst'),
25
    long_description_content_type='text/x-rst',
26
    url=package.__url__,
27
    packages=find_packages(exclude=['test*']),
28
    include_package_data=True,
29
    keywords=['python', 'bytecode', 'cli', 'tools'],
30
    classifiers=[
31
        'Intended Audience :: Developers',
32
        'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
33
        'Programming Language :: Python',
34
        'Programming Language :: Python :: 2',
35
        'Programming Language :: Python :: 2.7',
36
        'Programming Language :: Python :: 3',
37
        'Programming Language :: Python :: 3.4',
38
        'Programming Language :: Python :: 3.5',
39
        'Programming Language :: Python :: 3.6',
40
        'Programming Language :: Python :: 3.7',
41
        'Programming Language :: Python :: 3.8',
42
        'Programming Language :: Python :: Implementation :: CPython',
43
        'Programming Language :: Python :: Implementation :: PyPy',
44
        'Topic :: Utilities',
45
    ],
46
    entry_points={
47
        'console_scripts': [
48
            'pyclean = pyclean.cli:main',
49
            'py2clean = pyclean.cli:py2clean',
50
            'py3clean = pyclean.cli:py3clean',
51
            'pypyclean = pyclean.cli:pypyclean',
52
        ],
53
    },
54
)
55