This repository has been archived by the owner on Oct 5, 2023. It is now read-only.
forked from jendrikseipp/vulture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (43 loc) · 1.47 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#! /usr/bin/env python
import sys
import setuptools
from setuptools.command.test import test as TestCommand
from vulture import __version__
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
sys.exit(pytest.main(self.test_args))
setuptools.setup(
name='vulture',
version=__version__,
description='Find dead code',
long_description='\n\n'.join(
[open('README.rst').read(), open('NEWS.rst').read()]),
keywords='dead-code-removal',
author='Jendrik Seipp',
author_email='[email protected]',
url='https://github.com/jendrikseipp/vulture',
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Quality Assurance'
],
entry_points={
'console_scripts': ['vulture = vulture.core:main'],
},
tests_require=['pytest', 'pytest-cov'],
cmdclass={'test': PyTest},
packages=setuptools.find_packages(exclude=['tests']),
package_data={'vulture': ['whitelists/*.py']},
)