2 Star 1 Fork 0

冯守博/jupyter-themes

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 2.39 KB
一键复制 编辑 原始数据 按行查看 历史
import os
from glob import glob
from setuptools import setup
from itertools import chain
major = 0
minor = 16
patch = 4
version = '.'.join([str(v) for v in [major, minor, patch]])
url = 'https://github.com/dunovank/jupyter-themes'
download_url = '/'.join([url, 'tarball', 'v' + version])
# get readme content after screenshots for pypi site
README = os.path.join(os.path.dirname(__file__), 'README.md')
with open(README) as read_me:
longdescr = ''
startReading = False
for line in read_me:
if "Travis" in line.strip():
startReading = True
if "Monospace Fonts" in line.strip():
break
if startReading:
longdescr += line
pkgname = 'jupyterthemes'
datafiles = {pkgname: ['sandbox/*.js', 'layout/*.less', 'layout/*.css',
'styles/*.less', 'styles/compiled/*.css']}
# recursively point to all included font directories
fontfams = ['monospace', 'sans-serif', 'serif']
fsubdirs = [os.path.join(pkgname, 'fonts', subdir) for subdir in fontfams]
fontsdata = chain.from_iterable([['/'.join(f.split('/')[1:])
for f in glob(os.path.join(fsub, '*', '*'))]
for fsub in fsubdirs])
datafiles[pkgname].extend(fontsdata)
setup(
name='jupyterthemes',
version=version,
packages=['jupyterthemes'],
include_package_data=True,
package_data=datafiles,
description='Select and install a Jupyter notebook theme',
long_description=longdescr,
license='MIT',
url=url,
download_url=download_url,
author='dunovank',
author_email='dunovank@gmail.com',
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
install_requires=['ipython<6.0', 'jupyter', 'jupyter_core', 'lesscpy>=0.12.0', 'seaborn'],
keywords=['jupyter', 'ipython', 'notebook', 'themes', 'css'],
entry_points={
'console_scripts': [
'jupyter-theme = jupyterthemes:main',
'jt = jupyterthemes:main',
],
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
CSS
1
https://gitee.com/shbfeng/jupyter-themes.git
git@gitee.com:shbfeng/jupyter-themes.git
shbfeng
jupyter-themes
jupyter-themes
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385