Skip to content

Commit

Permalink
Merge pull request #46 from erlend-aasland/build-python
Browse files Browse the repository at this point in the history
Pin build to Python 3.10
  • Loading branch information
hodgestar committed Mar 20, 2024
2 parents 6ec5cc6 + fecc8d4 commit d0499f9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/nikola.yml
Expand Up @@ -17,6 +17,10 @@ jobs:
steps:
- name: Check out
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Build docs
shell: bash
run: |
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Expand Up @@ -2,15 +2,16 @@ SHELL := bash
TARGET ?= origin
# hpy static page and blog makefile
# type `make help` to see all options
PYTHON := python3

all: build

.PHONY: clean build help


venv_nikola/bin/nikola: ## create a virtualenv to build the website
@virtualenv -ppython3 ./venv_nikola
@venv_nikola/bin/python -mpip install nikola==8.2.2 markdown==3.2.2 jinja2 aiohttp watchdog ruamel.yaml feedparser
@virtualenv -p $(PYTHON) ./venv_nikola
@venv_nikola/bin/python -m pip install -r requirements.txt
@venv_nikola/bin/nikola plugin -i sidebar
@venv_nikola/bin/nikola plugin -i localsearch

Expand Down
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -32,6 +32,10 @@ behalf using the [GitHub
OAuth](https://developer.github.com/v3/oauth/#web-application-flow) flow.
Alternatively, users can comment on the GitHub issue directly.

## Build requirements

Python 3.10 is required to build the web pages.

## Deployment

Any changes to the main branch (including merging PRs) regenerates and pushes
Expand Down
7 changes: 7 additions & 0 deletions requirements.txt
@@ -0,0 +1,7 @@
aiohttp
feedparser
jinja2
markdown==3.2.2
nikola==8.2.2
ruamel.yaml
watchdog

0 comments on commit d0499f9

Please sign in to comment.