Skip to content

Commit

Permalink
Upgrade to Python 3.12 (#2468)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Gray <[email protected]>
  • Loading branch information
jonaharagon authored and dngray committed Mar 31, 2024
1 parent 82ab189 commit 1372587
Show file tree
Hide file tree
Showing 10 changed files with 143 additions and 2,723 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build-offline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ jobs:
- name: Python setup
uses: actions/setup-python@v5
with:
python-version: '3.8'
cache: 'pipenv'

- uses: actions/cache/[email protected]
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: '3.8'
cache: 'pipenv'

- uses: actions/cache/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.8
3.12
2 changes: 0 additions & 2 deletions Brewfile.netlify

This file was deleted.

1 change: 0 additions & 1 deletion Brewfile.preview.netlify

This file was deleted.

7 changes: 3 additions & 4 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,14 @@ verify_ssl = true
name = "pypi"

[packages]
mkdocs-material = {path = "./modules/mkdocs-material"}
mkdocs-material = {extras = ["imaging"], path = "./modules/mkdocs-material"}
mkdocs-git-revision-date-localized-plugin = "~=1.2"
mkdocs-git-committers-plugin-2 = "~=1.1"
mkdocs-macros-plugin = "~=1.0"
pillow = "~=10.0"
cairosvg = "~=2.7"
jieba = "~=0.42"

[dev-packages]
scour = "~=0.38"

[requires]
python_version = "3.8"
python_version = "3.12"
244 changes: 138 additions & 106 deletions Pipfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ This website uses [`mkdocs-material-insiders`](https://squidfunk.github.io/mkdoc

1. Clone this repository and submodules: `git clone --recurse-submodules https://github.com/privacyguides/privacyguides.org.git`
2. Enable SSH commit verification with our local [`.allowed_signers`](/.allowed_signers) file: `git config gpg.ssh.allowedSignersFile .allowed_signers`
3. Install Python **3.8**, this is the only version supported by Netlify
3. Install Python **3.12**.
4. Install **pipenv**: `pip install pipenv`
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)
6. Serve the site locally: `pipenv run mkdocs serve --config-file config/mkdocs.en.yml` (set `CARDS=true` to generate social cards)
Expand Down
Loading

0 comments on commit 1372587

Please sign in to comment.