Require Python 3.9, run tests with 3.12
This commit is contained in:
2
.github/workflows/python-tests.yml
vendored
2
.github/workflows/python-tests.yml
vendored
@@ -16,7 +16,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [3.8, 3.9, "3.10", "3.11"]
|
||||
python-version: [3.9, "3.10", "3.11", "3.12"]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
repos:
|
||||
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.4.0
|
||||
rev: v4.5.0
|
||||
hooks:
|
||||
- id: check-added-large-files
|
||||
- id: check-merge-conflict
|
||||
@@ -12,12 +12,12 @@ repos:
|
||||
exclude: ".*(galleria|photoswipe|jquery|leaflet).*$"
|
||||
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 23.9.1
|
||||
rev: 23.11.0
|
||||
hooks:
|
||||
- id: black
|
||||
|
||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||
rev: v0.0.291
|
||||
rev: v0.1.4
|
||||
hooks:
|
||||
- id: ruff
|
||||
args: [ --fix, --show-fixes, --exit-non-zero-on-fix ]
|
||||
|
||||
@@ -7,6 +7,8 @@ Version 2.5dev
|
||||
|
||||
Not released yet.
|
||||
|
||||
Sigal now requires Python 3.9+.
|
||||
|
||||
Version 2.4
|
||||
~~~~~~~~~~~
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ html_theme_options = {
|
||||
<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16">
|
||||
<path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path>
|
||||
</svg>
|
||||
""",
|
||||
""", # noqa: E501
|
||||
"class": "",
|
||||
},
|
||||
],
|
||||
|
||||
@@ -15,15 +15,11 @@ classifiers = [
|
||||
"License :: OSI Approved :: MIT License",
|
||||
"Operating System :: OS Independent",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.8",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Topic :: Internet :: WWW/HTTP",
|
||||
"Topic :: Multimedia :: Graphics :: Viewers",
|
||||
"Topic :: Software Development :: Libraries :: Python Modules",
|
||||
]
|
||||
requires-python = ">=3.8"
|
||||
requires-python = ">=3.9"
|
||||
dependencies = [
|
||||
"blinker",
|
||||
"click",
|
||||
@@ -66,10 +62,10 @@ write_to = "src/sigal/version.py"
|
||||
|
||||
[tool.black]
|
||||
line-length = 88
|
||||
target-version = ['py38']
|
||||
target-version = ['py39']
|
||||
|
||||
[tool.ruff]
|
||||
target-version = "py38"
|
||||
target-version = "py39"
|
||||
select = [
|
||||
"E", "F", "W", # flake8
|
||||
"I", # isort
|
||||
|
||||
6
tox.ini
6
tox.ini
@@ -1,13 +1,13 @@
|
||||
[tox]
|
||||
envlist = py{38,39,310,311}-pillow{80,90,100,-latest},pypy3,check
|
||||
envlist = py{39,310,311,312}-pillow{80,90,100,-latest},pypy3,check
|
||||
skip_missing_interpreters = true
|
||||
|
||||
[gh-actions]
|
||||
python =
|
||||
3.8: py38-pillow80, check
|
||||
3.9: py39-pillow90
|
||||
3.10: py310-pillow100
|
||||
3.11: py310-pillow-latest
|
||||
3.11: py311-pillow-latest
|
||||
3.12: py312-pillow-latest
|
||||
pypy3: pypy3
|
||||
|
||||
[testenv]
|
||||
|
||||
Reference in New Issue
Block a user