Skip to content

Commit 5d65260

Browse files
committed
Prep 0.2.0
1 parent c4b10af commit 5d65260

3 files changed

Lines changed: 349 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,20 +126,25 @@ Sync reads `CITATION.cff` version and `date-released`
126126
and updates `pyproject.toml` fallback-version.
127127

128128
```shell
129+
uv sync --extra dev --extra docs --upgrade
129130
uv run python -m se_manifest_schema sync-version
130131
uv run python -m se_manifest_schema validate --strict
131132
git add -A
132133
uvx pre-commit run --all-files
133134
uv run python -m pyright
134135
uv run python -m pytest
135136
uv run python -m zensical build
137+
138+
uv run python -m build
139+
uv run python -m twine check dist/*
140+
uv run python -c "import pathlib, zipfile; wheels=list(pathlib.Path('dist').glob('*.whl')); assert wheels, 'No wheel found'; wheel=wheels[-1]; names=zipfile.ZipFile(wheel).namelist(); assert any(n == 'se_admin/__init__.py' for n in names); assert any(n.endswith('.dist-info/entry_points.txt') for n in names); print([n for n in names if n == 'se_admin/__init__.py' or n.endswith('.dist-info/entry_points.txt')])"
136141
```
137142

138143
### Task 4. Commit, tag, push
139144

140145
```shell
141146
git add -A
142-
git commit -m "Release X.Y.Z"
147+
git commit -m "Prep X.Y.Z"
143148
git push -u origin main
144149
```
145150

pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,35 @@ dependencies = [
2626
dev = [
2727
# REQ.DEV.DEPS: External packages used for linting, testing, type checking, etc.
2828
"build", # WHY: build tool required for packaging and publishing.
29+
"packaging", # WHY: Required by validate-pyproject for dependency and license validation.
2930
"pre-commit",
3031
"pyright",
3132
"pytest",
3233
"pytest-cov",
3334
"ruff",
35+
"twine", # WHY: Required for artifact validation (twine check dist/*).
3436
]
3537

3638
docs = [
3739
# REQ.DOCS.DEPS: External packages used to generate project documentation.
3840
"zensical==0.0.37", # WHY: Link resolution fails with newer versions; pinning to a known working version.
3941
]
4042

43+
[project.scripts]
44+
se-admin = "se_admin.cli:main"
45+
# WHY: Defines the CLI entry point. Only one:
46+
# one tool, multiple subcommands is clean and
47+
# matches how tools like git and uv work
48+
49+
[project.urls]
50+
Homepage = "https://github.com/structural-explainability/se-admin"
51+
Repository = "https://github.com/structural-explainability/se-admin"
52+
Documentation = "https://structural-explainability.github.io/se-admin/"
53+
Issues = "https://github.com/structural-explainability/se-admin/issues"
54+
Changelog = "https://github.com/structural-explainability/se-admin/blob/main/CHANGELOG.md"
55+
56+
57+
4158
# ============================================================
4259
# SECTION 2: TOOL CONFIGURATION (Professional basics)
4360
# ============================================================

0 commit comments

Comments
 (0)