mozbridge-cli 0.1.0__tar.gz → 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/PKG-INFO +1 -1
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/pyproject.toml +1 -1
- mozbridge_cli-0.2.0/scripts/release.sh +69 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/.gitignore +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/README.md +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/docs/commands.md +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/src/mozbridge_cli/__init__.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/src/mozbridge_cli/__main__.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/src/mozbridge_cli/api.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/src/mozbridge_cli/auth.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/src/mozbridge_cli/build.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/src/mozbridge_cli/compose.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/src/mozbridge_cli/config.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/src/mozbridge_cli/link.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/src/mozbridge_cli/local_build.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/src/mozbridge_cli/main.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/src/mozbridge_cli/runtime_secrets.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/src/mozbridge_cli/session.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/tests/conftest.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/tests/test_build.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/tests/test_ci_token_auth.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/tests/test_compose.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/tests/test_diff.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/tests/test_link.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/tests/test_local_build.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/tests/test_login.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/tests/test_login_cli.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/tests/test_logout.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/tests/test_publish.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/tests/test_publish_local.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/tests/test_publish_multi_component.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/tests/test_refresh.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/tests/test_rollback.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/tests/test_runtime_secrets.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/tests/test_session_permissions.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/tests/test_status.py +0 -0
- {mozbridge_cli-0.1.0 → mozbridge_cli-0.2.0}/tests/test_whoami.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: mozbridge-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: Command-line client for the Mozbridge deployment platform: SSO login, build, publish, status, and rollback for any project hosted on Mozbridge.
|
|
5
5
|
Project-URL: Homepage, https://mozbridge.com
|
|
6
6
|
Project-URL: Documentation, https://github.com/jessin01/mozbridge/blob/main/cli/docs/commands.md
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "mozbridge-cli"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.2.0"
|
|
8
8
|
description = "Command-line client for the Mozbridge deployment platform: SSO login, build, publish, status, and rollback for any project hosted on Mozbridge."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Bump mozbridge-cli's version, build, and print the exact publish command.
|
|
3
|
+
# Mirrors cruxhive-mcp's own proven release checklist (Development/cruxhive/
|
|
4
|
+
# CLAUDE.md) — same build backend (hatchling), same publish tool (uv) —
|
|
5
|
+
# rather than inventing a separate convention for a sibling package in the
|
|
6
|
+
# same workspace.
|
|
7
|
+
#
|
|
8
|
+
# Does NOT publish. The upload step stays a deliberate, separate, human-run
|
|
9
|
+
# action — same reasoning as cruxhive's own checklist keeps it manual.
|
|
10
|
+
set -euo pipefail
|
|
11
|
+
|
|
12
|
+
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
13
|
+
PYPROJECT="$ROOT/pyproject.toml"
|
|
14
|
+
|
|
15
|
+
usage() {
|
|
16
|
+
echo "Usage: $0 [--patch|--minor|--major] [--dry-run]" >&2
|
|
17
|
+
echo " Default bump: patch" >&2
|
|
18
|
+
exit 1
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
BUMP="patch"
|
|
22
|
+
DRY_RUN=0
|
|
23
|
+
for arg in "$@"; do
|
|
24
|
+
case "$arg" in
|
|
25
|
+
--patch) BUMP="patch" ;;
|
|
26
|
+
--minor) BUMP="minor" ;;
|
|
27
|
+
--major) BUMP="major" ;;
|
|
28
|
+
--dry-run) DRY_RUN=1 ;;
|
|
29
|
+
-h|--help) usage ;;
|
|
30
|
+
*) echo "Unknown argument: $arg" >&2; usage ;;
|
|
31
|
+
esac
|
|
32
|
+
done
|
|
33
|
+
|
|
34
|
+
CURRENT=$(grep -m1 '^version' "$PYPROJECT" | sed -E 's/version = "(.*)"/\1/')
|
|
35
|
+
IFS='.' read -r MAJOR MINOR PATCH <<< "$CURRENT"
|
|
36
|
+
|
|
37
|
+
case "$BUMP" in
|
|
38
|
+
patch) PATCH=$((PATCH + 1)) ;;
|
|
39
|
+
minor) MINOR=$((MINOR + 1)); PATCH=0 ;;
|
|
40
|
+
major) MAJOR=$((MAJOR + 1)); MINOR=0; PATCH=0 ;;
|
|
41
|
+
esac
|
|
42
|
+
|
|
43
|
+
NEW="${MAJOR}.${MINOR}.${PATCH}"
|
|
44
|
+
|
|
45
|
+
echo "→ ${CURRENT} → ${NEW} (${BUMP})"
|
|
46
|
+
|
|
47
|
+
if [ "$DRY_RUN" = "1" ]; then
|
|
48
|
+
echo "--dry-run: not writing pyproject.toml, not building."
|
|
49
|
+
exit 0
|
|
50
|
+
fi
|
|
51
|
+
|
|
52
|
+
sed -i.bak -E "s/^version = \".*\"/version = \"${NEW}\"/" "$PYPROJECT"
|
|
53
|
+
rm -f "$PYPROJECT.bak"
|
|
54
|
+
|
|
55
|
+
echo "→ Building..."
|
|
56
|
+
rm -rf "$ROOT/dist"
|
|
57
|
+
(cd "$ROOT" && uv build)
|
|
58
|
+
|
|
59
|
+
echo ""
|
|
60
|
+
echo "✓ ${NEW} built. Review the version bump, then:"
|
|
61
|
+
echo ""
|
|
62
|
+
echo " git add cli/pyproject.toml"
|
|
63
|
+
echo " git commit -m \"chore(cli): release v${NEW}\""
|
|
64
|
+
echo " git push"
|
|
65
|
+
echo " cd cli && uv publish --token \"\$(awk '/password/{print \$3}' ~/.pypirc)\""
|
|
66
|
+
echo ""
|
|
67
|
+
echo "The publish step is deliberately not automated here — same reasoning"
|
|
68
|
+
echo "as cruxhive-mcp's own release checklist: it's a real, public,"
|
|
69
|
+
echo "largely-permanent action."
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|