Skip to content

Commit 0b50534

Browse files
committed
Require python 3.12 or higher
1 parent d2822df commit 0b50534

File tree

4 files changed

+11
-19
lines changed

4 files changed

+11
-19
lines changed

docs/.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version: 2
88
build:
99
os: ubuntu-22.04
1010
tools:
11-
python: "3.10"
11+
python: "3.12"
1212

1313
# Build documentation in the "docs/" directory with Sphinx
1414
sphinx:

environment.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,7 @@
1010
name: genja
1111

1212
dependencies:
13-
- python
14-
- beautifulsoup4
15-
- build
16-
- ipython
17-
- jinja2
18-
- markdown
19-
- pytest
20-
- twine
13+
- python=3.12
2114
- pip
2215
- pip:
23-
- furo
24-
- ipdb
25-
- livereload
26-
- ruff
27-
- sphinx
28-
- --editable .
16+
- --editable .[dev]

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,18 @@ version = "24.3"
88
authors = [{name = "Gavin Wiggins"}]
99
description = "Static site generator for GitHub Pages"
1010
readme = "README.md"
11+
requires-python = ">=3.12"
1112
dependencies = ["markdown", "jinja2", "beautifulsoup4", "livereload"]
13+
license = "MIT"
1214
classifiers = [
1315
"Programming Language :: Python :: 3",
1416
"License :: OSI Approved :: MIT License",
1517
"Operating System :: OS Independent"
1618
]
17-
license = "MIT"
1819

1920
[project.optional-dependencies]
2021
docs = ["furo", "sphinx"]
22+
dev = ["furo", "pytest", "ruff", "sphinx"]
2123

2224
[project.urls]
2325
"Homepage" = "https://github.com/wigging/genja"

tests/test_builder.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ def test_init():
1111
"""
1212
config = {
1313
"base_url": "https://example.com/testsite",
14-
"input_dir": "mdcontent",
15-
"output_dir": "website",
14+
"markdown_dir": "mdcontent",
15+
"template_dir": "templates",
16+
"output_dir": "website"
1617
}
18+
1719
builder = Builder(config)
1820
assert builder.base_url == "https://example.com/testsite"
19-
assert builder.input_dir == "mdcontent"
21+
assert builder.markdown_dir == "mdcontent"
2022
assert builder.output_dir == "website"

0 commit comments

Comments
 (0)