/
setup.py
69 lines (61 loc) · 2.2 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
57
58
59
60
61
62
63
64
65
66
67
68
69
# -*- coding: utf-8 -*-
import ast
import re
from codecs import open
from os import path
from setuptools import setup, find_packages
"""
PyPI configuration module.
"""
__author__ = 'Bernardo Martínez Garrido'
__license__ = 'MIT'
__version__ = '0.0.0'
_version_re = re.compile(r'__version__\s+=\s+(.*)')
_tests_require = ['pytest', 'nose', 'Flask-Testing']
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
with open('cwr_validator/__init__.py', 'rb', encoding='utf-8') as f:
version = f.read()
version = _version_re.search(version).group(1)
version = str(ast.literal_eval(version.rstrip()))
setup(
name='CWR-Validator-WS',
packages=find_packages(),
include_package_data=True,
package_data={
},
version=version,
description='Validator web service for CWR files',
author='WESO',
author_email='weso@weso.es',
license='MIT',
url='https://github.com/weso/CWR-Validator',
download_url='https://github.com/weso/CWR-Validator',
keywords=['CWR', 'commonworks', 'api', 'CISAC', 'validator'],
platforms='any',
classifiers=['License :: OSI Approved :: MIT License',
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: PyPy'],
long_description=long_description,
install_requires=[
'Flask',
'Flask-RESTful',
'CWR-API',
'requests',
],
tests_require=_tests_require,
extras_require={'test': _tests_require},
)