-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
41 lines (30 loc) · 794 Bytes
/
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
#!/usr/bin/python
from distutils.core import Command, setup
import unittest
UNITTESTS = [
"tests",
]
class TestCommand(Command):
user_options = [ ]
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
suite = unittest.TestSuite()
suite.addTests(
unittest.defaultTestLoader.loadTestsFromNames(
UNITTESTS ) )
result = unittest.TextTestRunner(verbosity=2).run(suite)
setup(name='ec3k',
version='1.1.1',
description='Use rtl-sdr to receive EnergyCount 3000 transmissions.',
license='GPLv3',
long_description=open("README.rst").read(),
author='Tomaz Solc',
author_email='[email protected]',
py_modules = ['ec3k'],
scripts = ['ec3k_recv', 'capture.py'],
provides = [ 'ec3k' ],
cmdclass = { 'test': TestCommand }
)