Skip to content

Commit f4b936b

Browse files
authored
Add PY39 support and drop PY35 (#1026)
Python 3.5 reached end-of-life on 2020-09-12 and Python 3.9 was released on 2020-10-05.
1 parent 2e0962e commit f4b936b

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

.github/workflows/tox.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ jobs:
2020
fail-fast: false
2121
max-parallel: 4
2222
matrix:
23-
tox-env: [py35, py36, py37, py38, pypy3, pygments]
23+
tox-env: [py36, py37, py38, py39, pypy3, pygments]
2424
include:
25-
- tox-env: py35
26-
python-version: 3.5
2725
- tox-env: py36
2826
python-version: 3.6
2927
- tox-env: py37
3028
python-version: 3.7
3129
- tox-env: py38
3230
python-version: 3.8
31+
- tox-env: py39
32+
python-version: 3.9
3333
- tox-env: pypy3
3434
python-version: pypy3
3535
- tox-env: pygments
@@ -41,7 +41,7 @@ jobs:
4141
steps:
4242
- uses: actions/checkout@v2
4343
- name: Setup Python ${{ matrix.python-version }}
44-
uses: actions/setup-python@v1
44+
uses: actions/setup-python@v2
4545
with:
4646
python-version: ${{ matrix.python-version }}
4747
- name: Install dependencies
@@ -76,7 +76,7 @@ jobs:
7676
steps:
7777
- uses: actions/checkout@v2
7878
- name: Setup Python
79-
uses: actions/setup-python@v1
79+
uses: actions/setup-python@v2
8080
with:
8181
python-version: 3.7
8282
- name: Setup Node
@@ -91,4 +91,3 @@ jobs:
9191
if [[ "$TOXENV" == 'checkspelling' ]]; then sudo apt-get install aspell aspell-en; fi
9292
- name: Run tox
9393
run: python -m tox
94-

docs/change_log/release-3.3.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ title: Release Notes for v3.3
22

33
# Python-Markdown 3.3 Release Notes
44

5-
Python-Markdown version 3.3 supports Python versions 3.5, 3.6, 3.7, 3.8, and
6-
PyPy3.
5+
Python-Markdown version 3.3 supports Python versions 3.6, 3.7, 3.8, 3.9 and PyPy3.
76

87
## Backwards-incompatible changes
98

@@ -88,6 +87,8 @@ The following new features have been included in the 3.3 release:
8887
`markdown.extensions.headerid.slugify_unicode` to the `slugify` configuration option
8988
to use the new behavior.
9089

90+
* Support was added for Python 3.9 and dropped for Python 3.5.
91+
9192
## Bug fixes
9293

9394
The following bug fixes are included in the 3.3 release:

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def get_version():
7474
maintainer_email='waylan.limberg@icloud.com',
7575
license='BSD License',
7676
packages=['markdown', 'markdown.extensions'],
77-
python_requires='>=3.5',
77+
python_requires='>=3.6',
7878
install_requires=["importlib-metadata;python_version<'3.8'"],
7979
extras_require={
8080
'testing': [
@@ -114,10 +114,10 @@ def get_version():
114114
'Operating System :: OS Independent',
115115
'Programming Language :: Python',
116116
'Programming Language :: Python :: 3',
117-
'Programming Language :: Python :: 3.5',
118117
'Programming Language :: Python :: 3.6',
119118
'Programming Language :: Python :: 3.7',
120119
'Programming Language :: Python :: 3.8',
120+
'Programming Language :: Python :: 3.9',
121121
'Programming Language :: Python :: 3 :: Only',
122122
'Programming Language :: Python :: Implementation :: CPython',
123123
'Programming Language :: Python :: Implementation :: PyPy',

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[tox]
2-
envlist = py35, py36, py37, py38, pypy3, pygments, flake8, checkspelling, pep517check, checklinks
2+
envlist = py36, py37, py38, py39, pypy3, pygments, flake8, checkspelling, pep517check, checklinks
33
isolated_build = True
44

55
[testenv]
66
extras = testing
77
deps = pytidylib
8-
commands =
8+
commands =
99
coverage run --source=markdown -m unittest discover {toxinidir}/tests
1010
coverage xml
1111
coverage report --show-missing

0 commit comments

Comments
 (0)