|
9 | 9 | from distutils.command.build import build |
10 | 10 | from setuptools.command.develop import develop |
11 | 11 | from setuptools.command.bdist_egg import bdist_egg |
12 | | -from setuptools import setup, Extension, Command |
| 12 | +from setuptools import setup, Extension |
13 | 13 |
|
14 | 14 |
|
| 15 | +#----------------------------------------------------------------------------- |
15 | 16 | here = abspath(dirname(__file__)) |
16 | 17 |
|
| 18 | +#----------------------------------------------------------------------------- |
17 | 19 | classifiers = [ |
18 | 20 | 'Development Status :: 5 - Production/Stable', |
19 | 21 | 'Programming Language :: Python :: 2.7', |
20 | 22 | 'Programming Language :: Python :: 3', |
21 | | - 'Programming Language :: Python :: 3.2', |
22 | 23 | 'Programming Language :: Python :: 3.3', |
23 | 24 | 'Programming Language :: Python :: 3.4', |
24 | 25 | 'Operating System :: POSIX :: Linux', |
|
28 | 29 | 'Programming Language :: Python :: Implementation :: CPython', |
29 | 30 | ] |
30 | 31 |
|
| 32 | +#----------------------------------------------------------------------------- |
31 | 33 | cflags = ['-std=c99', '-Wno-error=declaration-after-statement'] |
32 | 34 | input_c = Extension('evdev._input', sources=['evdev/input.c'], extra_compile_args=cflags) |
33 | 35 | uinput_c = Extension('evdev._uinput', sources=['evdev/uinput.c'], extra_compile_args=cflags) |
34 | 36 | ecodes_c = Extension('evdev._ecodes', sources=['evdev/ecodes.c'], extra_compile_args=cflags) |
35 | 37 |
|
| 38 | +#----------------------------------------------------------------------------- |
36 | 39 | kw = { |
37 | 40 | 'name': 'evdev', |
38 | 41 | 'version': '0.4.6', |
|
50 | 53 |
|
51 | 54 | 'packages': ['evdev'], |
52 | 55 | 'ext_modules': [input_c, uinput_c, ecodes_c], |
53 | | - 'tests_require': ['pytest'], |
54 | 56 |
|
55 | 57 | 'include_package_data': False, |
56 | 58 | 'zip_safe': True, |
@@ -98,24 +100,7 @@ def run(self): |
98 | 100 | create_ecodes() |
99 | 101 | bdist_egg.run(self) |
100 | 102 |
|
101 | | - |
102 | | -class PyTest(Command): |
103 | | - '''setup.py test -> py.test tests''' |
104 | | - |
105 | | - user_options = [] |
106 | | - def initialize_options(self): |
107 | | - pass |
108 | | - |
109 | | - def finalize_options(self): |
110 | | - pass |
111 | | - |
112 | | - def run(self): |
113 | | - from subprocess import call |
114 | | - errno = call(('py.test', 'tests')) |
115 | | - raise SystemExit(errno) |
116 | | - |
117 | | - |
118 | | -kw['cmdclass']['test'] = PyTest |
| 103 | +#----------------------------------------------------------------------------- |
119 | 104 | kw['cmdclass']['build'] = BuildCommand |
120 | 105 | kw['cmdclass']['develop'] = DevelopCommand |
121 | 106 | kw['cmdclass']['bdist_egg'] = BdistEggCommand |
|
0 commit comments