forked from dropbox/pygerduty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·50 lines (41 loc) · 1.43 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
#!/usr/bin/env python
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ["-v", "-r a"]
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
pytest.main(self.test_args)
with open('pygerduty/version.py') as version_file:
exec(compile(version_file.read(), version_file.name, 'exec'))
kwargs = {
"name": "pygerduty",
"version": str(__version__), # noqa
"packages": ["pygerduty"],
"scripts": ["bin/grab_oncall.py"],
"description": "Python Client Library for PagerDuty's REST API",
"author": "Gary M. Josack",
"maintainer": "Gary M. Josack",
"author_email": "[email protected]",
"maintainer_email": "[email protected]",
"license": "MIT",
"url": "https://github.com/dropbox/pygerduty",
"download_url": "https://github.com/dropbox/pygerduty/archive/master.tar.gz",
"classifiers": [
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
],
"install_requires": ["six"],
"tests_require": [
"httpretty",
"pytest",
],
"cmdclass": {"test": PyTest}
}
setup(**kwargs)