Skip to content

Commit ea0a5cb

Browse files
committed
Release version 0.2.1
1 parent 0237ddd commit ea0a5cb

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,21 @@ jobs:
2525
- name: Install dependencies
2626
run: |
2727
python -m pip install --upgrade pip
28-
pip install build
29-
- name: Install built wheel
30-
run: pip install dist/*
28+
pip install build matplotlib IPython
3129
- name: Build package
3230
run: python -m build
31+
- name: Install built wheel
32+
run: pip install dist/*.whl
3333
- name: Echo current tag
3434
run: echo ${{ github.ref }}
3535
- name: Get package version
3636
run: |
37-
PACKAGE_VERSION=$(python -c 'import matplotlib_inline; print(matplotlib_inline.__version__)')
37+
export PACKAGE_VERSION=$(python -c 'import matplotlib_inline; print(matplotlib_inline.__version__)')
3838
echo "Package version: $PACKAGE_VERSION"
39-
40-
- name: Check tag and package version match
41-
run: |
4239
if [ "$GITHUB_REF" != "refs/tags/$PACKAGE_VERSION" ]; then
43-
echo "Tag and package version do not match. Aborting."
40+
echo "Tag and package version do not match. Aborting. $GITHUB_REF vs refs/tags/$PACKAGE_VERSION"
4441
exit 1
4542
fi
46-
# - name: Publish package
47-
# uses: pypa/gh-action-pypi-publish@15c56dba361d8335944d31a2ecd17d700fc7bcbc
43+
- name: Publish package
44+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e
4845

matplotlib_inline/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from . import backend_inline, config # noqa
22

3-
__version__ = "0.2.0"
3+
__version__ = "0.2.1"
44

55
# we can't ''.join(...) otherwise finding the version number at build time requires
66
# import which introduces IPython and matplotlib at build time, and thus circular

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,16 @@ classifiers = [
2121
"Programming Language :: Python :: 3.11",
2222
"Programming Language :: Python :: 3.12",
2323
"Programming Language :: Python :: 3.13",
24+
"Programming Language :: Python :: 3.14",
2425
"Programming Language :: Python :: 3.9",
2526
"Programming Language :: Python :: 3",
2627
"Programming Language :: Python",
2728
"Topic :: Multimedia :: Graphics",
2829
]
30+
31+
# do not rely on matplotlib/IPython, as we want matplotlib-inline to be _installable_ without pulling the other
32+
# dependencies
33+
2934
dependencies = ["traitlets"]
3035
dynamic = ["version"]
3136
keywords = [
@@ -44,7 +49,6 @@ inline = "matplotlib_inline.backend_inline"
4449
[project.optional-dependencies]
4550
test = [
4651
"flake8",
47-
"matplotlib",
4852
"nbdime",
4953
"nbval",
5054
"notebook",

0 commit comments

Comments
 (0)