forked from jupyter-book/jupyter-book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (45 loc) · 1.69 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
from setuptools import setup, find_packages
import os
import os.path as op
from glob import glob
from jupyter_book import __version__
# Location of the template files we use for cloning
template_files = glob(
op.join('jupyter_book', 'book_template', '**', '*'), recursive=True)
template_files += glob(op.join('jupyter_book', 'minimal',
'**', '*'), recursive=True)
template_files = [ii.replace('jupyter_book' + os.sep, '', 1)
for ii in template_files]
PACKAGE_DATA = {"jupyter_book": template_files}
# Source dependencies from requirements.txt file.
with open('requirements.txt', 'r') as f:
lines = f.readlines()
install_packages = [line.strip() for line in lines]
setup(
name='jupyter-book',
version=__version__,
install_requires=install_packages,
python_requires='>=3.4',
author='Project Jupyter Contributors',
author_email='[email protected]',
url='https://jupyter.org/jupyter-book/',
project_urls={
'Documentation': 'https://jupyter.org/jupyter-book',
'Funding': 'https://jupyter.org/about',
'Source': 'https://github.com/jupyter/jupyter-book/',
'Tracker': 'https://github.com/jupyter/jupyter-book/issues',
},
# this should be a whitespace separated string of keywords, not a list
keywords="reproducible science environments scholarship notebook",
description="Jupyter Books: Create an online book with Jupyter Notebooks"
" and Jekyll",
license='BSD',
packages=find_packages(),
use_package_data=True,
package_data=PACKAGE_DATA,
entry_points={
'console_scripts': [
'jupyter-book = jupyter_book.main:main',
]
},
)