PDM Publish
A PDM plugin to publish to PyPI
NOTE: Consider if you need this over using twine directly
Installation
If you installed pdm via pipx:
pipx inject pdm pdm-publish
or brew:
$(brew --prefix pdm)/libexec/bin/python -m pip install pdm-publish
or pip:
pip install --user pdm-publish
Usage
pdm-publish enables pdm to publish packages to PyPI by wrapping twine internally.
For example, to build and publish:
# Using token auth
pdm publish --password token
# To test PyPI using basic auth
pdm publish -r testpypi -u username -P password
# To custom index
pdm publish -r https://custom.index.com/
Full usage:
$ pdm publish --help
Upload artifacts to a remote repository
Usage:
Options:
-h, --help show this help message and exit
-v, --verbose -v for detailed output and -vv for more detailed
-g, --global Use the global project, supply the project root with
`-p` option
-p PROJECT_PATH, --project PROJECT_PATH
Specify another path as the project root, which
changes the base of pyproject.toml and __pypackages__
-r REPOSITORY, --repository REPOSITORY
The repository name or url to publish the package to
[env var: PDM_PUBLISH_REPO]
-u USERNAME, --username USERNAME
The username to access the repository [env var:
PDM_PUBLISH_USERNAME]
-P PASSWORD, --password PASSWORD
The password to access the repository [env var:
PDM_PUBLISH_PASSWORD]
--dry-run Perform all actions except upload the package
--no-build Don't build the package before publishing
Configuration
| Config Item | Description | Default Value | Available in Project | Env var |
|---|---|---|---|---|
publish.repo |
PyPI repo name (pypi/testpypi) or url | pypi |
True | PDM_PUBLISH_REPO |
publish.username |
PyPI username | __token__ |
True | PDM_PUBLISH_USERNAME |
publish.password |
PyPI password | True | PDM_PUBLISH_PASSWORD |
Links
Metadata
Release files for pdm-publish 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pdm-publish-0.2.1.tar.gz | 4.6 kB | Without provenance | Details for pdm-publish-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pdm_publish-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for pdm_publish-0.2.1-py3-none-any.whl |
Total release size: 9.6 kB
Release files / pdm-publish-0.2.1.tar.gz
| Download URL | pdm-publish-0.2.1.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ec59ebdb816f86d5fcf8a3f3d9b0afdc57ed07ef420259de0df5dd505d63009
|
|
BLAKE2b-256 checksum How to use checksums |
55887e87ae5e8cea9d0800d3e231f72d8c42034b67856986262849b0e86f0475
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.8.5 Linux/5.8.0-1033-azure
|
Release files / pdm_publish-0.2.1-py3-none-any.whl
| Download URL | pdm_publish-0.2.1-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ebb3a524511b4449763e67c0c90b90f7ce3301fc018316cfea036778171132be
|
|
BLAKE2b-256 checksum How to use checksums |
0a88b2671dd7b8f4b361c6e1863c4098ff267754095d2da10bedf3aeb139c2d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.8.5 Linux/5.8.0-1033-azure
|
Security for pdm-publish 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.