-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·70 lines (64 loc) · 1.71 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·70 lines (64 loc) · 1.71 KB
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
# -*- coding: utf-8 -*-
import os
import io
from setuptools import setup, find_packages
# Helpers
def read(*paths):
"""Read a text file."""
basedir = os.path.dirname(__file__)
fullpath = os.path.join(basedir, *paths)
contents = io.open(fullpath, encoding='utf-8').read().strip()
return contents
# Prepare
PACKAGE = 'datapackage_pipelines_od4tj'
NAME = PACKAGE.replace('_', '-')
INSTALL_REQUIRES = [
'datapackage-pipelines',
'psycopg2',
'tabula-py',
'boto',
'datapackage-pipelines-aws',
'fuzzywuzzy',
'pycountry',
]
TESTS_REQUIRES = [
'tox',
]
README = read('README.md')
VERSION = read(PACKAGE, 'VERSION')
PACKAGES = find_packages(exclude=['examples', 'tests'])
# Run
setup(
name=NAME,
version=VERSION,
packages=PACKAGES,
include_package_data=True,
install_requires=INSTALL_REQUIRES,
tests_require=TESTS_REQUIRES,
extras_require={'develop': TESTS_REQUIRES},
zip_safe=False,
long_description=README,
description='{{ DESCRIPTION }}',
author='DataHQ',
url='https://github.com/okfn/datapackage_pipelines_od4tj',
license='MIT',
keywords=[
'data',
'analytics'
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.6',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
],
entry_points={
'console_scripts': [
'od4tj-dpp = datapackage_pipelines_od4tj.cli:main'
]
}
)