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

Pin build to Python 3.10 #46

Merged
merged 4 commits into from Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.
hodgestar marked this conversation as resolved.
Show resolved Hide resolved

## 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