a better setup.py
#coding=utf-8
import os
-from setuptools import setup
+from setuptools import setup, find_packages
try:
from jupyterpip import cmdclass
@@ -19,12 +19,16 @@ __description__ = 'Python echarts, make charting easier'
__url__ = 'https://github.com/chenjiandongx/pyecharts'
__author_email__ = 'chenjiandongx@qq.com'
__license__ = 'MIT'
-__requires__ = ['pillow', 'jinja2', 'future', 'jupyter-pip>=0.3.1']
-__packages__ = ['pyecharts', 'pyecharts/charts', 'pyecharts/custom']
-__keywords__ = ['echarts', 'charts']
+
+__requires__ = [
+ 'pillow', 'jinja2', 'future', 'jupyter-pip>=0.3.1'
+]
+__keywords__ = [
+ 'Echarts', 'charts', 'plotting-tool'
+]
__jupyter_echarts__ = 'pyecharts/templates/js/echarts'
-# Load the package's __version__.py module as a dictionary.
+# Load the package's _version.py module as a dictionary.
here = os.path.abspath(os.path.dirname(__file__))
about = {}
with open(os.path.join(here, __title__, '_version.py')) as f:
@@ -38,7 +42,7 @@ setup(
author=about['__author__'],
author_email=__author_email__,
license=__license__,
- packages=__packages__,
+ packages=find_packages(exclude=('test',)),
keywords=__keywords__,
install_requires=__requires__,
zip_safe=False,
