-
Notifications
You must be signed in to change notification settings - Fork 63
/
setup.py
103 lines (83 loc) · 2.36 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
def walk_subpkg(name):
data_files = []
package_dir = 'cartoframes'
for parent, _, files in os.walk(os.path.join(package_dir, name)):
# Remove package_dir from the path.
sub_dir = os.sep.join(parent.split(os.sep)[1:])
for _file in files:
data_files.append(os.path.join(sub_dir, _file))
return data_files
def get_version():
_version = {}
with open('cartoframes/_version.py') as fp:
exec(fp.read(), _version)
return _version['__version__']
REQUIRES = [
'appdirs>=1.4.3,<2.0',
'carto>=1.11.3,<2.0',
'markupsafe<=2.0.1',
'jinja2>=2.10.1,<3.0',
'pandas>=0.25.0',
'geopandas>=0.6.0,<1.0',
'unidecode>=1.1.0,<2.0',
'semantic_version>=2.8.0,<3'
]
EXTRAS_REQUIRES_TESTS = [
'pytest',
'pytest-mock',
'pylint',
'flake8'
]
PACKAGE_DATA = {
'': [
'LICENSE',
'CONTRIBUTORS',
],
'cartoframes': [
'assets/*',
'assets/*.j2'
] + walk_subpkg('assets'),
}
DISTNAME = 'cartoframes'
DESCRIPTION = 'CARTO Python package for data scientists'
LICENSE = 'BSD'
URL = 'https://github.com/CartoDB/cartoframes'
AUTHOR = 'CARTO'
EMAIL = 'contact@carto.com'
setup(
name=DISTNAME,
version=get_version(),
description=DESCRIPTION,
long_description=open('README.rst').read(),
long_description_content_type='text/x-rst',
license=LICENSE,
url=URL,
author=AUTHOR,
author_email=EMAIL,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8'
],
keywords=['carto', 'data', 'science', 'maps', 'spatial', 'pandas'],
packages=find_packages(),
package_data=PACKAGE_DATA,
package_dir={'cartoframes': 'cartoframes'},
include_package_data=True,
install_requires=REQUIRES,
extras_require={
'tests': EXTRAS_REQUIRES_TESTS
},
python_requires='>=3.5'
)