astral-sh / uv

An extremely fast Python package and project manager, written in Rust.
https://docs.astral.sh/uv
Apache License 2.0
19.92k stars 590 forks source link

Add a `uv publish` command #6278

Open zanieb opened 3 weeks ago

zanieb commented 3 weeks ago

e.g., to publish the project to PyPI.

This is a pretty large, but well isolated project — if you've contributed previously and are interested in working on it let me know.

pplmx commented 3 weeks ago

Add uv build and uv test too?

zanieb commented 3 weeks ago

Those are both out of scope for this issue — though uv build should be trivial once uv publish is set up. See https://github.com/astral-sh/uv/issues/1510 for the relevant tracking issue there.

Zaf4 commented 2 weeks ago

I was going to open the same issue I have been using poetry for publishing. Would be great to fully switch to uv for everything.

woodruffw commented 2 weeks ago

Hi all! I'm neither a maintainer of PyPI nor twine, but I'm an active contributor to both who has touched a lot of the components related to uploading/API tokens/etc. It's very exciting to see uv consider adding publishing support!

A couple of things that might be worth considering as part of an implementation here:

I'm happy to provide more details on the above or anything else related to publishing, to those interested. Just let me know!

andrlik commented 2 weeks ago

Adding this comment to the correct issue. 🤦

Would be good to mimic the rye publish command where it prompts you to encrypt your PyPI token with a password.