Skip to content

Commit 8259ec1

Browse files
authored
⬆️ UPGRADE: drop python 3.7 (#77)
Python 3.7 is end-of-life on 2023-06-27 https://devguide.python.org/versions/
1 parent 25c173b commit 8259ec1

File tree

6 files changed

+18
-12
lines changed

6 files changed

+18
-12
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
fail-fast: false
3232
matrix:
33-
python-version: ['pypy-3.7', '3.7', '3.8', '3.9', '3.10']
33+
python-version: ['pypy-3.8', '3.8', '3.9', '3.10', '3.11']
3434

3535
steps:
3636
- uses: actions/checkout@v2
@@ -53,6 +53,14 @@ jobs:
5353
file: ./coverage.xml
5454
fail_ci_if_error: true
5555

56+
allgood:
57+
runs-on: ubuntu-latest
58+
needs:
59+
- pre-commit
60+
- tests
61+
steps:
62+
- run: echo "Great success!"
63+
5664
publish:
5765

5866
name: Publish to PyPi

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2
22

33
python:
4-
version: 3
4+
version: "3.8"
55
install:
66
- method: pip
77
path: .

docs/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
html_title = "mdit-py-plugins"
2222
html_theme = "sphinx_book_theme"
2323
html_theme_options = {
24-
"single_page": True,
2524
"use_edit_page_button": True,
2625
"repository_url": "https://github.com/executablebooks/mdit-py-plugins",
2726
"repository_branch": "master",

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ md = MarkdownIt("gfm-like")
2222
```
2323

2424
```{seealso}
25-
See [](markdown_it:using)
25+
See <inv:markdown_it#using>
2626
```
2727

2828
## mdit-py-plugins package
@@ -124,7 +124,7 @@ html_string = md.render("some *Markdown*")
124124

125125
## Write your own
126126

127-
Use the `mdit_py_plugins` as a guide to write your own, following the [markdown-it design principles](markdown_it:architecture).
127+
Use the `mdit_py_plugins` as a guide to write your own, following the [markdown-it design principles](inv:markdown_it#architecture).
128128

129129
There are many other plugins which could easily be ported from the JS versions (and hopefully will):
130130

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ classifiers = [
1414
"Intended Audience :: Developers",
1515
"License :: OSI Approved :: MIT License",
1616
"Programming Language :: Python :: 3",
17-
"Programming Language :: Python :: 3.7",
1817
"Programming Language :: Python :: 3.8",
1918
"Programming Language :: Python :: 3.9",
2019
"Programming Language :: Python :: 3.10",
20+
"Programming Language :: Python :: 3.11",
2121
"Programming Language :: Python :: Implementation :: CPython",
2222
"Programming Language :: Python :: Implementation :: PyPy",
2323
"Topic :: Software Development :: Libraries :: Python Modules",
2424
"Topic :: Text Processing :: Markup",
2525
]
2626
keywords = ["markdown", "markdown-it", "lexer", "parser", "development"]
27-
requires-python = ">=3.7"
27+
requires-python = ">=3.8"
2828
dependencies = ["markdown-it-py>=1.0.0,<3.0.0"]
2929

3030
[project.urls]
@@ -40,9 +40,8 @@ testing = [
4040
"pytest-regressions",
4141
]
4242
rtd = [
43-
"attrs",
44-
"myst-parser~=0.16.1",
45-
"sphinx-book-theme~=0.1.0",
43+
"myst-parser",
44+
"sphinx-book-theme",
4645
]
4746

4847
[tool.flit.module]

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
# then run `tox` or `tox -- {pytest args}`
55
# run in parallel using `tox -p`
66
[tox]
7-
envlist = py37
7+
envlist = py38
88

99
[testenv]
1010
usedevelop = true
1111

12-
[testenv:py{37,38,39,310}]
12+
[testenv:py{37,38,39,310,311}]
1313
extras = testing
1414
commands = pytest {posargs}
1515

0 commit comments

Comments
 (0)