Skip to content

Commit

Permalink
Support newer docutils versions (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtmckee committed Jul 1, 2024
1 parent 175c65a commit fefd285
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 10 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["pypy-3.8", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version:
- "pypy-3.9"
- "pypy-3.10"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand Down
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ authors = [
]
readme = "README.rst"
license = {text = "Apache License, Version 2.0"}
dependencies = ["nh3>=0.2.14", "docutils>=0.13.1", "Pygments>=2.5.1"]
dependencies = [
"nh3>=0.2.14",
"docutils>=0.21.2",
"Pygments>=2.5.1",
]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
Expand All @@ -20,7 +24,6 @@ classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand All @@ -29,7 +32,7 @@ classifiers = [
"Programming Language :: Python :: Implementation :: PyPy",
"Typing :: Typed"
]
requires-python = ">=3.8"
requires-python = ">=3.9"

[project.optional-dependencies]
md = ["cmarkgfm>=0.8.0"]
Expand Down
2 changes: 1 addition & 1 deletion readme_renderer/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"br", "caption", "cite", "col", "colgroup", "dd", "del", "details", "div",
"dl", "dt", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "img", "p", "pre",
"span", "sub", "summary", "sup", "table", "tbody", "td", "th", "thead",
"tr", "tt", "kbd", "var", "input", "section", "aside", "nav", "s", "figure",
"tr", "tt", "kbd", "var", "input", "section", "aside", "nav", "figure",
"figcaption", "picture",
}

Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/test_rst_bibtex.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<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">
</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>
</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>
2 changes: 1 addition & 1 deletion tests/fixtures/test_rst_contents.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<nav class="contents" id="contents">
<p class="topic-title">Contents</p>
<p class="topic-title"><a href="#top" rel="nofollow">Contents</a></p>
<ul class="simple">
<li><p><a href="#features" id="toc-entry-1" rel="nofollow">Features</a></p></li>
<li><p><a href="#installation" id="toc-entry-2" rel="nofollow">Installation</a></p></li>
Expand Down
8 changes: 6 additions & 2 deletions tests/fixtures/test_rst_linkify.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<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>
<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>
<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>
<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>
<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
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>
are supported, including <a href="https://developers.google.com/transit/gtfs/changes#RevisionHistory" rel="nofollow">all changes</a> up to February 17, 2014.
Expand Down
8 changes: 7 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
[tox]
envlist = py38,py39,py310,py311,py312,pep8,packaging,noextra,mypy
envlist =
py{39, 310, 311, 312}
pypy{39, 310}
pep8
packaging
noextra
mypy
isolated_build = True

[testenv]
Expand Down

0 comments on commit fefd285

Please sign in to comment.