forked from schematics/schematics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·56 lines (48 loc) · 1.63 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
52
53
54
55
56
#!/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.txt')).read().split()
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/schematics/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',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
cmdclass={
'test': Tox,
},
install_requires=[
'six>=1.7.3',
],
tests_require=tests_require,
)