Wrapper tool ito run `uv publish` using default credentials from `~/.pypirc`
Project description
UV-PUBLISH - run uv publish
using default credentials from ~/.pypirc
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]
E.g. if you use twine
to publish your package[s], you can
change to uv-publish
by replacing the command twine upload dist/*
with uvx uv-publish
.
To upgrade:
$ uvx uv-publish@latest --help
To remove:
$ uv cache clean uv-publish
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file uv_publish-1.1.tar.gz
.
File metadata
- Download URL: uv_publish-1.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b2235fa72aefde4b977bc3dea8292e3318a5d209d8074b553108b64d68e7974 |
|
MD5 | dd87e4f8df57e78db2744f4e3cf3444d |
|
BLAKE2b-256 | 5d0f03324efb079a42dae52e841b91b67ec35aa2bb9a4b4a91e3cf1eb3933052 |
File details
Details for the file uv_publish-1.1-py3-none-any.whl
.
File metadata
- Download URL: uv_publish-1.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81aa2b7b3d373a609e2b33b62310755104d969e6e23094024d834e6f7d1a0f23 |
|
MD5 | 140cc7284251c39a1dc7eb82e7bddfbc |
|
BLAKE2b-256 | c6a6a29e03ffd8b25901e6f9ebb0aaa47467e3d76a93963a92ab2dd4d5eabe95 |