加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
import json
import os
from setuptools import setup
from io import open
filepath = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.md')
with open(filepath, encoding='utf-8') as f:
long_description = f.read()
with open(os.path.join('dash_bio', 'package-info.json'), encoding='utf-8') as f:
package = json.load(f)
package_name = package["name"].replace(" ", "_").replace("-", "_")
setup(
name=package_name,
version=package["version"],
url='http://github.com/plotly/{}'.format(package_name.replace('_', '-')),
author=package['author'],
author_email='dashbio@plotly.com',
packages=[package_name, '{}/component_factory'.format(package_name)],
include_package_data=True,
description=package['description'] if 'description' in package else package_name,
long_description=long_description,
long_description_content_type='text/markdown',
install_requires=[
'dash>=1.6.1',
'pandas',
'scipy',
'scikit-learn>=0.20.1'
],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化