diff --git a/.github/workflows/nikola.yml b/.github/workflows/nikola.yml index 8f87d4c..2c27c3b 100644 --- a/.github/workflows/nikola.yml +++ b/.github/workflows/nikola.yml @@ -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: | diff --git a/Makefile b/Makefile index c6a3012..a12b97b 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ SHELL := bash TARGET ?= origin # hpy static page and blog makefile # type `make help` to see all options +PYTHON := python3 all: build @@ -9,8 +10,8 @@ all: build 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 diff --git a/README.md b/README.md index 045c2c2..2198aa0 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..b157ab4 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,7 @@ +aiohttp +feedparser +jinja2 +markdown==3.2.2 +nikola==8.2.2 +ruamel.yaml +watchdog