Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jupytext works with markdown-it-py==3.0 #1087

Merged
merged 11 commits into from
Jun 30, 2023
20 changes: 12 additions & 8 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,29 @@ jobs:

test-pip:
needs: pre-commit
continue-on-error: ${{ matrix.experimental || false }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ 3.7, 3.8, 3.9, "3.10", "3.11"]
markdown-it-py-version: [2.0]
markdown-it-py-version: ["~=2.0"]
kernel: [true]
experimental: [false]
include:
- python-version: 3.12
- python-version: "3.12-dev"
- python-version: "3.13-dev"
experimental: true
- python-version: 3.9
markdown-it-py-version: null
markdown-it-py-version: ""
- python-version: 3.9
markdown-it-py-version: 3.0
markdown-it-py-version: "~=3.0"
- python-version: "3.11"
markdown-it-py-version: "~=4.0"
experimental: true
- python-version: 3.9
kernel: false
- python-version: 3.9
quarto: true
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -78,7 +82,7 @@ jobs:
python -m pip install jupyter-fs || true
- name: Install markdown-it-py
if: ${{ matrix.markdown-it-py-version }}
run: python -m pip install "markdown-it-py~=${{ matrix.markdown-it-py-version }}"
run: python -m pip install markdown-it-py${{ matrix.markdown-it-py-version }}
- name: Install from source (required for the pre-commit tests)
run: python -m pip install . --no-deps
- name: Install a Jupyter Kernel
Expand Down
3 changes: 2 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
Jupytext ChangeLog
==================

1.14.7-dev (2023-06-??)
1.14.7 (2023-06-29)
-------------------

**Changed**
- We have updated the GitHub workflows - thanks to Matthew Feickert and to Cristian Le for their help on this subject ([#1037](https://github.com/mwouts/jupytext/issues/1037))
- We have removed the upper bound on `markdown-it-py<3`. Now we test Jupytext with `markdown-it-py` in versions `2.x` and `3.x` on the CI ([#1075](https://github.com/mwouts/jupytext/issues/1075))

**Fixed**
- Notebooks with an empty YAML header work ([#1070](https://github.com/mwouts/jupytext/issues/1070))
Expand Down
2 changes: 1 addition & 1 deletion jupytext/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Jupytext's version number"""

__version__ = "1.14.7-dev"
__version__ = "1.14.7"
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
nbformat
pyyaml
toml
markdown-it-py>=1.0.0,<3.0.0
markdown-it-py>=1.0.0
mdit_py_plugins
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"nbformat",
"pyyaml",
"toml",
"markdown-it-py>=1.0.0,<3.0.0",
"markdown-it-py>=1.0.0",
"mdit_py_plugins",
],
python_requires="~=3.6",
Expand Down