-
Notifications
You must be signed in to change notification settings - Fork 23
/
setup.py
101 lines (87 loc) · 2.75 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""""setup.py
Note: Do a Python check
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from __future__ import print_function
import os
import sys
from io import open
from os import path
from setuptools import setup
v = sys.version_info
if v[:2] < (3, 6):
print('ERROR: Bookstore requires Python 3.6 or higher', file=sys.stderr)
sys.exit(1)
# We have the correct Python version, proceed.
pjoin = os.path.join
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(pjoin(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
# Get the bookstore version
ns = {}
with open(pjoin(here, 'bookstore', '_version.py')) as f:
exec(f.read(), {}, ns)
target_dir = pjoin("etc", "jupyter", "jupyter_notebook_config.d")
config_files = [pjoin("jupyter_config", "jupyter_notebook_config.d", "bookstore.json")]
data_files = [(target_dir, config_files)]
setup(
name='bookstore',
version=ns['__version__'],
description='Storage Workflows for Notebooks',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/nteract/bookstore',
author='nteract contributors',
author_email='nteract@googlegroups.com',
license='BSD',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
],
# Note that this is a string of words separated by whitespace, not a list.
keywords='jupyter storage nteract notebook',
packages=['bookstore'],
include_package_data=True,
install_requires=[
'future',
'futures ; python_version < "3.0"',
'ipython >= 5.0',
'notebook',
'tornado >= 5.1.1',
'aiobotocore',
'aioboto3',
],
extras_require={
'docs': ['sphinx', 'm2r', 'sphinxcontrib-napoleon', 'sphinxcontrib-openapi'],
'test': [
'codecov',
'coverage',
'mock',
'mypy==0.660',
'pytest>=3.3',
'pytest-asyncio',
'pytest-cov',
'pytest-mock',
'black',
'tox',
],
},
data_files=data_files,
entry_points={},
project_urls={
'Documentation': 'https://bookstore.readthedocs.io',
'Funding': 'https://nteract.io',
'Source': 'https://github.com/nteract/bookstore/',
'Tracker': 'https://github.com/nteract/bookstore/issues',
},
)