forked from mwouts/jupytext
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
55 lines (52 loc) · 2.83 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
from os import path
from io import open
import re
from setuptools import setup, find_packages
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
with open(path.join(this_directory, 'jupytext/version.py')) as f:
version_file = f.read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
version = version_match.group(1)
setup(
name='jupytext',
version=version,
author='Marc Wouts',
author_email='[email protected]',
description='Jupyter notebooks as Markdown documents, '
'Julia, Python or R scripts',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/mwouts/jupytext',
packages=find_packages(exclude=['tests']),
package_data={'jupytext': ['nbextension/*.*']},
data_files=[('etc/jupyter/nbconfig/notebook.d', ['jupyter-config/nbconfig/notebook.d/jupytext.json']),
('etc/jupyter/jupyter_notebook_config.d', ['jupyter-config/jupyter_notebook_config.d/jupytext.json']),
('etc/jupyter/jupyter_server_config.d', ['jupyter-config/jupyter_server_config.d/jupytext.json']),
('share/jupyter/nbextensions/jupytext', ['jupytext/nbextension/index.js',
'jupytext/nbextension/README.md',
'jupytext/nbextension/jupytext_menu.png',
'jupytext/nbextension/jupytext_menu_zoom.png',
'jupytext/nbextension/jupytext.yml']),
('share/jupyter/lab/extensions', ['packages/labextension/jupyterlab-jupytext-1.1.0.tgz'])],
entry_points={'console_scripts': ['jupytext = jupytext.cli:jupytext']},
tests_require=['pytest'],
install_requires=['nbformat>=4.0.0', 'pyyaml', 'mock;python_version<"3"'],
license='MIT',
classifiers=['Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Framework :: Jupyter',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Topic :: Text Processing :: Markup',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8']
)