格式化 setup.py (#474)

This commit is contained in:
陈键冬 2018-04-02 18:36:26 +08:00 committed by jaska
parent 26840eb9d3
commit d1965ac7c3

View File

@ -3,55 +3,51 @@ import os
from setuptools import setup, find_packages
__title__ = 'pyecharts'
__description__ = 'Python echarts, make charting easier'
__url__ = 'https://github.com/chenjiandongx/pyecharts'
__author_email__ = 'chenjiandongx@qq.com'
__license__ = 'MIT'
__title__ = "pyecharts"
__description__ = "Python echarts, make charting easier"
__url__ = "https://github.com/chenjiandongx/pyecharts"
__author_email__ = "chenjiandongx@qq.com"
__license__ = "MIT"
__requires__ = ['pillow',
'jinja2',
'future',
'jupyter-echarts-pypkg==0.1.0',
'lml==0.0.2']
__requires__ = [
"pillow", "jinja2", "future", "jupyter-echarts-pypkg==0.1.0", "lml==0.0.2"
]
__keywords__ = ['Echarts',
'charts',
'plotting-tool']
__keywords__ = ["Echarts", "charts", "plotting-tool"]
# 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:
with open(os.path.join(here, __title__, "_version.py")) as f:
exec(f.read(), about)
setup(
name=__title__,
version=about['__version__'],
version=about["__version__"],
description=__description__,
url=__url__,
author=about['__author__'],
author=about["__author__"],
author_email=__author_email__,
license=__license__,
packages=find_packages(exclude=('test',)),
packages=find_packages(exclude=("test",)),
keywords=__keywords__,
install_requires=__requires__,
zip_safe=False,
include_package_data=True,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: Implementation',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries'
]
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: Implementation",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Software Development :: Libraries",
],
)