Skip to content

Commit 679e5d8

Browse files
author
Gunther Klessinger
committed
chore: Prepare release 2025.08.01
1 parent e5d7997 commit 679e5d8

2 files changed

Lines changed: 22 additions & 14 deletions

File tree

justfile

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,13 @@ clean-lp:
7777
build:
7878
uv build
7979

80-
# Release a new version
81-
release VERSION="":
80+
# Run tests and lp doc tests:
81+
doctest:
82+
just test
83+
just docs
84+
85+
# Calcs a version, adds to pyproject, git tags, calls publish <version>
86+
new-version VERSION="":
8287
#!/usr/bin/env bash
8388
set -euo pipefail
8489

@@ -91,21 +96,17 @@ release VERSION="":
9196

9297
echo "Releasing version $VERSION_ARG"
9398
sed -i '' "s/^version = .*/version = \"$VERSION_ARG\"/" pyproject.toml
99+
git commit -am "chore: Prepare release {{VERSION}}" || true
100+
git tag "{{VERSION}}"
101+
git push --tags
102+
94103
just publish "{{VERSION}}"
95104

96-
# Run tests and lp doc tests:
97-
doctest:
98-
just test
99-
just docs
100105

101-
publish VERSION:
102-
echo "Publishing {{VERSION}}."
106+
publish:
103107
just clean
104108
just build
105-
git commit -am "chore: Prepare release {{VERSION}}" || true
106-
git tag "{{VERSION}}"
107-
git push --tags
108-
uv publish dist/*
109+
uv publish --token "$(pass pypitoken)"
109110

110111
# Development shortcuts
111112
alias t := test

pyproject.toml

Lines changed: 9 additions & 2 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.07.31"
7+
version = "2025.08.01"
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"
@@ -123,7 +123,14 @@ directory = "build/coverage/overall"
123123

124124
# Hatch configuration for package discovery
125125
[tool.hatch.build]
126-
include = ["src/lcdoc/**/*.py"]
126+
include = [
127+
"src/lcdoc/**/*",
128+
]
129+
exclude = [
130+
"src/lcdoc/**/__pycache__",
131+
"src/lcdoc/**/*.pyc",
132+
"src/lcdoc/**/*.pyo",
133+
]
127134

128135
[tool.hatch.build.targets.wheel]
129136
packages = ["src/lcdoc"]

0 commit comments

Comments
 (0)