forked from KonishchevDmitry/object-validator
-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
51 lines (39 loc) · 1.53 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
"""object-validator 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="object-validator",
version="0.2.0",
description=readme.readline().strip(),
long_description=readme.read().strip() or None,
url="https://github.com/KonishchevDmitry/object-validator",
license="MIT",
author="Dmitry Konishchev",
author_email="[email protected]",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"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=["object_validator"],
cmdclass={"test": PyTest},
tests_require=["pytest"],
)