Skip to content

Commit fb97ff8

Browse files
committed
Upgrade to Python 3.12 (#2468)
1 parent 82ab189 commit fb97ff8

10 files changed

+143
-2723
lines changed

.github/workflows/build-offline.yml

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ jobs:
5252
- name: Python setup
5353
uses: actions/setup-python@v5
5454
with:
55-
python-version: '3.8'
5655
cache: 'pipenv'
5756

5857
- uses: actions/cache/[email protected]

.github/workflows/build.yml

-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ jobs:
7676
7777
- uses: actions/setup-python@v5
7878
with:
79-
python-version: '3.8'
8079
cache: 'pipenv'
8180

8281
- uses: actions/cache/[email protected]

.python-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.8
1+
3.12

Brewfile.netlify

-2
This file was deleted.

Brewfile.preview.netlify

-1
This file was deleted.

Pipfile

+3-4
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,14 @@ verify_ssl = true
2424
name = "pypi"
2525

2626
[packages]
27-
mkdocs-material = {path = "./modules/mkdocs-material"}
27+
mkdocs-material = {extras = ["imaging"], path = "./modules/mkdocs-material"}
2828
mkdocs-git-revision-date-localized-plugin = "~=1.2"
2929
mkdocs-git-committers-plugin-2 = "~=1.1"
3030
mkdocs-macros-plugin = "~=1.0"
31-
pillow = "~=10.0"
32-
cairosvg = "~=2.7"
31+
jieba = "~=0.42"
3332

3433
[dev-packages]
3534
scour = "~=0.38"
3635

3736
[requires]
38-
python_version = "3.8"
37+
python_version = "3.12"

Pipfile.lock

+138-106
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ This website uses [`mkdocs-material-insiders`](https://squidfunk.github.io/mkdoc
9292

9393
1. Clone this repository and submodules: `git clone --recurse-submodules https://github.com/privacyguides/privacyguides.org.git`
9494
2. Enable SSH commit verification with our local [`.allowed_signers`](/.allowed_signers) file: `git config gpg.ssh.allowedSignersFile .allowed_signers`
95-
3. Install Python **3.8**, this is the only version supported by Netlify
95+
3. Install Python **3.12**.
9696
4. Install **pipenv**: `pip install pipenv`
9797
5. Install dependencies: `pipenv install --dev` (install [Pillow and CairoSVG](https://squidfunk.github.io/mkdocs-material/setup/setting-up-social-cards/#dependencies) as well to generate social cards)
9898
6. Serve the site locally: `pipenv run mkdocs serve --config-file config/mkdocs.en.yml` (set `CARDS=true` to generate social cards)

0 commit comments

Comments
 (0)