File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,8 +77,13 @@ clean-lp:
7777build :
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
111112alias t := test
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44
55[project ]
66name = " docutools"
7- version = " 2025.07.31 "
7+ version = " 2025.08.01 "
88description = " Documentation Tools for the Mkdocs Material Framework"
99authors = [{ name = " Gunther Klessinger" , email = " gkle_ss_ing_er@gmx.de" }]
1010license = " 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 ]
129136packages = [" src/lcdoc" ]
You can’t perform that action at this time.
0 commit comments