forked from schematics/schematics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·50 lines (41 loc) · 1.43 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
#!/usr/bin/env python
import os
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
from schematics import __version__
class Tox(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['--recreate']
self.test_suite = True
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import tox
errno = tox.cmdline(self.test_args)
sys.exit(errno)
tests_require = open(os.path.join(
os.path.dirname(__file__), 'requirements-testing.txt')).read().split() + ['tox']
setup(
name='schematics',
license='BSD',
version=__version__,
description='Structured Data for Humans',
author=u'James Dennis, Jökull Sólberg, Jóhann Þorvaldur Bergþórsson',
author_email='jdennis@gmail.com, jokull@plainvanillagames.com, johann@plainvanillagames.com',
url='http://github.com/j2labs/schematics',
packages=['schematics', 'schematics.types', 'schematics.contrib'],
classifiers=[
'Environment :: Other Environment',
'Intended Audience :: Developers',
'License :: Other/Proprietary License',
'Operating System :: POSIX',
'Programming Language :: Python',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
cmdclass={
'test': Tox,
},
tests_require=tests_require,
)