This repository has been archived by the owner on Dec 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
55 lines (45 loc) · 1.4 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
#!/usr/bin/env python3
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
import pidom
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(
name='pidom',
version=pidom.__version__,
author=pidom.__author__,
author_email='oprax@me.com',
description=pidom.__doc__,
py_modules=['pidom'],
long_description=open('README.rst').read(),
license=pidom.__license__,
include_package_data=True,
tests_require=['tox'],
cmdclass={'test': Tox},
url='https://github.com/Oprax/pidom',
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Other Environment",
"Programming Language :: Python :: 3.5",
"Topic :: Home Automation",
"Operating System :: POSIX :: Linux",
"License :: OSI Approved :: MIT License"
]
)