-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
71 lines (51 loc) · 1.7 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/env python
"""python distribution setting"""
# from distutils.core import setup
from setuptools import Command
from setuptools import find_packages
from setuptools import setup
from os.path import abspath, dirname, join
from subprocess import call
# automatically set the distribution version
# to be the same as the main package version (eclipdemux_package)
# as defined in eclipdemux_package.__ibit.py__
from eclipdemux_package import __version__
# automatically use README.rst file for the distribution documentation
this_dir = abspath(dirname(__file__))
with open(join(this_dir, 'README.md')
#, encoding='utf-8'
) as file:
long_description = file.read()
# testing support via py.test library
# with coverage reporting
# run the $ python setup.py test
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(['py.test', '--cov=eclipdemux_package', '--cov-report=term-missing'])
raise SystemExit(errno)
setup(
name='eclipdemux_distribution',
version='0.0.1',
# packages=['eclipdemux_pkg'],
packages = find_packages(exclude=['docs', 'extras', 'tests*', '*/test*']),
# pip install -e .[test]
extras_require = {
'test': ['pylint', 'pytest', 'pytest-cov', 'coverage']
},
# run from command line, by typing: $ demux
entry_points = {
'console_scripts': [
'demux=eclipdemux_package.demux:main',
],
},
# TUTORIAL PURPOSES
# py_modules=['other_module_1', 'eclipdemux_package.other_module_2']
)