Skip to content

Commit bbf855a

Browse files
authored
⬆️ UPGRADE: Drop python 3.6 (#75)
1 parent fc696e7 commit bbf855a

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ jobs:
2727
tests:
2828

2929
strategy:
30+
fail-fast: false
3031
matrix:
3132
os: [ubuntu-latest]
32-
python-version: [3.6, 3.7, 3.8, 3.9]
33+
python-version: [3.7, 3.8, 3.9, "3.10"]
3334
include:
3435
- os: windows-latest
3536
python-version: 3.8

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ classifiers = [
1515
"Intended Audience :: Developers",
1616
"License :: OSI Approved :: MIT License",
1717
"Programming Language :: Python :: 3",
18-
"Programming Language :: Python :: 3.6",
1918
"Programming Language :: Python :: 3.7",
2019
"Programming Language :: Python :: 3.8",
2120
"Programming Language :: Python :: 3.9",
21+
"Programming Language :: Python :: 3.10",
2222
"Programming Language :: Python :: Implementation :: CPython",
2323
"Topic :: Software Development :: Libraries :: Python Modules",
2424
"Topic :: Text Processing :: Markup",
2525
]
2626
keywords = ["sphinx","extension", "toc"]
27-
requires-python = "~=3.6"
27+
requires-python = "~=3.7"
2828
dependencies = [
2929
"attrs>=20.3,<22",
3030
"click>=7.1,<9",
@@ -42,12 +42,12 @@ Documentation = "https://sphinx-external-toc.readthedocs.io"
4242
[project.optional-dependencies]
4343
code_style = ["pre-commit~=2.12"]
4444
rtd = [
45-
"myst-parser~=0.15.0",
45+
"myst-parser~=0.17.0",
4646
"sphinx-book-theme>=0.0.36",
4747
]
4848
testing = [
4949
"coverage",
50-
"pytest>=3.6,<4",
50+
"pytest~=7.1",
5151
"pytest-cov",
5252
"pytest-regressions",
5353
]

tests/test_tools.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
"path", TOC_FILES, ids=[path.name.rsplit(".", 1)[0] for path in TOC_FILES]
2020
)
2121
def test_file_to_sitemap(path: Path, tmp_path: Path, data_regression):
22-
create_site_from_toc(path, root_path=tmp_path)
23-
file_list = [p.relative_to(tmp_path).as_posix() for p in tmp_path.glob("**/*")]
22+
site_path = tmp_path.joinpath("site")
23+
create_site_from_toc(path, root_path=site_path)
24+
file_list = [p.relative_to(site_path).as_posix() for p in site_path.glob("**/*")]
2425
data_regression.check(sorted(file_list))
2526

2627

0 commit comments

Comments
 (0)