Passed
Pull Request — master (#41)
by Jan
02:48
created

setup.get_long_description()   A

Complexity

Conditions 4

Size

Total Lines 7
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 4
eloc 7
nop 0
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
import sys
2
from setuptools import setup, find_packages
3
from setuptools.command.test import test as TestCommand
4
5
6
def get_long_description():
7
    try:
8
        with open('README.md', encoding='utf8') as fd:
9
            return fd.read()
10
    except TypeError:
11
        with open('README.md') as fd:
12
            return fd.read()
13
14
15
setup(name='oval_graph',
16
      version='0.0.5',
17
      description='Client for visualization of SCAP rule evaluation results',
18
      long_description=get_long_description(),
19
      long_description_content_type="text/markdown",
20
      url='https://github.com/OpenSCAP/OVAL-visualization-as-graph',
21
      author='Jan Rodak',
22
      author_email='[email protected]',
23
      license='Apache-2.0',
24
      packages=find_packages(),
25
      install_requires=[
26
          'lxml',
27
      ],
28
      extras_require={
29
          'niceCli': [
30
              'inquirer',
31
          ],
32
      },
33
      include_package_data=True,
34
      zip_safe=False,
35
      entry_points={
36
          'console_scripts': ['arf-to-graph=oval_graph.command_line:main'],
37
      },
38
      python_requires='>=3.6',
39
      )
40