-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
73 lines (67 loc) · 2.17 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
70
71
72
73
from os.path import join, dirname
from setuptools import setup, find_packages
LONG_DESCRIPTION = (
"Reference implementation of the ERAV data model for citizen science."
" ERAV is an extension to EAV with support for maintaining multi-faceted"
" provenance metadata for an entity."
)
def parse_markdown_readme():
"""
Convert README.md to RST via pandoc, and load into memory
(fallback to LONG_DESCRIPTION on failure)
"""
# Attempt to run pandoc on markdown file
import subprocess
try:
subprocess.call(
['pandoc', '-t', 'rst', '-o', 'README.rst', '--wrap=none', 'README.md']
)
except OSError:
return LONG_DESCRIPTION
# Attempt to load output
try:
readme = open(join(dirname(__file__), 'README.rst'))
except IOError:
return LONG_DESCRIPTION
return readme.read()
setup(
name='vera',
version='1.0.1-dev',
author='S. Andrew Sheppard',
author_email='andrew@wq.io',
url='https://wq.io/vera',
license='MIT',
description=LONG_DESCRIPTION,
long_description=parse_markdown_readme(),
packages=find_packages(exclude=['tests']),
install_requires=[
'natural-keys>=1.2.1',
'data-wizard>=1.0.1',
'rest-pandas>=1.0.0',
'wq.db>=1.0.0',
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: JavaScript',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Framework :: Django :: 1.10',
'Framework :: Django :: 1.11',
'Topic :: Scientific/Engineering :: GIS',
'Topic :: Database :: Database Engines/Servers',
],
test_suite='tests',
tests_require=[
'psycopg2',
],
)