Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace pipenv with uv #200

Merged
merged 14 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,25 @@ jobs:
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1

- name: Set up Python 3.10
uses: actions/setup-python@v5
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5
with:
python-version: "3.10"
enable-cache: true
version: "latest"

- name: Install dependencies
run: |
python -m pip install -U pip pipenv
pipenv install --dev
uv --version
uv sync

- name: Run linters and checks through pre-commit
- name: Check Python coding style
run: |
pipenv run inv setup-pre-commit-hooks
pipenv run inv run-pre-commit
uv run inv style

- name: Check whether pelican local pages is buildable
run: |
pipenv run inv build
uv run inv build

- name: Check whether pelican public pages is buildable
run: |
pipenv run inv build-publish
uv run inv build-publish
14 changes: 7 additions & 7 deletions .github/workflows/publish_post.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@ jobs:
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1

- name: Set up Python
uses: actions/setup-python@v5
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5
with:
python-version: '3.10'
enable-cache: true
version: "latest"

- name: Install dependencies
run: |
python -m pip install pipenv
pipenv --version
pipenv install --dev
uv --version
uv sync --no-dev

- name: Build
run: |
export GOOGLE_ANALYTICS=${{ secrets.GOOGLE_ANALYTICS }}
export UTTERANCES_REPO=${{ github.repository }}
pipenv run inv build-publish
uv run inv build-publish

- name: Deploy
uses: peaceiris/actions-gh-pages@v4
Expand Down
20 changes: 10 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
exclude: ^(theme|plugins|output)\/.+
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
Expand All @@ -12,43 +12,43 @@ repos:
- id: check-yaml

- repo: https://github.com/commitizen-tools/commitizen
rev: v3.27.0
rev: v4.1.1
hooks:
- id: commitizen
stages: [commit-msg]

- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.1
hooks:
- id: codespell

- repo: https://github.com/crate-ci/typos
rev: v1.22.4
rev: dictgen-v0.3.1
hooks:
- id: typos

- repo: local
hooks:
- id: style-reformat
name: style-reformat
stages: [commit]
stages: [pre-commit]
language: system
pass_filenames: false
entry: pipenv run inv format
entry: uv run inv format
types: [python]

- id: style-check
name: style-check
stages: [push]
stages: [pre-push]
language: system
pass_filenames: false
entry: pipenv run inv style
entry: uv run inv style
types: [python]

- id: security-check
name: security-check
stages: [push]
stages: [pre-push]
language: system
pass_filenames: false
entry: pipenv run inv security-check
entry: uv run inv security-check
types: [python]
79 changes: 0 additions & 79 deletions Makefile

This file was deleted.

23 changes: 0 additions & 23 deletions Pipfile

This file was deleted.

Loading