-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·36 lines (29 loc) · 1.02 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
#!/usr/bin/env python
from setuptools import setup
import os.path
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
version = [line for line in read('trafaret_schema/__init__.py').split('\n') if '__VERSION__' in line][0]
exec(version)
setupconf = dict(
name='trafaret_schema',
version='.'.join(str(ver) for ver in __VERSION__),
license='BSD',
url='https://github.com/Deepwalker/trafaret_schema/',
author='Deepwalker',
author_email='[email protected]',
description=('Validation and parsing library'),
long_description=read('README.md'),
keywords='validation form forms data schema',
packages=['trafaret_schema'],
install_requires=['trafaret'],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
]
)
if __name__ == '__main__':
setup(**setupconf)