forked from jupyterlab/jupyterlab-latex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (48 loc) · 1.65 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
"""
Setup module for the jupyterlab-latex
"""
import setuptools
from setupbase import (
create_cmdclass, ensure_python, find_packages, get_version
)
data_files_spec = [(
'etc/jupyter/jupyter_notebook_config.d',
'jupyter-config/jupyter_notebook_config.d',
'jupyterlab_latex.json'
),]
cmdclass = create_cmdclass(data_files_spec=data_files_spec)
setup_dict = dict(
name='jupyterlab_latex',
version=get_version("jupyterlab_latex/_version.py"),
description='A Jupyter Notebook server extension which acts as an endpoint for LaTeX.',
packages=find_packages(),
cmdclass=cmdclass,
author = 'Jupyter Development Team',
author_email = '[email protected]',
url = 'http://jupyter.org',
license = 'BSD',
platforms = "Linux, Mac OS X, Windows",
keywords = ['Jupyter', 'JupyterLab', 'LaTeX'],
python_requires = '>=3.6',
classifiers = [
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
],
install_requires=[
'notebook'
],
package_data={'jupyterlab_latex':['api/*']},
)
try:
ensure_python(setup_dict["python_requires"].split(','))
except ValueError as e:
raise ValueError("{:s}, to use {} you must use python {} ".format(
e,
setup_dict["name"],
setup_dict["python_requires"])
)
setuptools.setup(**setup_dict)