forked from uribench/software-engineering-handbook-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
46 lines (41 loc) · 1.21 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
from subprocess import call
from setuptools import Command, setup, find_packages
from handbook_tools import __version__
class RunTests(Command):
"""Run all tests"""
description = 'run tests'
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
"""Run all tests"""
errno = call(['pytest', '-v', '--cov-report=term-missing', '--cov=handbook_tools'])
raise SystemExit(errno)
setup(
name='handbook-tools',
version=__version__,
description='Tools for maintaining the Software Engineering Handbook',
url='https://github.com/uribench/software-engineering-handbook-tools',
author_email='[email protected]',
license = 'UNLICENSE',
packages = find_packages(exclude=['tests', 'docs']),
install_requires=[
'docopt==0.6.2',
'PyYAML==3.11',
'Jinja2==2.8',
'requests>=2.20.0',
'urllib3==1.24',
],
zip_safe=False,
extras_require = {
'test': ['coverage', 'pytest', 'pytest-cov'],
},
entry_points = {
'console_scripts': [
'handbook=handbook_tools.handbook:main',
],
},
cmdclass = {'test': RunTests},
)