8000 Packaging · ipython/matplotlib-inline@1e1b14d · GitHub
[go: up one dir, main page]

Skip to content

Commit 1e1b14d

Browse files
committed
Packaging
1 parent 3c2c571 commit 1e1b14d

File tree

6 files changed

+71
-12
lines changed

6 files changed

+71
-12
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.egg-info
2+
dist

LICENSE

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2019,
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
1. Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
2. Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
3. Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

matplotlib_inline/__init__.py

Whitespace-only changes.

backend_inline.py renamed to matplotlib_inline/backend_inline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""A matplotlib backend for publishing figures via display_data"""
22

33
# Copyright (c) IPython Development Team.
4-
# Distributed under the terms of the Modified BSD License.
4+
# Distributed under the terms of the BSD 3-Clause License.
55

66
import matplotlib
77
from matplotlib.backends.backend_agg import (

config.py renamed to matplotlib_inline/config.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,9 @@
22
33
This module does not import anything from matplotlib.
44
"""
5-
#-----------------------------------------------------------------------------
6-
# Copyright (C) 2011 The IPython Development Team
7-
#
8-
# Distributed under the terms of the BSD License. The full license is in
9-
# the file COPYING, distributed as part of this software.
10-
#-----------------------------------------------------------------------------
115

12-
#-----------------------------------------------------------------------------
13-
# Imports
14-
#-----------------------------------------------------------------------------
6+
# Copyright (c) IPython Development Team.
7+
# Distributed under the terms of the BSD 3-Clause License.
158

169
from traitlets.config.configurable import SingletonConfigurable
1710
from traitlets import (
@@ -104,7 +97,6 @@ def _figure_format_changed(self, name, old, new):
10497
other matplotlib backends, but figure barriers between cells must
10598
be explicit.
10699
""").tag(config=True)
107-
100+
108101
shell = Instance('IPython.core.interactiveshell.InteractiveShellABC',
109102
allow_none=True)
110-

setup.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/usr/bin/env python
2+
3+
from setuptools import setup, find_packages
4+
5+
6+
setup(
7+
name='matplotlib-inline',
8+
version='0.1.0',
9+
description='Inline Matplotlib backend for Jupyter',
10+
author='IPython Development Team',
11+
maintainer='IPython Development Team',
12+
author_email='ipython-dev@scipy.org',
13+
url='https://github.com/martinRenou/matplotlib-inline',
14+
license='BSD 3-Clause',
15+
keywords='python ipython matplotlib jupyter',
16+
packages=find_packages(exclude=['test']),
17+
python_requires='>=3.5',
18+
install_requires=[
19+
'matplotlib',
20+
'ipython'
21+
],
22+
extras_require={
23+
'testing': ['flake8'],
24+
},
25+
platforms=['any'],
26+
classifiers=[
27+
'Intended Audience :: Developers',
28+
'Operating System :: OS Independent',
29+
'Programming Language :: Python :: 3.5',
30+
'Programming Language :: Python :: 3.6',
31+
'Programming Language :: Python :: 3.7',
32+
'Programming Language :: Python :: 3.8',
33+
'Programming Language :: Python :: 3.9',
34+
'Topic :: Software Development :: Libraries :: Python Modules',
35+
],
36+
)

0 commit comments

Comments
 (0)
0