forked from kobotoolbox/formpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
66 lines (55 loc) · 2.06 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
#!/usr/bin/env python
# coding: utf-8
from __future__ import (unicode_literals, print_function,
absolute_import, division)
from setuptools import setup, find_packages
import sys
if sys.version_info[0] == 2:
requirements = [
'begins',
'cyordereddict',
'jsonschema',
'lxml',
'path.py<12', # Pinned for Python 2 compatibility
'pyquery',
'pyxform',
'statistics',
'XlsxWriter',
'backports.csv', # Remove after dropping Python 2 support (and rewrite `imports`)
'geojson-rewind==0.1.1+py2.jnm', # Stop using fork after dropping Python 2 support
]
dep_links = [
# "Be careful with the version" part of `#egg=project-version`, according to
# https://setuptools.readthedocs.io/en/latest/setuptools.html#dependencies-that-aren-t-in-pypi.
# "It should match the one inside the project files," i.e. the `version`
# argument to `setup()` in `setup.py`. It should also adhere to PEP 440.
'https://github.com/jnm/geojson-rewind/tarball/master#egg=geojson-rewind-0.1.1+py2.jnm'
]
else:
requirements = [
'begins',
'jsonschema',
'lxml',
'path.py',
'pyquery',
'pyxform',
'statistics',
'XlsxWriter',
'backports.csv', # Remove after dropping Python 2 support (and rewrite `imports`)
'geojson-rewind',
]
dep_links = [
]
setup(name='formpack',
version='2.0.1',
description='Manipulation tools for KoBo forms',
author='the formpack contributors (https://github.com/kobotoolbox/formpack/graphs/contributors)',
url='https://github.com/kobotoolbox/formpack/',
packages=[str(pkg) for pkg in find_packages('src')],
package_dir={'': str('src')}, # coercing to `str` only necessary for Python 2, see
# https://github.com/sdss/python_template/issues/9
install_requires=requirements,
dependency_links=dep_links,
include_package_data=True,
zip_safe=False,
)