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

Support newer docutils versions #315

Merged
merged 5 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading