forked from KonishchevDmitry/python-config
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
51 lines (39 loc) · 1.58 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
"""python-config installation script."""
from __future__ import unicode_literals
from setuptools import setup
from setuptools.command.test import test as Test
class PyTest(Test):
def finalize_options(self):
Test.finalize_options(self)
self.test_args = [ "tests" ]
self.test_suite = True
def run_tests(self):
import pytest
pytest.main(self.test_args)
if __name__ == "__main__":
with open("README") as readme:
setup(
name = "python-config",
version = "0.1.2",
description = readme.readline().strip(),
long_description = readme.read().strip() or None,
url = "https://github.com/KonishchevDmitry/python-config",
license = "GPL3",
author = "Dmitry Konishchev",
author_email = "[email protected]",
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
],
platforms = [ "unix", "linux", "osx" ],
py_modules = [ "python_config" ],
cmdclass = { "test": PyTest },
tests_require = [ "pytest" ],
)