-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
50 lines (39 loc) · 1.19 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
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
with open('requirements.txt') as f:
requirements = f.read().splitlines()
class Tox(TestCommand):
user_options = [('tox-args=', 'a', "Arguments to pass to tox")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.tox_args = None
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 tox
import shlex
args = self.tox_args
if args:
args = shlex.split(self.tox_args)
errno = tox.cmdline(args=args)
sys.exit(errno)
setup(
author='dron22',
author_email='[email protected]',
cmdclass={'test': Tox},
description='Simple DynDns with AWS Route53',
include_package_data=True,
install_requires=requirements,
license='MIT',
name='r53dyndns',
packages=['r53dyndns'],
scripts=['bin/r53dyndns'],
tests_require=['tox'],
url='https://github.com/dron22/r53dyndns',
version='0.1.0',
zip_safe=False
)