Skip to content

Commit

Permalink
Use PDM for installation
Browse files Browse the repository at this point in the history
  • Loading branch information
offbyone committed Oct 30, 2023
1 parent 2a52e80 commit 331437a
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 162 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ jobs:
role-session-name: deploy-ideas
mask-aws-account-id: false

- name: Set up Python 3
uses: actions/setup-python@v2
- name: Set up Python & PDM
uses: pdm-project/setup-pdm@v3
with:
python-version: "3.11"
cache: true
cache-dependency-path: ./pyproject.toml

- name: Set up Node
uses: actions/setup-node@v2
Expand All @@ -40,8 +42,6 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade pip pip-tools
pip-sync requirements.txt
npm install
echo "$GITHUB_WORKSPACE/node_modules/.bin" >> $GITHUB_PATH
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ jobs:
- uses: actions/checkout@v2
- uses: extractions/setup-just@v1

- name: Set up Python 3
uses: actions/setup-python@v2
- name: Set up Python & PDM
uses: pdm-project/setup-pdm@v3
with:
python-version: "3.11"
cache: true
cache-dependency-path: ./pyproject.toml

- name: Set up Node
uses: actions/setup-node@v2
Expand All @@ -30,13 +32,11 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade pip pip-tools
pip-sync requirements.txt
npm install
echo "$GITHUB_WORKSPACE/node_modules/.bin" >> $GITHUB_PATH
- name: Clone plugins
run: git clone https://github.com/getpelican/pelican-plugins

- name: Build the page
run: just build
run: just generate
40 changes: 31 additions & 9 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies = [
"pelican-embed-microblog >= 1.1.0",
"pelican-gist",
"pelican-githubprojects",
# "pelican-photos < 1.4",
#"pelican-photos ~= 1.5.0",
"pelican-photos @ git+https://github.com/pelican-plugins/photos.git",
"pelican-simple-footnotes",
"pelican-sitemap",
Expand Down
1 change: 0 additions & 1 deletion requirements.in

This file was deleted.

142 changes: 0 additions & 142 deletions requirements.txt

This file was deleted.

0 comments on commit 331437a

Please sign in to comment.