Skip to content

Commit

Permalink
Add PY39 support and drop PY35 (Python-Markdown#1026)
Browse files Browse the repository at this point in the history
Python 3.5 reached end-of-life on 2020-09-12 and Python 3.9 was released on 2020-10-05.
  • Loading branch information
waylan authored Oct 6, 2020
1 parent 2e0962e commit f4b936b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ jobs:
fail-fast: false
max-parallel: 4
matrix:
tox-env: [py35, py36, py37, py38, pypy3, pygments]
tox-env: [py36, py37, py38, py39, pypy3, pygments]
include:
- tox-env: py35
python-version: 3.5
- tox-env: py36
python-version: 3.6
- tox-env: py37
python-version: 3.7
- tox-env: py38
python-version: 3.8
- tox-env: py39
python-version: 3.9
- tox-env: pypy3
python-version: pypy3
- tox-env: pygments
Expand All @@ -41,7 +41,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Setup Node
Expand All @@ -91,4 +91,3 @@ jobs:
if [[ "$TOXENV" == 'checkspelling' ]]; then sudo apt-get install aspell aspell-en; fi
- name: Run tox
run: python -m tox

5 changes: 3 additions & 2 deletions docs/change_log/release-3.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ title: Release Notes for v3.3

# Python-Markdown 3.3 Release Notes

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

## Backwards-incompatible changes

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

* Support was added for Python 3.9 and dropped for Python 3.5.

## Bug fixes

The following bug fixes are included in the 3.3 release:
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def get_version():
maintainer_email='[email protected]',
license='BSD License',
packages=['markdown', 'markdown.extensions'],
python_requires='>=3.5',
python_requires='>=3.6',
install_requires=["importlib-metadata;python_version<'3.8'"],
extras_require={
'testing': [
Expand Down Expand Up @@ -114,10 +114,10 @@ def get_version():
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[tox]
envlist = py35, py36, py37, py38, pypy3, pygments, flake8, checkspelling, pep517check, checklinks
envlist = py36, py37, py38, py39, pypy3, pygments, flake8, checkspelling, pep517check, checklinks
isolated_build = True

[testenv]
extras = testing
deps = pytidylib
commands =
commands =
coverage run --source=markdown -m unittest discover {toxinidir}/tests
coverage xml
coverage report --show-missing
Expand Down

0 comments on commit f4b936b

Please sign in to comment.