| Total Complexity | 4 | 
| Total Lines | 39 | 
| Duplicated Lines | 0 % | 
| Changes | 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 |