-
Notifications
You must be signed in to change notification settings - Fork 391
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
👌 Fix myst-parser install issues #599
Conversation
This commit removes myst-parser as an optional dependency, and instead directly uses markdown-it-py for parsing, adding it as a dependency. Note: this addition drops python support <= 3.5, but this is in-line with the Python End-of-life guiidance: https://devguide.python.org/#status-of-python-branches
I've also made pip CI run on PRs. Surely this is a good idea? |
Codecov Report
@@ Coverage Diff @@
## master #599 +/- ##
==========================================
- Coverage 99.00% 98.77% -0.23%
==========================================
Files 90 90
Lines 8951 8927 -24
==========================================
- Hits 8862 8818 -44
- Misses 89 109 +20
Continue to review full report at Codecov.
|
you could also consider adding a pre-commit check to the CI: jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- uses: pre-commit/[email protected] (and a pypa/[email protected] job) |
Hello @chrisjsewell , thank you very much for this! I am a little bit worried of dropping support for older versions of Python, as I see that about 15% of jupytext downloads are still for Python 2.7, and 7% for Python 3.5 (and, the absence of support for older versions of Python was one issue that drove me away from Do you think we could
Yes, that's a great idea!
Well, currently, pushing to a branch of |
Eurggh, well obviously its entirely up to you 😄 But yeh let me know, and otherwise I guess we'll have to go through the hassle of adding back all these missing install checks and pytest markers? (Note also, if this is the case, we would be able to consider using markdown-it-py, to fix the current issue with variable length
The person making the PR cannot see that though 😬, its quite unusual |
and f-strings, how can you not want to use f-strings 😆 |
Thanks Chris for your understanding
I'll do that, no worries! Maybe I'll push that to another branch first, anyway I'll keep you posted.
Understood!
Oh that's right, I love f-strings, and I do use them all the time in my day work... just not here! |
Cheers 👍 |
@chrisjsewell , I have prepared #601. Is it fine with you? |
Integrated at #601 |
This commit removes myst-parser as an optional dependency, and instead directly uses markdown-it-py for parsing, adding it as a dependency.
Note: this addition drops python support <= 3.5, but this is in-line with the Python End-of-life guiidance: https://devguide.python.org/#status-of-python-branches
closes #591