Skip to main content

Wrapper tool ito run `uv publish` using default credentials from `~/.pypirc`

Project description

UV-PUBLISH - run uv publish using default credentials from ~/.pypirc

PyPi

uv-publish is a simple command line wrapper to run uv publish using your default configured Python PyPi credentials from your ~/.pypirc file. Simply run uv-publish instead of uv publish with any of the options and arguments that uv publish normally accepts. uv-publish will read your ~/.pypirc and pass those credentials to uv publish as arguments --username, --password, or --token, and --publish-url. Those arguments are passed automatically at the start of the uv publish command line so they can be overridden manually by later arguments if required.

Note that similar tools to push your Python packages to PyPi such as twine, hatch, and flit recognise the common ~/.pypirc file so this wrapper is created to enable uv publish to do the same.

This utility has been developed and tested on Linux but should also work on macOS and Windows although has not been tried on those platforms. The latest documentation and code is available at https://github.com/bulletmark/uv-publish.

How to run

You are a uv user so you should have uv installed. Just run uv-publish as follows (uv-publish will get automatically installed by uvx if you don't already have it):

$ uvx uv-publish [uv publish options]

To upgrade:

$ uvx uv-publish@latest

License

Copyright (C) 2024 Mark Blakeney. This program is distributed under the terms of the GNU General Public License. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License at http://www.gnu.org/licenses/ for more details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uv_publish-1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

uv_publish-1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file uv_publish-1.0.tar.gz.

File metadata

  • Download URL: uv_publish-1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.16

File hashes

Hashes for uv_publish-1.0.tar.gz
Algorithm Hash digest
SHA256 047ef356d9571f7b54c3f7a2b9f7eb47ecfdd1b01be4e8616833c97144ff3976
MD5 4aed9147e69de7eeac80886f65c1127f
BLAKE2b-256 7f9e996f52b68a94ea2dc864256d1d9c20f1c58de6da2be82fdd71fbdc28f7a0

See more details on using hashes here.

File details

Details for the file uv_publish-1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for uv_publish-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1231b5fb60dcb494b106f1dfbb668ee005e48c3cccbed26fcbd0e58af4f24b4f
MD5 aad6cfc421fdd25f142ab9c3f7de8bd9
BLAKE2b-256 57b595b31aa7f6c3253591014f7ed3d3e0132e0956540b4f82adc2f0a491f11f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page