Skip to content

Commit 0ebcdf7

Browse files
committed
Port render-engine CLI from Typer to Click.
0 parents  commit 0ebcdf7

File tree

13 files changed

+2839
-0
lines changed

13 files changed

+2839
-0
lines changed

.gitignore

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
tests/test_path
2+
tests/fakepath
3+
.envrc
4+
5+
# Byte-compiled / optimized / DLL files
6+
__pycache__/
7+
*.py[cod]
8+
*$py.class
9+
10+
# C extensions
11+
*.so
12+
13+
# Distribution / packaging
14+
.Python
15+
build/
16+
develop-eggs/
17+
dist/
18+
downloads/
19+
eggs/
20+
.eggs/
21+
lib/
22+
lib64/
23+
parts/
24+
sdist/
25+
var/
26+
wheels/
27+
share/python-wheels/
28+
*.egg-info/
29+
.installed.cfg
30+
*.egg
31+
MANIFEST
32+
33+
# PyInstaller
34+
# Usually these files are written by a python script from a template
35+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
36+
*.manifest
37+
*.spec
38+
39+
# Installer logs
40+
pip-log.txt
41+
pip-delete-this-directory.txt
42+
43+
# Unit test / coverage reports
44+
htmlcov/
45+
.tox/
46+
.nox/
47+
.coverage
48+
.coverage.*
49+
.cache
50+
nosetests.xml
51+
coverage.xml
52+
*.cover
53+
*.py,cover
54+
.hypothesis/
55+
.pytest_cache/
56+
cover/
57+
58+
# Translations
59+
*.mo
60+
*.pot
61+
62+
# Django stuff:
63+
*.log
64+
local_settings.py
65+
db.sqlite3
66+
db.sqlite3-journal
67+
68+
# Flask stuff:
69+
instance/
70+
.webassets-cache
71+
72+
# Scrapy stuff:
73+
.scrapy
74+
75+
# Sphinx documentation
76+
docs/_build/
77+
78+
# PyBuilder
79+
.pybuilder/
80+
target/
81+
82+
# Jupyter Notebook
83+
.ipynb_checkpoints
84+
85+
# IPython
86+
profile_default/
87+
ipython_config.py
88+
89+
# pyenv
90+
# For a library or package, you might want to ignore these files since the code is
91+
# intended to run in multiple environments; otherwise, check them in:
92+
# .python-version
93+
94+
# pipenv
95+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
96+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
97+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
98+
# install all needed dependencies.
99+
#Pipfile.lock
100+
101+
# poetry
102+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
103+
# This is especially recommended for binary packages to ensure reproducibility, and is more
104+
# commonly ignored for libraries.
105+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
106+
#poetry.lock
107+
108+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
109+
__pypackages__/
110+
111+
# Celery stuff
112+
celerybeat-schedule
113+
celerybeat.pid
114+
115+
# SageMath parsed files
116+
*.sage.py
117+
118+
# Environments
119+
.env
120+
.venv
121+
env/
122+
venv/
123+
ENV/
124+
env.bak/
125+
venv.bak/
126+
127+
# Spyder project settings
128+
.spyderproject
129+
.spyproject
130+
131+
# Rope project settings
132+
.ropeproject
133+
134+
# mkdocs documentation
135+
/site
136+
137+
# mypy
138+
.mypy_cache/
139+
.dmypy.json
140+
dmypy.json
141+
142+
# Pyre type checker
143+
.pyre/
144+
145+
# pytype static type analyzer
146+
.pytype/
147+
148+
# Cython debug symbols
149+
cython_debug/
150+
151+
# PyCharm
152+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
153+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
154+
# and can be added to the global gitignore or merged into this file. For a more nuclear
155+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
156+
.idea/
157+
poetry.lock
158+
159+
docs/site
160+
.vscode
161+
162+
tools
163+
164+
# So we can have a site that won't get nuked or committed by accident
165+
untitled-site/
166+
167+
.DS_Store
168+
.python-version

README.md

Whitespace-only changes.

pyproject.toml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
[project]
2+
name = "render-engine-cli"
3+
dynamic = ["version"]
4+
#version = "2025.6.1b1"
5+
description = "Command line tool for the Render Engine static site generator"
6+
readme = "README.md"
7+
requires-python = ">=3.10"
8+
dependencies = [
9+
"click>=8.2.1",
10+
"cookiecutter>=2.6.0",
11+
"render-engine>=2025.5.1",
12+
"rich>=14.0.0",
13+
"toml>=0.10.2",
14+
"watchfiles>=1.1.0",
15+
]
16+
17+
[dependency-groups]
18+
dev = [
19+
"ephemeral-port-reserve>=1.1.4",
20+
"httpx>=0.28.1",
21+
"mypy>=1.16.1",
22+
"pre-commit>=4.2.0",
23+
"pytest>=8.4.1",
24+
"pytest-cov>=6.2.1",
25+
"pytest-mock>=3.14.1",
26+
"ruff>=0.12.0",
27+
"setuptools>=80.9.0",
28+
"setuptools-scm>=8.3.1",
29+
"wheel>=0.45.1",
30+
]
31+
32+
[project.urls]
33+
homepage = "https://github.com/render-engine/render-engine-cli/"
34+
repository = "https://github.com/render-engine/render-engine/"
35+
documentation = "https://render-engine.readthedocs.io/en/latest/"
36+
37+
[project.scripts]
38+
render-engine = "render_engine_cli:cli"
39+
40+
[tool.pytest.ini_options]
41+
pythonpath = ["src"]
42+
addopts = ["--cov=src", "--cov-report=term-missing", "-ra", "-q"]
43+
44+
[tool.semantic_release]
45+
version_toml = "pyproject.toml:project.version"
46+
branch = "main"
47+
48+
[tool.ruff]
49+
line-length = 120
50+
indent-width = 4
51+
target-version = "py310"
52+
53+
[tool.ruff.lint]
54+
select = ["E", "F", "I", "UP"]
55+
56+
[build-system]
57+
requires = ["setuptools", "setuptools_scm", "wheel"]
58+
build-backend = "setuptools.build_meta"
59+
60+

src/render_engine_cli/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)