wrap up conversion to SSG

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
Brian S. Stephan 2025-03-16 21:49:56 -05:00
parent 7639e0738e
commit 60816dda3f
Signed by: bss
GPG Key ID: 3DE06D3180895FCB
5 changed files with 22 additions and 15 deletions

View File

@ -12,6 +12,15 @@ from termcolor import cprint
from incorporealcms.config import Config
# dynamically generate version number
try:
# packaged/pip install -e . value
from ._version import version as __version__
except ImportError:
# local clone value
from setuptools_scm import get_version
__version__ = get_version(root='..', relative_to=__file__)
def init_instance(instance_path: str, extra_config: dict = None):
"""Create the instance context, with allowances for customizing path and test settings."""

View File

@ -11,7 +11,7 @@ import tempfile
from termcolor import cprint
from incorporealcms import init_instance
from incorporealcms import __version__, init_instance
from incorporealcms.markdown import handle_markdown_file_path
@ -176,6 +176,7 @@ def build():
)
args = parser.parse_args()
cprint(f"incorporealcms-build v{__version__}", 'green')
# check output path before doing work
if not os.path.isdir(args.output_dir):
# if it doesn't exist, great, we'll just move the temporary dir later;

View File

@ -43,7 +43,7 @@ click==8.1.8
# typer
colorama==0.4.6
# via tox
coverage[toml]==7.6.12
coverage[toml]==7.7.0
# via pytest-cov
cryptography==44.0.2
# via
@ -112,7 +112,7 @@ jeepney==0.9.0
# via
# keyring
# secretstorage
jinja2==3.1.3
jinja2==3.1.6
# via
# incorporeal-cms (pyproject.toml)
# reuse
@ -123,13 +123,13 @@ keyring==25.6.0
# via twine
license-expression==30.4.1
# via reuse
lxml==5.2.1
lxml==5.3.1
# via feedgen
markdown==3.6
markdown==3.7
# via incorporeal-cms (pyproject.toml)
markdown-it-py==3.0.0
# via rich
markupsafe==2.1.5
markupsafe==3.0.2
# via jinja2
marshmallow==3.26.1
# via safety
@ -252,7 +252,7 @@ setuptools-scm==8.2.0
# via incorporeal-cms (pyproject.toml)
shellingham==1.5.4
# via typer
six==1.16.0
six==1.17.0
# via python-dateutil
snowballstemmer==2.2.0
# via pydocstyle

View File

@ -6,17 +6,17 @@
#
feedgen==1.0.0
# via incorporeal-cms (pyproject.toml)
jinja2==3.1.3
jinja2==3.1.6
# via incorporeal-cms (pyproject.toml)
lxml==5.2.1
lxml==5.3.1
# via feedgen
markdown==3.6
markdown==3.7
# via incorporeal-cms (pyproject.toml)
markupsafe==2.1.5
markupsafe==3.0.2
# via jinja2
python-dateutil==2.9.0.post0
# via feedgen
six==1.16.0
six==1.17.0
# via python-dateutil
termcolor==2.5.0
# via incorporeal-cms (pyproject.toml)

View File

@ -74,6 +74,3 @@ source =
[coverage:run]
branch = True
omit =
**/_version.py