Skip to content

Commit 10669df

Browse files
author
Gunther Klessinger
committed
chore: Prepare release
1 parent 820196d commit 10669df

7 files changed

Lines changed: 18 additions & 22 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[docs pages_img]: https://axiros.github.io/docutools/img/badge_docs.svg
88
[gh-ci]: https://github.com/axiros/docutools/actions/workflows/ci.yml
99
[gh-ci_img]: https://github.com/axiros/docutools/actions/workflows/ci.yml/badge.svg
10-
[pkg]: https://pypi.org/project/docutools/2025.07.30/
10+
[pkg]: https://pypi.org/project/docutools/2025.08.01/
1111
[pkg_img]: https://axiros.github.io/docutools/img/badge_pypi.svg
1212
[code_style]: https://github.com/astral-sh/ruff
1313
[code_style_img]: https://axiros.github.io/docutools/img/badge_ruff.svg
File renamed without changes.

docs/img/badge_pypi.svg

Lines changed: 2 additions & 2 deletions
Loading

justfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ docs:
5353
docs-serve PORT="2222":
5454
@echo "Serving docs on http://127.0.0.1:{{PORT}}"
5555
@pkill -f "mkdocs serve.*{{PORT}}" || true
56-
uv run mkdocs serve -a "127.0.0.1:{{PORT}}"
56+
lp_eval=on_page_change uv run mkdocs serve -a "127.0.0.1:{{PORT}}"
5757

5858
# Check documentation links
5959
docs-checklinks:
@@ -86,23 +86,19 @@ doctest:
8686
new-version VERSION="":
8787
#!/usr/bin/env bash
8888
set -euo pipefail
89-
9089
VERSION_ARG="{{VERSION}}"
9190
if [ -z "$VERSION_ARG" ]; then
9291
# Use calendar versioning by default
9392
VERSION_ARG=$(date "+%Y.%m.%d")
9493
echo "Using calendar version: $VERSION_ARG"
9594
fi
96-
9795
echo "Releasing version $VERSION_ARG"
9896
sed -i '' "s/^version = .*/version = \"$VERSION_ARG\"/" pyproject.toml
9997
git commit -am "chore: Prepare release {{VERSION}}" || true
10098
git tag "{{VERSION}}"
101-
git push --tags
102-
103-
10499

105100
publish:
101+
git push --tags
106102
just clean
107103
just build
108104
uv publish --token "$(pass pypitoken)"

pyproject.toml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "docutools"
7-
version = "2025.08.01"
7+
version = "2025.08.02"
88
description = "Documentation Tools for the Mkdocs Material Framework"
99
authors = [{ name = "Gunther Klessinger", email = "gkle_ss_ing_er@gmx.de" }]
1010
license = "BSD-2-Clause"
@@ -121,17 +121,15 @@ skip_covered = false
121121
[tool.coverage.html]
122122
directory = "build/coverage/overall"
123123

124-
# Hatch configuration for package discovery
125-
[tool.hatch.build]
126-
include = ["src/lcdoc/**/*"]
127-
exclude = [
128-
"src/lcdoc/**/__pycache__",
129-
"src/lcdoc/**/*.pyc",
130-
"src/lcdoc/**/*.pyo",
131-
]
132-
124+
# Hatch configuration for package discovery
133125
[tool.hatch.build.targets.wheel]
134126
packages = ["src/lcdoc"]
127+
# Here a css and js files we need in the wheels:
128+
force-include = { "src/lcdoc/mkdocs/lp/assets" = "lcdoc/mkdocs/lp/assets" }
129+
130+
[tool.hatch.build.targets.sdist]
131+
include = ["src/lcdoc", "README.md", "LICENSE"]
132+
force-include = { "src/lcdoc/mkdocs/lp/assets" = "src/lcdoc/mkdocs/lp/assets" }
135133

136134
[dependency-groups]
137135
dev = ["matplotlib>=3.0.0", "mypy>=1.14.1"]

src/lcdoc/lp.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@
9191

9292
# ---------------------------------------------------------------------------- Utilities
9393
class Raiser:
94-
def raise_(ass):
94+
def raise_(ass, got=None):
95+
if got:
96+
print(f'Actual output: {got}', file=sys.stderr)
9597
msg = err_assert_failed % ass
9698
# app.error(msg, asserts=ass, json={'result': res})
9799
print('RAISING EXCEPTION: %s' % msg)
@@ -127,7 +129,7 @@ def f(k, v, state, **kw):
127129

128130
for a in ass:
129131
if a not in s:
130-
Raiser.raise_(ass)
132+
Raiser.raise_(ass, got=s)
131133

132134

133135
# aliases = {}

src/lcdoc/mkdocs/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ def __init__(self):
354354
r = reset_if_is_first_loaded_plugin_and_hash_changed(self)
355355
app.setup_logging(mkdlog, name='lcd')
356356
if r:
357-
d = datetime.datetime.utcnow().strftime('%Y%m%dT%H%M%SZ')
357+
d = datetime.datetime.now(datetime.UTC).strftime('%Y%m%dT%H%M%SZ')
358358
app.info('Ran reset, cleared stats', reset=r, utc=d, unix=int(time.time()))
359359
Stats[clsn(self)] = {}
360360
PageStats[clsn(self)] = {}

0 commit comments

Comments
 (0)