Skip to content

Commit

Permalink
Pin build to Python 3.10
Browse files Browse the repository at this point in the history
Also make it possible to override it using the PYTHON make variable:

    $ make PYTHON="$HOME/bin/python3.10"

Fixes hpyproject#45
  • Loading branch information
erlend-aasland committed Mar 20, 2024
1 parent 6ec5cc6 commit d6182ec
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
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 d6182ec

Please sign in to comment.