-
Notifications
You must be signed in to change notification settings - Fork 113
/
setup.py
66 lines (56 loc) · 1.76 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
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""pydeps - Python module dependency visualization
"""
# pragma: nocover
import io
import sys
import setuptools
from setuptools.command.test import test as TestCommand
version='2.0.1'
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
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
errno = pytest.main(self.pytest_args)
sys.exit(errno)
setuptools.setup(
name='pydeps',
version=version,
packages=setuptools.find_packages(exclude=['tests*']),
python_requires=">=3.8",
install_requires=[
'stdlib_list',
],
long_description=io.open('README.rst', encoding='utf8').read(),
entry_points={
'console_scripts': [
'pydeps = pydeps.pydeps:pydeps',
]
},
url='https://github.com/thebjorn/pydeps',
cmdclass={'test': PyTest},
license='BSD',
author='bjorn',
author_email='[email protected]',
description='Display module dependencies',
keywords='Python Module Dependency graphs',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)