Skip to content

Commit

Permalink
Drop support for Python 3.8 (#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
willkg committed Oct 23, 2024
1 parent 4bc1bff commit 73e1882
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.8"]
python-version: ["3.9", "3.10", "3.11", "3.12", "pypy3.9"]
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
Expand Down
15 changes: 15 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
Bleach changes
==============

Version 6.2.0 (in development)
------------------------------
**Backwards incompatible changes**

* Dropped support for Python 3.8. (#737)

**Security fixes**

None

**Bug fixes**

None


Version 6.1.0 (October 6th, 2023)
---------------------------------

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ docs: ## Build docs

.PHONY: lint
lint: ## Lint files
tox exec -e py39-format-check -- black --target-version=py38 --exclude=_vendor setup.py bleach/ tests/ tests_website/
tox exec -e py39-format-check -- black --target-version=py39 --exclude=_vendor setup.py bleach/ tests/ tests_website/
tox -e py39-lint
tox -e py39-format-check

Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ tox-gh-actions==3.2.0
twine==5.1.1
wheel==0.43.0

Sphinx==7.4.4; python_version > "3.8"
Sphinx==7.4.4
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def get_version():
include_package_data=True,
package_data={"": ["README.rst"]},
zip_safe=False,
python_requires=">=3.8",
python_requires=">=3.9",
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
classifiers=[
Expand All @@ -63,7 +63,6 @@ def get_version():
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand Down
21 changes: 4 additions & 17 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,28 @@

[tox]
envlist =
py{38,39,310,311,312,py3}
py{38,39,310,311,312,py3}-tinycss2
py{38,39,310,311,312}-build-no-lang
py{39,310,311,312,py3}
py{39,310,311,312,py3}-tinycss2
py{39,310,311,312}-build-no-lang
py39-docs
py39-format-check
py39-lint
py39-vendorverify

[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
pypy-3.8: pypy3
pypy-3.9: pypy3

[testenv]
deps = -rrequirements-dev.txt
commands =
pytest {posargs:-v}
python setup.py build

[testenv:py38-tinycss2]
deps = -rrequirements-dev.txt
extras = css
commands =
pytest {posargs:-v}

[testenv:py39-tinycss2]
deps = -rrequirements-dev.txt
extras = css
Expand Down Expand Up @@ -61,12 +54,6 @@ extras = css
commands =
pytest {posargs:-v}

[testenv:py38-build-no-lang]
setenv =
LANG=
commands =
python setup.py build

[testenv:py39-build-no-lang]
setenv =
LANG=
Expand Down

0 comments on commit 73e1882

Please sign in to comment.