Skip to content

Commit 41fad6e

Browse files
committed
Modern packaging
1 parent ba6471b commit 41fad6e

File tree

3 files changed

+35
-36
lines changed

3 files changed

+35
-36
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,8 @@ jobs:
4040
- name: Install package
4141
run: pip install .
4242

43+
- name: Test installation
44+
run: python -c 'from matplotlib_inline.backend_inline import show'
45+
4346
- name: Test flake8
4447
run: flake8 matplotlib_inline --ignore=E501,W504,W503

setup.cfg

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[metadata]
2+
name = matplotlib-inline
3+
version = 0.1.0
4+
description = Inline Matplotlib backend for Jupyter
5+
author = IPython Development Team
6+
author_email = [email protected]
7+
url = https://github.com/martinRenou/matplotlib-inline
8+
license = BSD 3-Clause
9+
license_file = LICENSE
10+
keywords = python, ipython, matplotlib, jupyter
11+
12+
[options]
13+
packages = find:
14+
python_requires = >=3.5
15+
install_requires =
16+
traitlets
17+
ipython
18+
classifiers =
19+
Framework :: Jupyter
20+
Intended Audience :: Developers
21+
Intended Audience :: Science/Research
22+
License :: OSI Approved :: BSD License
23+
Programming Language :: Python
24+
Programming Language :: Python :: 3
25+
Programming Language :: Python :: 3 :: Only
26+
Programming Language :: Python :: 3.5
27+
Programming Language :: Python :: 3.6
28+
Programming Language :: Python :: 3.7
29+
Programming Language :: Python :: 3.8
30+
Programming Language :: Python :: 3.9

setup.py

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,3 @@
1-
#!/usr/bin/env python
1+
from setuptools import setup
22

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='[email protected]',
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-
'traitlets',
21-
'ipython'
22-
],
23-
extras_require={
24-
'testing': ['flake8'],
25-
},
26-
platforms=['any'],
27-
classifiers=[
28-
'Intended Audience :: Developers',
29-
'Operating System :: OS Independent',
30-
'Programming Language :: Python :: 3.5',
31-
'Programming Language :: Python :: 3.6',
32-
'Programming Language :: Python :: 3.7',
33-
'Programming Language :: Python :: 3.8',
34-
'Programming Language :: Python :: 3.9',
35-
'Topic :: Software Development :: Libraries :: Python Modules',
36-
],
37-
)
3+
setup()

0 commit comments

Comments
 (0)