diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 63ef139def..91951fd6d0 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -8,7 +8,7 @@ on:
env:
NODE_VERSION: "18" # needs to be also updated in .nvmrc
- PYTHON_VERSION: "3.9"
+ PYTHON_VERSION: "3.11"
MARIADB_VERSION: "10.4.10"
COVERALLS_VERSION: "3.3.1" # check if Coverage needs to be also updated in requirements-ci.txt
TYPESENSE_VERSION: "27.0" # needs to be also updated in scripts/define_variable.sh
@@ -24,7 +24,7 @@ jobs:
# Lint all source files by executing pre-commit hooks.
lint:
name: Lint
- runs-on: ubuntu-22.04
+ runs-on: ubuntu-24.04
# do not execute scheduled jobs on forks:
if: ${{ github.event_name != 'schedule' || github.repository_owner == 'zestedesavoir' }}
@@ -44,7 +44,7 @@ jobs:
# Build the documentation and upload it as an artifact.
build-doc:
name: Build Sphinx documentation
- runs-on: ubuntu-22.04
+ runs-on: ubuntu-24.04
# do not execute scheduled jobs on forks:
if: ${{ github.event_name != 'schedule' || github.repository_owner == 'zestedesavoir' }}
@@ -87,7 +87,7 @@ jobs:
# Build the website front-end and upload built assets as an artifact.
build-front:
name: Lint and build front-end
- runs-on: ubuntu-22.04
+ runs-on: ubuntu-24.04
# do not execute scheduled jobs on forks:
if: ${{ github.event_name != 'schedule' || github.repository_owner == 'zestedesavoir' }}
@@ -137,7 +137,7 @@ jobs:
test:
name: Install and test zds-site
needs: build-front
- runs-on: ubuntu-22.04
+ runs-on: ubuntu-24.04
strategy:
matrix:
@@ -182,6 +182,11 @@ jobs:
name: assets
path: dist
+ - name: Set up Python ${{ env.PYTHON_VERSION }}
+ uses: actions/setup-python@v5
+ with:
+ python-version: "${{ env.PYTHON_VERSION }}"
+
- name: Upgrade pip
run: |
pip install --upgrade pip
@@ -206,11 +211,6 @@ jobs:
restore-keys: |
${{ runner.os }}-node-
- - name: Set up Python ${{ env.PYTHON_VERSION }}
- uses: actions/setup-python@v5
- with:
- python-version: "${{ env.PYTHON_VERSION }}"
-
- name: Set up NodeJS ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
@@ -246,7 +246,7 @@ jobs:
coverage:
name: Push coverage to Coveralls
needs: test
- runs-on: ubuntu-22.04
+ runs-on: ubuntu-24.04
steps:
- name: Set up Python ${{ env.PYTHON_VERSION }}
@@ -266,7 +266,7 @@ jobs:
push_doc:
name: Push documentation to GitHub Pages
needs: ["build-doc", "test"]
- runs-on: ubuntu-22.04
+ runs-on: ubuntu-24.04
if: "github.ref == 'refs/heads/dev'"
environment:
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 383967d4ca..1e2bad94a8 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,16 +1,16 @@
repos:
- repo: https://github.com/asottile/pyupgrade
- rev: v3.15.1
+ rev: v3.17.0
hooks:
- id: pyupgrade
args: [--py39-plus]
- repo: https://github.com/psf/black-pre-commit-mirror
- rev: 24.2.0 # needs to be also updated in requirements-dev.txt
+ rev: 24.8.0 # needs to be also updated in requirements-dev.txt
hooks:
- id: black
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v4.5.0
+ rev: v4.6.0
hooks:
- id: trailing-whitespace
exclude_types: ["svg"]
diff --git a/Makefile b/Makefile
index 59fc204670..4e95f718fb 100644
--- a/Makefile
+++ b/Makefile
@@ -102,7 +102,7 @@ zmd-stop: ## Stop the zmarkdown server
## ~ Search Engine
run-search-engine: ## Run the search server
- ./.local/typesense/typesense-server --data-dir=.local/typesense/typesense-data --api-key=xyz || echo 'No Typesense installed (you can add it locally with `./scripts/install_zds.sh +typesense-local`)'
+ @./.local/typesense/typesense-server --data-dir=.local/typesense/typesense-data --api-key=xyz || echo 'No Typesense installed (you can add it locally with `./scripts/install_zds.sh +typesense-local`)'
index-all: ## Index the whole database in the search engine
python manage.py search_engine_manager index_all
diff --git a/assets/images/brands/gandi.svg b/assets/images/brands/gandi.svg
new file mode 100644
index 0000000000..668ebe8dbf
--- /dev/null
+++ b/assets/images/brands/gandi.svg
@@ -0,0 +1,5 @@
+
+
diff --git a/doc/source/install/install-macos.rst b/doc/source/install/install-macos.rst
index 93c762727d..4035367baa 100644
--- a/doc/source/install/install-macos.rst
+++ b/doc/source/install/install-macos.rst
@@ -37,7 +37,7 @@ Pré-requis
Ces instructions expliquent comment installer XCode, Homebrew, Python, pip, et
les utilitaires GNU, sur macOS. Si vous avez déjà :
- - une installation fonctionnelle de Homebrew et de Python 3.7+ ;
+ - une installation fonctionnelle de Homebrew et de Python 3.8+ ;
- configuré votre terminal pour utiliser les utilitaires GNU à la place de
ceux de BSD (avec `linuxify {% trans "Droits" %}
sous licence CC BY.
{% endblocktrans %}
+
+ {% blocktrans %}
+
+ Gandi soutient {{ site_name }}
+
+ dans ses projets et ambitions en fournissant ses solutions d'hébergement généreusement et en
+ relayant certaines de nos actualités. Merci !
+ {% endblocktrans %}
+