forked from python-visualization/folium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
39 lines (35 loc) · 1.12 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
# -*- coding: utf-8 -*-
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def walk_subpkg(name):
data_files = []
package_dir = 'folium'
for parent, dirs, files in os.walk(os.path.join(package_dir, name)):
sub_dir = os.sep.join(parent.split(os.sep)[1:]) # remove package_dir from the path
for f in files:
data_files.append(os.path.join(sub_dir, f))
return data_files
pkg_data = {
'': ['*.js',
'templates/*.html',
'templates/*.js',
'templates/*.txt'] + walk_subpkg('templates/tiles')
}
setup(
name='folium',
version='0.1.2',
description='Make beautiful maps with Leaflet.js & Python',
author='Rob Story',
author_email='wrobstory@gmail.com',
license='MIT License',
url='https://github.com/wrobstory/folium',
keywords='data visualization',
classifiers=['Development Status :: 4 - Beta',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: MIT License'],
packages=['folium'],
package_data=pkg_data
)