|
1 |
| -# -*- coding: utf-8 -*- |
2 |
| -import os |
3 |
| - |
4 |
| -try: |
5 |
| - from setuptools import setup |
6 |
| -except ImportError: |
7 |
| - from distutils.core import setup |
8 |
| - |
9 |
| -def walk_subpkg(name): |
10 |
| - data_files = [] |
11 |
| - package_dir = 'folium' |
12 |
| - for parent, dirs, files in os.walk(os.path.join(package_dir, name)): |
13 |
| - sub_dir = os.sep.join(parent.split(os.sep)[1:]) # remove package_dir from the path |
14 |
| - for f in files: |
15 |
| - data_files.append(os.path.join(sub_dir, f)) |
16 |
| - return data_files |
17 |
| - |
18 |
| -pkg_data = { |
19 |
| -'': ['*.js', |
20 |
| - 'templates/*.html', |
21 |
| - 'templates/*.js', |
22 |
| - 'templates/*.txt'] + walk_subpkg('templates/tiles') |
23 |
| -} |
24 |
| - |
25 |
| -setup( |
26 |
| - name='folium', |
27 |
| - version='0.1.2', |
28 |
| - description='Make beautiful maps with Leaflet.js & Python', |
29 |
| - author='Rob Story', |
30 |
| - |
31 |
| - license='MIT License', |
32 |
| - url='https://github.com/wrobstory/folium', |
33 |
| - keywords='data visualization', |
34 |
| - classifiers=['Development Status :: 4 - Beta', |
35 |
| - 'Programming Language :: Python :: 2.7', |
36 |
| - 'License :: OSI Approved :: MIT License'], |
37 |
| - packages=['folium'], |
38 |
| - package_data=pkg_data |
39 |
| -) |
| 1 | +# -*- coding: utf-8 -*- |
| 2 | +import os |
| 3 | + |
| 4 | +try: |
| 5 | + from setuptools import setup |
| 6 | +except ImportError: |
| 7 | + from distutils.core import setup |
| 8 | + |
| 9 | +def walk_subpkg(name): |
| 10 | + data_files = [] |
| 11 | + package_dir = 'folium' |
| 12 | + for parent, dirs, files in os.walk(os.path.join(package_dir, name)): |
| 13 | + sub_dir = os.sep.join(parent.split(os.sep)[1:]) # remove package_dir from the path |
| 14 | + for f in files: |
| 15 | + data_files.append(os.path.join(sub_dir, f)) |
| 16 | + return data_files |
| 17 | + |
| 18 | +pkg_data = { |
| 19 | +'': ['*.js', |
| 20 | + 'plugins/*.js', |
| 21 | + 'templates/*.html', |
| 22 | + 'templates/*.js', |
| 23 | + 'templates/*.txt'] + walk_subpkg('templates/tiles') |
| 24 | +} |
| 25 | + |
| 26 | +setup( |
| 27 | + name='folium', |
| 28 | + version='0.1.2', |
| 29 | + description='Make beautiful maps with Leaflet.js & Python', |
| 30 | + author='Rob Story', |
| 31 | + |
| 32 | + license='MIT License', |
| 33 | + url='https://github.com/wrobstory/folium', |
| 34 | + keywords='data visualization', |
| 35 | + classifiers=['Development Status :: 4 - Beta', |
| 36 | + 'Programming Language :: Python :: 2.7', |
| 37 | + 'License :: OSI Approved :: MIT License'], |
| 38 | + packages=['folium'], |
| 39 | + package_data=pkg_data |
| 40 | +) |
0 commit comments