forked from wickman/pystachio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·49 lines (41 loc) · 1.21 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
#!/usr/bin/env python
from setuptools import Command, find_packages, setup
version = '0.8.2'
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import sys, subprocess
try:
from py import test as pytest
except ImportError:
raise Exception('Running tests requires pytest.')
errno = subprocess.call([sys.executable, '-m', 'py.test'])
raise SystemExit(errno)
setup(
name = 'pystachio',
version = version,
description = 'type-checked dictionary templating library',
url = 'http://github.com/wickman/pystachio',
author = 'Brian Wickman',
author_email = '[email protected]',
license = 'MIT',
packages = find_packages(),
py_modules = ['pystachio'],
zip_safe = True,
cmdclass = {
'test': PyTest
},
scripts = [
'bin/pystachio_repl'
],
classifiers = [
'Programming Language :: Python',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
],
)