Skip to content

Comments

Publish to crates.io#16770

Merged
zanieb merged 28 commits intomainfrom
zb/crates
Nov 20, 2025
Merged

Publish to crates.io#16770
zanieb merged 28 commits intomainfrom
zb/crates

Conversation

@zanieb
Copy link
Member

@zanieb zanieb commented Nov 18, 2025

No description provided.

@zanieb zanieb temporarily deployed to uv-test-registries November 18, 2025 18:03 — with GitHub Actions Inactive
@zanieb zanieb temporarily deployed to uv-test-publish November 18, 2025 18:04 — with GitHub Actions Inactive
@zanieb zanieb temporarily deployed to uv-test-registries November 20, 2025 15:23 — with GitHub Actions Inactive
@zanieb zanieb requested a review from Gankra November 20, 2025 17:28
@zanieb zanieb marked this pull request as ready for review November 20, 2025 17:29
@zanieb zanieb changed the title Prepare library crates for publish Publish to crates.io Nov 20, 2025
@zanieb zanieb temporarily deployed to uv-test-registries November 20, 2025 17:56 — with GitHub Actions Inactive
@zanieb zanieb temporarily deployed to uv-test-publish November 20, 2025 17:57 — with GitHub Actions Inactive
Copy link
Contributor

@Gankra Gankra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks reasonable

Comment on lines +39 to +43
contents = contents.replace(
'version = "' + version + '"',
'version = "' + new_version + '"',
1,
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a script a human would run and put up as a PR, and so any issues where an ecosystem package happens to have this version would be fine..? Oh nice you set the replace limit to 1, perfect.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment brought to you by "I'm lowkey excited I've been dogfooding python enough to recognize basic things like this".

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this should be pretty safe though of course it's janky. Unfortunately using the Python tomli-w library breaks the manifest in serious ways.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Gankra: Are you referring to recognizing the meaning of the "magic number" 1 here?

Passing it as keyword argument would make more obvious: contents.replace(old, new, count=1)

@zanieb zanieb temporarily deployed to uv-test-registries November 20, 2025 18:25 — with GitHub Actions Inactive
@zanieb zanieb temporarily deployed to uv-test-publish November 20, 2025 18:26 — with GitHub Actions Inactive
@codspeed-hq
Copy link

codspeed-hq bot commented Nov 20, 2025

CodSpeed Performance Report

Merging #16770 will not alter performance

Comparing zb/crates (0968891) with main (5eda329)

Summary

✅ 6 untouched

@zanieb zanieb temporarily deployed to uv-test-registries November 20, 2025 19:47 — with GitHub Actions Inactive
@zanieb zanieb temporarily deployed to uv-test-publish November 20, 2025 19:49 — with GitHub Actions Inactive
@zanieb zanieb temporarily deployed to uv-test-registries November 20, 2025 20:21 — with GitHub Actions Inactive
@zanieb zanieb temporarily deployed to uv-test-publish November 20, 2025 20:21 — with GitHub Actions Inactive
@zanieb zanieb enabled auto-merge (squash) November 20, 2025 20:32
@zanieb zanieb merged commit dfe8904 into main Nov 20, 2025
241 of 244 checks passed
@zanieb zanieb deleted the zb/crates branch November 20, 2025 21:26
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Nov 21, 2025
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [astral-sh/uv](https://github.com/astral-sh/uv) | patch | `0.9.10` -> `0.9.11` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>astral-sh/uv (astral-sh/uv)</summary>

### [`v0.9.11`](https://github.com/astral-sh/uv/blob/HEAD/CHANGELOG.md#0911)

[Compare Source](astral-sh/uv@0.9.10...0.9.11)

Released on 2025-11-20.

##### Python

- Add CPython 3.15.0a2

See the [`python-build-standalone` release notes](https://github.com/astral-sh/python-build-standalone/releases/tag/20251120) for details.

##### Enhancements

- Add SBOM support to `uv export` ([#&#8203;16523](astral-sh/uv#16523))
- Publish to `crates.io` ([#&#8203;16770](astral-sh/uv#16770))

##### Preview features

- Add `uv workspace list --paths` ([#&#8203;16776](astral-sh/uv#16776))
- Fix the preview warning on `uv workspace dir` ([#&#8203;16775](astral-sh/uv#16775))

##### Bug fixes

- Fix `uv init` author serialization via `toml_edit` inline tables ([#&#8203;16778](astral-sh/uv#16778))
- Fix status messages without TTY ([#&#8203;16785](astral-sh/uv#16785))
- Preserve end-of-line comment whitespace when editing `pyproject.toml` ([#&#8203;16734](astral-sh/uv#16734))
- Disable `always-authenticate` when running under Dependabot ([#&#8203;16773](astral-sh/uv#16773))

##### Documentation

- Document the new behavior for free-threaded python versions ([#&#8203;16781](astral-sh/uv#16781))
- Improve note about build system in publish guide ([#&#8203;16788](astral-sh/uv#16788))
- Move do not upload publish note out of the guide into concepts ([#&#8203;16789](astral-sh/uv#16789))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNzMuMSIsInVwZGF0ZWRJblZlciI6IjQxLjE3My4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiXX0=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants