Skip to content

Commit c28366d

Browse files
Removed python 3.6 CI and fixed test cases for python 3.12 (#352)
1 parent ab38f02 commit c28366d

File tree

4 files changed

+23
-14
lines changed

4 files changed

+23
-14
lines changed

.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
os: [ubuntu-20.04, macos-11, windows-2019]
19-
python-version: [ "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12.0", "pypy3.8", "pypy3.9", "pypy3.10", ]
19+
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12.0", "pypy3.8", "pypy3.9", "pypy3.10", ]
2020
runs-on: ${{ matrix.os }}
2121
steps:
2222
- name: Check out repository

poetry.lock

+9-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ packages = [
3333
]
3434

3535
[tool.poetry.dependencies]
36-
python = ">=3.6,<=3.12"
36+
python = ">=3.7,<=3.12"
3737

3838
[tool.poetry.dev-dependencies]
3939
pandocfilters = "^1.5"
40-
setuptools = "58"
40+
setuptools = "68"
4141

4242
[tool.poetry.group.dev.dependencies]
4343
pandocfilters = "^1.5"
44-
setuptools = "58"
44+
setuptools = "68"
4545

4646
[build-system]
4747
requires = ["poetry-core>=1.0.0"]

tests.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -409,13 +409,21 @@ def func(key, value, format, meta):
409409
markdown_source, to="html", format="md", outputfile=None, filters=[temp1, temp2, temp3, temp4]
410410
).strip()
411411
expected = "<p>-0-1-2-3-4-</p>"
412-
self.assertEquals(output, expected)
412+
try:
413+
self.assertEquals(output, expected)
414+
except AttributeError:
415+
# python 3.12 doesn't have assertEqual
416+
self.assertEqual(output, expected)
413417

414418
output = pypandoc.convert_text(
415419
markdown_source, to="html", format="md", outputfile=None, filters=[temp3, temp1, temp4, temp2]
416420
).strip()
417421
expected = "<p>-0-3-1-4-2-</p>"
418-
self.assertEquals(output, expected)
422+
try:
423+
self.assertEquals(output, expected)
424+
except AttributeError:
425+
# python 3.12 doesn't have assertEqual
426+
self.assertEqual(output, expected)
419427

420428
def test_classify_pandoc_logging(self):
421429

0 commit comments

Comments
 (0)