forked from schematics/schematics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·48 lines (41 loc) · 1.45 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
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',
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 :: 2.6',
'Programming Language :: Python :: 2.7',
],
cmdclass={
'test': Tox,
},
tests_require=tests_require,
)