Skip to content

Commit fefd285

Browse files
authored
Support newer docutils versions (#315)
1 parent 175c65a commit fefd285

File tree

7 files changed

+29
-10
lines changed

7 files changed

+29
-10
lines changed

Diff for: .github/workflows/ci.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ jobs:
66
runs-on: ubuntu-latest
77
strategy:
88
matrix:
9-
python-version: ["pypy-3.8", "3.8", "3.9", "3.10", "3.11", "3.12"]
9+
python-version:
10+
- "pypy-3.9"
11+
- "pypy-3.10"
12+
- "3.9"
13+
- "3.10"
14+
- "3.11"
15+
- "3.12"
1016
steps:
1117
- name: Check out repository
1218
uses: actions/checkout@v3

Diff for: pyproject.toml

+6-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ authors = [
77
]
88
readme = "README.rst"
99
license = {text = "Apache License, Version 2.0"}
10-
dependencies = ["nh3>=0.2.14", "docutils>=0.13.1", "Pygments>=2.5.1"]
10+
dependencies = [
11+
"nh3>=0.2.14",
12+
"docutils>=0.21.2",
13+
"Pygments>=2.5.1",
14+
]
1115
classifiers = [
1216
"Intended Audience :: Developers",
1317
"License :: OSI Approved :: Apache Software License",
@@ -20,7 +24,6 @@ classifiers = [
2024
"Programming Language :: Python",
2125
"Programming Language :: Python :: 3",
2226
"Programming Language :: Python :: 3 :: Only",
23-
"Programming Language :: Python :: 3.8",
2427
"Programming Language :: Python :: 3.9",
2528
"Programming Language :: Python :: 3.10",
2629
"Programming Language :: Python :: 3.11",
@@ -29,7 +32,7 @@ classifiers = [
2932
"Programming Language :: Python :: Implementation :: PyPy",
3033
"Typing :: Typed"
3134
]
32-
requires-python = ">=3.8"
35+
requires-python = ">=3.9"
3336

3437
[project.optional-dependencies]
3538
md = ["cmarkgfm>=0.8.0"]

Diff for: readme_renderer/clean.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"br", "caption", "cite", "col", "colgroup", "dd", "del", "details", "div",
2727
"dl", "dt", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "img", "p", "pre",
2828
"span", "sub", "summary", "sup", "table", "tbody", "td", "th", "thead",
29-
"tr", "tt", "kbd", "var", "input", "section", "aside", "nav", "s", "figure",
29+
"tr", "tt", "kbd", "var", "input", "section", "aside", "nav", "figure",
3030
"figcaption", "picture",
3131
}
3232

Diff for: tests/fixtures/test_rst_bibtex.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<pre><code><span class="nc">@article</span><span class="p">{</span><span class="nl">the_impact_of_pygments_docutils_config_and_html5</span><span class="p">,</span><span class="w">
2-
</span><span class="na">year</span><span class="w"> </span><span class="p">=</span><span class="w"> </span><s>{2022}</s><span class="p">,</span></code></pre>
2+
</span><span class="na">year</span><span class="w"> </span><span class="p">=</span><span class="w"> </span><span class="s">{2022}</span><span class="p">,</span></code></pre>

Diff for: tests/fixtures/test_rst_contents.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<nav class="contents" id="contents">
2-
<p class="topic-title">Contents</p>
2+
<p class="topic-title"><a href="#top" rel="nofollow">Contents</a></p>
33
<ul class="simple">
44
<li><p><a href="#features" id="toc-entry-1" rel="nofollow">Features</a></p></li>
55
<li><p><a href="#installation" id="toc-entry-2" rel="nofollow">Installation</a></p></li>

Diff for: tests/fixtures/test_rst_linkify.html

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
<a href="https://travis-ci.org/tulsawebdevs/django-multi-gtfs" rel="nofollow"><img alt="https://travis-ci.org/tulsawebdevs/django-multi-gtfs.svg?branch=master" src="https://travis-ci.org/tulsawebdevs/django-multi-gtfs.svg?branch=master"></a>
2-
<a href="https://coveralls.io/github/tulsawebdevs/django-multi-gtfs" rel="nofollow"><img alt="https://coveralls.io/repos/github/tulsawebdevs/django-multi-gtfs/badge.svg?branch=django19" src="https://coveralls.io/repos/github/tulsawebdevs/django-multi-gtfs/badge.svg?branch=django19"></a>
1+
<a href="https://travis-ci.org/tulsawebdevs/django-multi-gtfs" rel="nofollow">
2+
<img alt="https://travis-ci.org/tulsawebdevs/django-multi-gtfs.svg?branch=master" src="https://travis-ci.org/tulsawebdevs/django-multi-gtfs.svg?branch=master">
3+
</a>
4+
<a href="https://coveralls.io/github/tulsawebdevs/django-multi-gtfs" rel="nofollow">
5+
<img alt="https://coveralls.io/repos/github/tulsawebdevs/django-multi-gtfs/badge.svg?branch=django19" src="https://coveralls.io/repos/github/tulsawebdevs/django-multi-gtfs/badge.svg?branch=django19">
6+
</a>
37
<p><strong>multigtfs</strong> is an <a href="http://choosealicense.com/licenses/apache/" rel="nofollow">Apache 2.0</a>-licensed Django app that supports importing
48
and exporting of GTFS feeds. All features of the <a href="https://developers.google.com/transit/gtfs/reference" rel="nofollow">June 20, 2012 reference</a>
59
are supported, including <a href="https://developers.google.com/transit/gtfs/changes#RevisionHistory" rel="nofollow">all changes</a> up to February 17, 2014.

Diff for: tox.ini

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
[tox]
2-
envlist = py38,py39,py310,py311,py312,pep8,packaging,noextra,mypy
2+
envlist =
3+
py{39, 310, 311, 312}
4+
pypy{39, 310}
5+
pep8
6+
packaging
7+
noextra
8+
mypy
39
isolated_build = True
410

511
[testenv]

0 commit comments

Comments
 (0)