urun-cli 0.7.8__tar.gz → 0.8.1__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.
- {urun_cli-0.7.8 → urun_cli-0.8.1}/CHANGELOG.md +44 -3
- urun_cli-0.8.1/PKG-INFO +159 -0
- urun_cli-0.8.1/README.md +138 -0
- {urun_cli-0.7.8 → urun_cli-0.8.1}/SECURITY.md +0 -5
- {urun_cli-0.7.8 → urun_cli-0.8.1}/hatch_build.py +5 -45
- {urun_cli-0.7.8 → urun_cli-0.8.1}/pyproject.toml +16 -19
- urun_cli-0.8.1/src/urun/_bin/README.md +4 -0
- {urun_cli-0.7.8 → urun_cli-0.8.1}/src/urun/api.py +50 -45
- urun_cli-0.8.1/src/urun/cli.py +1090 -0
- {urun_cli-0.7.8 → urun_cli-0.8.1}/src/urun/config.py +0 -9
- {urun_cli-0.7.8 → urun_cli-0.8.1}/src/urun/errors.py +2 -2
- urun_cli-0.8.1/src/urun/feature_flags.py +121 -0
- {urun_cli-0.7.8 → urun_cli-0.8.1}/src/urun/retry.py +0 -6
- urun_cli-0.8.1/src/urun/term.py +46 -0
- urun_cli-0.7.8/.gitignore +0 -26
- urun_cli-0.7.8/PKG-INFO +0 -659
- urun_cli-0.7.8/README.md +0 -634
- urun_cli-0.7.8/src/urun/_bin/README.md +0 -41
- urun_cli-0.7.8/src/urun/buildlogs.py +0 -689
- urun_cli-0.7.8/src/urun/catalog.py +0 -1462
- urun_cli-0.7.8/src/urun/cli.py +0 -6836
- urun_cli-0.7.8/src/urun/client_tokens.py +0 -657
- urun_cli-0.7.8/src/urun/deps.py +0 -2111
- urun_cli-0.7.8/src/urun/dev.py +0 -2144
- urun_cli-0.7.8/src/urun/devconsole.py +0 -269
- urun_cli-0.7.8/src/urun/devstream.py +0 -652
- urun_cli-0.7.8/src/urun/discovery.py +0 -1585
- urun_cli-0.7.8/src/urun/fleet.py +0 -708
- urun_cli-0.7.8/src/urun/frontend_launch.py +0 -1634
- urun_cli-0.7.8/src/urun/hub_builds.py +0 -328
- urun_cli-0.7.8/src/urun/kubectl_plugin.py +0 -688
- urun_cli-0.7.8/src/urun/launch_auth.py +0 -470
- urun_cli-0.7.8/src/urun/nodes.py +0 -121
- urun_cli-0.7.8/src/urun/openai_proxy_bin.py +0 -179
- urun_cli-0.7.8/src/urun/repo_deps.py +0 -696
- urun_cli-0.7.8/src/urun/reserve.py +0 -156
- urun_cli-0.7.8/src/urun/rust.py +0 -1501
- urun_cli-0.7.8/src/urun/scratch.py +0 -108
- urun_cli-0.7.8/src/urun/serve.py +0 -1141
- {urun_cli-0.7.8 → urun_cli-0.8.1}/LICENSE +0 -0
- {urun_cli-0.7.8 → urun_cli-0.8.1}/src/urun/__init__.py +0 -0
- {urun_cli-0.7.8 → urun_cli-0.8.1}/src/urun/manifest.py +0 -0
- {urun_cli-0.7.8 → urun_cli-0.8.1}/src/urun/runtime_health.py +0 -0
|
@@ -1,4 +1,40 @@
|
|
|
1
|
-
##
|
|
1
|
+
## 0.8.1
|
|
2
|
+
|
|
3
|
+
Release-engineering release (ENG-662); the CLI surface is unchanged from
|
|
4
|
+
0.8.0 — the flag-gated MVP launch surface. What changed is how release
|
|
5
|
+
artifacts are built and published:
|
|
6
|
+
|
|
7
|
+
- Published artifacts are generated from the launch export, not the raw
|
|
8
|
+
working tree: `scripts/gen_launch_export.py` derives the strip config
|
|
9
|
+
from the `ff-strip` markers and the flag registry, and copybarista
|
|
10
|
+
produces the release source tree. Code gated off at launch is now
|
|
11
|
+
stripped from the sdist and the wheel PyPI serves, not merely
|
|
12
|
+
unregistered (the 0.8.0 wheel still carried it).
|
|
13
|
+
- `release.yaml` publishes from the same lane CI validates on every push
|
|
14
|
+
(generate, export, leak-check, `uv build`, then `verify_wheel.py
|
|
15
|
+
--expect-pure --expect-launch`), so a release can no longer ship an
|
|
16
|
+
artifact the CI lane has not proven. The platform-wheel legs run
|
|
17
|
+
exactly when the flag registry says the release ships the
|
|
18
|
+
vendored-binary loader; at this launch state the release publishes the
|
|
19
|
+
sdist and the pure wheel only.
|
|
20
|
+
|
|
21
|
+
## 0.8.0
|
|
22
|
+
|
|
23
|
+
MVP launch release (URU-673). The CLI ships only its launch surface, gated by
|
|
24
|
+
release feature flags (`src/urun/feature_flags.py`, conventions in
|
|
25
|
+
[FLAGS.md](FLAGS.md)): `login`, `org`, `account`
|
|
26
|
+
(`org`/`usage`/`credit`/`quota`), `member`, `api-key`, `credit-ledger`,
|
|
27
|
+
`feedback`, and `open billing` register; every other command stays in the
|
|
28
|
+
tree but unregistered, failing exactly like an unknown command (argparse's
|
|
29
|
+
own invalid-choice error, exit 2 — no "not available" text, no flag names,
|
|
30
|
+
and no mention of a gated surface in any launch `--help` or in `login`'s
|
|
31
|
+
output). Hidden means nonexistent. Re-introducing a capability is a flag
|
|
32
|
+
flip in `feature_flags.py` plus the launch-pin update in
|
|
33
|
+
`tests/test_feature_flags.py` (see FLAGS.md, "Re-introducing a
|
|
34
|
+
capability") — no re-implementation.
|
|
35
|
+
|
|
36
|
+
Also in this release's code, but gated OFF in the launch surface (flipping
|
|
37
|
+
their flags re-introduces them):
|
|
2
38
|
|
|
3
39
|
- `urun release promote <release_id> [--environment main]` — make an existing
|
|
4
40
|
release current again (clean rollback, no marker commits). Server side it
|
|
@@ -13,8 +49,13 @@
|
|
|
13
49
|
import it came through, and the fix — previously it silently shipped an
|
|
14
50
|
EMPTY manifest (no python pins, no files) and the app's boot self-test died
|
|
15
51
|
with `No module named ...` after fleet rollout (sense, 2026-10-27/28).
|
|
16
|
-
- `kubectl urun` — a kubectl plugin (`
|
|
17
|
-
`urun`
|
|
52
|
+
- `kubectl urun` — a kubectl plugin (the `urun.kubectl_plugin` module ships
|
|
53
|
+
in the wheel; the `kubectl-urun` entry point is NOT installed in this
|
|
54
|
+
release — restoring it takes the `feat-byo-nodes` flip plus re-registering
|
|
55
|
+
the entry point in `[project.scripts]` and updating
|
|
56
|
+
`test_launch_wheel_ships_no_kubectl_urun_entry_point`, per FLAGS.md's
|
|
57
|
+
re-introduction procedure) with four verbs over the
|
|
58
|
+
`gpu.urun.sh/v1alpha1` GPUWorker surface:
|
|
18
59
|
`logs` (the `logs.urun.sh/v1` log subresource, with `-f` follow
|
|
19
60
|
passthrough, `--since`, `--tail`, `-s <service>`), `cordon`/`uncordon`
|
|
20
61
|
(`spec.unschedulable`), `drain` (cordon, then wait for the `Draining`
|
urun_cli-0.8.1/PKG-INFO
ADDED
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: urun-cli
|
|
3
|
+
Version: 0.8.1
|
|
4
|
+
Summary: CLI for the urun platform — login, billing & usage. More capabilities coming soon.
|
|
5
|
+
Project-URL: Homepage, https://urun.sh
|
|
6
|
+
Project-URL: Repository, https://github.com/urun-sh/urun-cli
|
|
7
|
+
Project-URL: Issues, https://github.com/urun-sh/urun-cli/issues
|
|
8
|
+
Author: urun
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: cli,urun
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Requires-Python: >=3.11
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
|
|
22
|
+
# urun CLI
|
|
23
|
+
|
|
24
|
+
Command-line access to your urun org: log in, inspect billing, usage, and
|
|
25
|
+
cost information, and jump to the billing console. More capabilities are on
|
|
26
|
+
the way — see [What's next](#whats-next).
|
|
27
|
+
|
|
28
|
+
[](https://pypi.org/project/urun-cli/)
|
|
29
|
+
[](https://pypi.org/project/urun-cli/)
|
|
30
|
+
|
|
31
|
+
## Install
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
uv tool install urun-cli
|
|
35
|
+
# or
|
|
36
|
+
pip install urun-cli
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
The package installs the `urun` command:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
urun --version
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
For one-off `uvx` usage:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
uvx --from urun-cli urun --version
|
|
49
|
+
# or the package-matching command alias
|
|
50
|
+
uvx urun-cli --version
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Log in
|
|
54
|
+
|
|
55
|
+
Save an org-scoped API key locally with `urun login`:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
urun login
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
If `URUN_API_KEY` is not already set, `urun login` opens the urun console API
|
|
62
|
+
keys page, prompts you to paste the generated `urun_sk_...` key, verifies it
|
|
63
|
+
with the urun API, and stores credentials for later commands.
|
|
64
|
+
|
|
65
|
+
If you already have a key, you can pass it directly:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
urun login --api-key urun_sk_<secret>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
For CI or one-off commands, you can use the environment variable instead:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
export URUN_API_KEY=urun_sk_<secret>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Billing & usage
|
|
78
|
+
|
|
79
|
+
Every command is org-scoped via your API key.
|
|
80
|
+
|
|
81
|
+
Your org identity (use `--id` in scripts: `ORG=$(urun org --id)`):
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
urun org
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Usage summary and credit balance:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
urun account usage
|
|
91
|
+
urun account credit
|
|
92
|
+
urun account quota
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
The credit ledger — every credit grant and charge to your org, newest first:
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
urun credit-ledger list
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Org config, members, and API keys:
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
urun account org
|
|
105
|
+
urun member list
|
|
106
|
+
urun api-key list
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Open the billing page in the urun console:
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
urun open billing
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
`urun feedback` raises and tracks issues with the urun team from your
|
|
116
|
+
terminal.
|
|
117
|
+
|
|
118
|
+
## Common options
|
|
119
|
+
|
|
120
|
+
| Option | Description |
|
|
121
|
+
| --- | --- |
|
|
122
|
+
| `--api-url` | Override the API URL; defaults to `URUN_API_URL`, saved login credentials, or `https://api.urun.sh/v1`. |
|
|
123
|
+
| `--api-key` | API key; defaults to `URUN_API_KEY` or saved login credentials. |
|
|
124
|
+
| `--json` | Machine-readable output, where supported. |
|
|
125
|
+
|
|
126
|
+
## Troubleshooting
|
|
127
|
+
|
|
128
|
+
| Error | Fix |
|
|
129
|
+
| --- | --- |
|
|
130
|
+
| `missing API key` | Run `urun login`, set `URUN_API_KEY`, or pass `--api-key`. |
|
|
131
|
+
| `invalid API key format` | Use `urun_<32 lowercase hex chars>`. |
|
|
132
|
+
|
|
133
|
+
## What's next
|
|
134
|
+
|
|
135
|
+
This release focuses on account access: login, billing, usage, and cost
|
|
136
|
+
information.
|
|
137
|
+
## Development
|
|
138
|
+
|
|
139
|
+
Contributing and test instructions are in [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
140
|
+
The CLI gates unreleased surfaces behind release feature flags — see
|
|
141
|
+
[FLAGS.md](FLAGS.md) for the conventions and how to exercise them from a
|
|
142
|
+
source checkout.
|
|
143
|
+
|
|
144
|
+
This repo has a Nix/direnv/devcontainer baseline:
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
direnv allow
|
|
148
|
+
just sync
|
|
149
|
+
just check
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
Use VS Code Dev Containers to open the repository with the same toolchain in a
|
|
153
|
+
container. Copy `devcontainer.env.example` to `.devcontainer.env` if you need
|
|
154
|
+
to pass local git identity or other non-secret development settings into the
|
|
155
|
+
container.
|
|
156
|
+
|
|
157
|
+
## License
|
|
158
|
+
|
|
159
|
+
MIT.
|
urun_cli-0.8.1/README.md
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# urun CLI
|
|
2
|
+
|
|
3
|
+
Command-line access to your urun org: log in, inspect billing, usage, and
|
|
4
|
+
cost information, and jump to the billing console. More capabilities are on
|
|
5
|
+
the way — see [What's next](#whats-next).
|
|
6
|
+
|
|
7
|
+
[](https://pypi.org/project/urun-cli/)
|
|
8
|
+
[](https://pypi.org/project/urun-cli/)
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
uv tool install urun-cli
|
|
14
|
+
# or
|
|
15
|
+
pip install urun-cli
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
The package installs the `urun` command:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
urun --version
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
For one-off `uvx` usage:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
uvx --from urun-cli urun --version
|
|
28
|
+
# or the package-matching command alias
|
|
29
|
+
uvx urun-cli --version
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Log in
|
|
33
|
+
|
|
34
|
+
Save an org-scoped API key locally with `urun login`:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
urun login
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
If `URUN_API_KEY` is not already set, `urun login` opens the urun console API
|
|
41
|
+
keys page, prompts you to paste the generated `urun_sk_...` key, verifies it
|
|
42
|
+
with the urun API, and stores credentials for later commands.
|
|
43
|
+
|
|
44
|
+
If you already have a key, you can pass it directly:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
urun login --api-key urun_sk_<secret>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
For CI or one-off commands, you can use the environment variable instead:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
export URUN_API_KEY=urun_sk_<secret>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Billing & usage
|
|
57
|
+
|
|
58
|
+
Every command is org-scoped via your API key.
|
|
59
|
+
|
|
60
|
+
Your org identity (use `--id` in scripts: `ORG=$(urun org --id)`):
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
urun org
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Usage summary and credit balance:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
urun account usage
|
|
70
|
+
urun account credit
|
|
71
|
+
urun account quota
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
The credit ledger — every credit grant and charge to your org, newest first:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
urun credit-ledger list
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Org config, members, and API keys:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
urun account org
|
|
84
|
+
urun member list
|
|
85
|
+
urun api-key list
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Open the billing page in the urun console:
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
urun open billing
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
`urun feedback` raises and tracks issues with the urun team from your
|
|
95
|
+
terminal.
|
|
96
|
+
|
|
97
|
+
## Common options
|
|
98
|
+
|
|
99
|
+
| Option | Description |
|
|
100
|
+
| --- | --- |
|
|
101
|
+
| `--api-url` | Override the API URL; defaults to `URUN_API_URL`, saved login credentials, or `https://api.urun.sh/v1`. |
|
|
102
|
+
| `--api-key` | API key; defaults to `URUN_API_KEY` or saved login credentials. |
|
|
103
|
+
| `--json` | Machine-readable output, where supported. |
|
|
104
|
+
|
|
105
|
+
## Troubleshooting
|
|
106
|
+
|
|
107
|
+
| Error | Fix |
|
|
108
|
+
| --- | --- |
|
|
109
|
+
| `missing API key` | Run `urun login`, set `URUN_API_KEY`, or pass `--api-key`. |
|
|
110
|
+
| `invalid API key format` | Use `urun_<32 lowercase hex chars>`. |
|
|
111
|
+
|
|
112
|
+
## What's next
|
|
113
|
+
|
|
114
|
+
This release focuses on account access: login, billing, usage, and cost
|
|
115
|
+
information.
|
|
116
|
+
## Development
|
|
117
|
+
|
|
118
|
+
Contributing and test instructions are in [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
119
|
+
The CLI gates unreleased surfaces behind release feature flags — see
|
|
120
|
+
[FLAGS.md](FLAGS.md) for the conventions and how to exercise them from a
|
|
121
|
+
source checkout.
|
|
122
|
+
|
|
123
|
+
This repo has a Nix/direnv/devcontainer baseline:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
direnv allow
|
|
127
|
+
just sync
|
|
128
|
+
just check
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Use VS Code Dev Containers to open the repository with the same toolchain in a
|
|
132
|
+
container. Copy `devcontainer.env.example` to `.devcontainer.env` if you need
|
|
133
|
+
to pass local git identity or other non-secret development settings into the
|
|
134
|
+
container.
|
|
135
|
+
|
|
136
|
+
## License
|
|
137
|
+
|
|
138
|
+
MIT.
|
|
@@ -10,8 +10,3 @@ Please report suspected vulnerabilities privately to the urun maintainers. Do no
|
|
|
10
10
|
- Do not commit real API keys or `.env` files.
|
|
11
11
|
- The CLI validates the `urun_<32 lowercase hex>` shape locally, but the server remains authoritative for auth and revocation.
|
|
12
12
|
|
|
13
|
-
## Source upload behavior
|
|
14
|
-
|
|
15
|
-
`urun deploy` uploads selected source files and dependency declaration files to urun via presigned object-store URLs. Review `.urunignore` before deploying sensitive repositories.
|
|
16
|
-
|
|
17
|
-
The CLI enforces project-root containment for entrypoints and dependency files. Symlinks are resolved before that containment check.
|
|
@@ -1,50 +1,10 @@
|
|
|
1
|
-
"""Hatch build hook: platform-tag wheels that carry
|
|
1
|
+
"""Hatch build hook: platform-tag wheels that carry a vendored native binary.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
executable, so a wheel that ships it must NOT claim ``py3-none-any`` — pip
|
|
3
|
+
A wheel that ships a native executable must NOT claim ``py3-none-any`` — pip
|
|
5
4
|
would happily install a mac binary on linux. This hook makes the wheel tag
|
|
6
|
-
tell the truth, both ways
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
and an explicit ``py3-none-<platform>`` tag. NOT ``infer_tag`` — that would
|
|
10
|
-
stamp ``cp3XX-cp3XX-<platform>`` and needlessly bind the (pure-Python) code
|
|
11
|
-
to the building interpreter's minor version; the only platform-specific
|
|
12
|
-
content is the data binary. A present-but-non-executable binary fails the
|
|
13
|
-
build loudly — shipping it would only fail later on user machines.
|
|
14
|
-
- binary ABSENT → nothing changes: the wheel stays pure ``py3-none-any`` and
|
|
15
|
-
ships without the binary (`urun compat` then resolves via its override/PATH
|
|
16
|
-
lanes or fails loud at runtime).
|
|
17
|
-
|
|
18
|
-
The platform component is derived explicitly, never a bare ``linux_<arch>``:
|
|
19
|
-
|
|
20
|
-
- Linux → ``manylinux_<major>_<minor>_<arch>`` from the GLIBC symbol versions
|
|
21
|
-
the VENDORED BINARY ITSELF actually references (``objdump -T``), never from
|
|
22
|
-
``platform.libc_ver()`` (the build machine's installed glibc). PyPI rejects
|
|
23
|
-
bare ``linux_*`` uploads outright, and in the isolated build env
|
|
24
|
-
``packaging.tags.platform_tags()`` can yield bare ``linux_x86_64`` first —
|
|
25
|
-
so the tag is constructed, not inferred.
|
|
26
|
-
|
|
27
|
-
INCIDENT (2026-08-25): tagging by the build machine's installed glibc
|
|
28
|
-
(``platform.libc_ver()`` on the ``ubuntu-24.04`` release runner → glibc
|
|
29
|
-
2.39) produced wheels tagged ``manylinux_2_39_x86_64`` even though the
|
|
30
|
-
actual bun-compiled binary's highest referenced symbol is ``GLIBC_2.17``
|
|
31
|
-
(confirmed via ``objdump -T``) — a decade-wide, entirely incidental gap
|
|
32
|
-
between "what the build runner happened to have installed" and "what the
|
|
33
|
-
binary actually needs". ``manylinux_2_39`` is only installable on glibc
|
|
34
|
-
≥2.39 (Ubuntu 24.04+, roughly 2024 onward), so pip/uv silently rejected the
|
|
35
|
-
platform wheel on every older-but-still-current distro (Ubuntu 20.04/22.04,
|
|
36
|
-
Debian 11/12, RHEL 8/9, ...) and fell back to the binary-less
|
|
37
|
-
``py3-none-any`` wheel with ZERO signal at install time — `uv tool install
|
|
38
|
-
urun-cli` "succeeded" and `urun compat` failed at runtime claiming the
|
|
39
|
-
binary "is not installed". Reading the binary's OWN symbol requirements is
|
|
40
|
-
the only floor that isn't a lie in either direction.
|
|
41
|
-
- everything else (macOS) → the most specific ``packaging.tags`` platform tag
|
|
42
|
-
(e.g. ``macosx_15_0_arm64``).
|
|
43
|
-
|
|
44
|
-
The release workflow builds one wheel per platform with the binary vendored
|
|
45
|
-
(``scripts/vendor_openai_proxy.py --from-npm``) plus one pure wheel + sdist
|
|
46
|
-
without it, and verifies each with ``scripts/verify_wheel.py`` — a
|
|
47
|
-
``py3-none-any`` wheel containing the binary fails the release.
|
|
5
|
+
tell the truth, both ways (the ABSENT arm is the no-op path this release's
|
|
6
|
+
build takes — nothing is vendored):
|
|
7
|
+
|
|
48
8
|
"""
|
|
49
9
|
|
|
50
10
|
from __future__ import annotations
|
|
@@ -20,14 +20,14 @@ name = "urun-cli"
|
|
|
20
20
|
# so every merge remains on the already-published version until this value is
|
|
21
21
|
# advanced. Wiring semantic-release into CI remains separate work; this patch
|
|
22
22
|
# bump is the minimal release unblock (post-v0.6.3 fixes + the Rust feature minor).
|
|
23
|
-
version = "0.
|
|
24
|
-
description = "
|
|
23
|
+
version = "0.8.1"
|
|
24
|
+
description = "CLI for the urun platform — login, billing & usage. More capabilities coming soon."
|
|
25
25
|
readme = "README.md"
|
|
26
26
|
requires-python = ">=3.11"
|
|
27
27
|
license = "MIT"
|
|
28
28
|
license-files = ["LICENSE"]
|
|
29
29
|
authors = [{ name = "urun" }]
|
|
30
|
-
keywords = ["urun", "
|
|
30
|
+
keywords = ["urun", "cli"]
|
|
31
31
|
classifiers = [
|
|
32
32
|
"Development Status :: 3 - Alpha",
|
|
33
33
|
"Environment :: Console",
|
|
@@ -36,7 +36,6 @@ classifiers = [
|
|
|
36
36
|
"Programming Language :: Python :: 3",
|
|
37
37
|
"Programming Language :: Python :: 3.11",
|
|
38
38
|
"Programming Language :: Python :: 3.12",
|
|
39
|
-
"Topic :: Software Development :: Build Tools",
|
|
40
39
|
]
|
|
41
40
|
dependencies = []
|
|
42
41
|
|
|
@@ -48,27 +47,26 @@ Issues = "https://github.com/urun-sh/urun-cli/issues"
|
|
|
48
47
|
[project.scripts]
|
|
49
48
|
urun = "urun.cli:main"
|
|
50
49
|
urun-cli = "urun.cli:main"
|
|
51
|
-
kubectl-urun = "urun.kubectl_plugin:main"
|
|
52
|
-
|
|
53
|
-
[project.optional-dependencies]
|
|
54
|
-
# Rust app discovery (urun/rust.py) parses with the pinned native
|
|
55
|
-
# tree-sitter wheels; lazy-imported only for Rust deploys, so the ordinary
|
|
56
|
-
# wheel stays dependency-free. Pin advance = contract native_crate_baselines
|
|
57
|
-
# (tree-sitter 0.25.2 / tree-sitter-rust 0.24.0).
|
|
58
|
-
rust = [
|
|
59
|
-
"tree-sitter==0.25.2",
|
|
60
|
-
"tree-sitter-rust==0.24.0",
|
|
61
|
-
]
|
|
62
|
-
|
|
63
50
|
[dependency-groups]
|
|
64
51
|
dev = [
|
|
52
|
+
# The launch-export pipeline (ENG-662, FLAGS.md "Launch export"): the export
|
|
53
|
+
# tests and CI's launch-export lane run a REAL `copybarista export` /
|
|
54
|
+
# `check-leaks` against the config scripts/gen_launch_export.py generates.
|
|
55
|
+
# Marker required by the universal lock: copybarista itself needs >=3.12
|
|
56
|
+
# while the CLI supports >=3.11; the export tests fail loudly on a 3.11
|
|
57
|
+
# dev env (missing binary), which is the sanctioned fail-hard behavior.
|
|
58
|
+
"copybarista==0.1.8; python_version >= \"3.12\"",
|
|
65
59
|
# The build backend, present in the dev env so tests can import hatch_build.py
|
|
66
60
|
# (the wheel-tagging hook) directly.
|
|
67
61
|
"hatchling",
|
|
68
62
|
"minio>=7.2.0",
|
|
69
63
|
"pytest>=8.0",
|
|
70
64
|
"pytest-cov>=7.1.0",
|
|
71
|
-
|
|
65
|
+
# Bumped from 10.5.2 (ENG-662): that line capped tomlkit<0.14, which cannot
|
|
66
|
+
# share the dev lock with copybarista (tomlkit>=0.15.1). 10.7.0 is the first
|
|
67
|
+
# release on tomlkit~=0.15. Nothing invokes semantic-release yet — CI only
|
|
68
|
+
# reads project.version — so the bump changes no behavior.
|
|
69
|
+
"python-semantic-release==10.7.0",
|
|
72
70
|
"ruff>=0.15.14",
|
|
73
71
|
]
|
|
74
72
|
# The LIVE quickstart gate (tests/test_quickstart_live.py) drives a real
|
|
@@ -130,8 +128,6 @@ include = [
|
|
|
130
128
|
|
|
131
129
|
[tool.hatch.build.targets.wheel]
|
|
132
130
|
packages = ["src/urun"]
|
|
133
|
-
artifacts = ["src/urun/_bin/urun-openai"]
|
|
134
|
-
|
|
135
131
|
# Platform-tags any wheel that carries the vendored binary (and keeps the
|
|
136
132
|
# no-binary wheel honestly pure). See hatch_build.py.
|
|
137
133
|
[tool.hatch.build.targets.wheel.hooks.custom]
|
|
@@ -143,6 +139,7 @@ testpaths = ["tests"]
|
|
|
143
139
|
markers = [
|
|
144
140
|
"minio: requires a running local MinIO server configured with URUN_TEST_MINIO_* env vars",
|
|
145
141
|
"quickstart_live: LIVE quickstart gate — deploys rolling-sink to the real platform with URUN_API_KEY and requires a browser-decoded first frame within the documented budget (run by .github/workflows/quickstart-e2e.yml)",
|
|
142
|
+
"slow: the full 26-state launch-export matrix — a real copybarista export of every flag state (tests/test_launch_export.py); CI's launch-export lane runs it, the default suite selects it out",
|
|
146
143
|
]
|
|
147
144
|
|
|
148
145
|
[tool.coverage.run]
|