@@ -25,16 +25,23 @@ def walk_subpkg(name):
25
25
return data_files
26
26
27
27
28
- pkg_data = {'' : ['*.js' ,
29
- 'plugins/*.js' ,
30
- 'plugins/*.html' ,
31
- 'plugins/*.css' ,
32
- 'plugins/*.tpl' ,
33
- 'templates/*.html' ,
34
- 'templates/*.js' ,
35
- 'templates/*.txt' ] + walk_subpkg ('templates/tiles' )}
36
- pkgs = ['folium' ,
37
- 'folium.plugins' ]
28
+ package_data = {
29
+ '' : [
30
+ '*.js' ,
31
+ 'plugins/*.js' ,
32
+ 'plugins/*.html' ,
33
+ 'plugins/*.css' ,
34
+ 'plugins/*.tpl' ,
35
+ 'templates/*.html' ,
36
+ 'templates/*.js' ,
37
+ 'templates/*.txt'
38
+ ] + walk_subpkg ('templates/tiles' )
39
+ }
40
+
41
+ packages = [
42
+ 'folium' ,
43
+ 'folium.plugins'
44
+ ]
38
45
39
46
LICENSE = read ('LICENSE.txt' )
40
47
long_description = '{}\n {}' .format (read ('README.rst' ), read ('CHANGES.txt' ))
@@ -44,8 +51,7 @@ def walk_subpkg(name):
44
51
tests_require = f .readlines ()
45
52
install_requires = [t .strip () for t in tests_require ]
46
53
47
-
48
- config = dict (
54
+ setup (
49
55
name = 'folium' ,
50
56
version = versioneer .get_version (),
51
57
description = 'Make beautiful maps with Leaflet.js & Python' ,
@@ -63,14 +69,11 @@ def walk_subpkg(name):
63
69
'Topic :: Scientific/Engineering :: Visualization' ,
64
70
'License :: OSI Approved :: MIT License' ,
65
71
'Development Status :: 5 - Production/Stable' ],
66
- packages = pkgs ,
67
- package_data = pkg_data ,
72
+ packages = packages ,
73
+ package_data = package_data ,
68
74
tests_require = ['pytest' ],
69
75
license = LICENSE ,
70
76
install_requires = install_requires ,
71
77
zip_safe = False ,
72
78
cmdclass = versioneer .get_cmdclass (),
73
79
)
74
-
75
-
76
- setup (** config )
0 commit comments