Skip to content

Commit 05bf868

Browse files
authored
Merge pull request #930 from ocefpaf/minor_cleanups
Minor cleanups
2 parents 05f8e81 + 9963b79 commit 05bf868

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

setup.py

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,23 @@ def walk_subpkg(name):
2525
return data_files
2626

2727

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+
]
3845

3946
LICENSE = read('LICENSE.txt')
4047
long_description = '{}\n{}'.format(read('README.rst'), read('CHANGES.txt'))
@@ -44,8 +51,7 @@ def walk_subpkg(name):
4451
tests_require = f.readlines()
4552
install_requires = [t.strip() for t in tests_require]
4653

47-
48-
config = dict(
54+
setup(
4955
name='folium',
5056
version=versioneer.get_version(),
5157
description='Make beautiful maps with Leaflet.js & Python',
@@ -63,14 +69,11 @@ def walk_subpkg(name):
6369
'Topic :: Scientific/Engineering :: Visualization',
6470
'License :: OSI Approved :: MIT License',
6571
'Development Status :: 5 - Production/Stable'],
66-
packages=pkgs,
67-
package_data=pkg_data,
72+
packages=packages,
73+
package_data=package_data,
6874
tests_require=['pytest'],
6975
license=LICENSE,
7076
install_requires=install_requires,
7177
zip_safe=False,
7278
cmdclass=versioneer.get_cmdclass(),
7379
)
74-
75-
76-
setup(**config)

0 commit comments

Comments
 (0)