wheel-doctor
Easily manipulate METADATA in python wheels and tarballs
Intended purpose
The main goal of this tool is to remove references to other packages specified as path dependencies, which will be present in some cases (e.g. building packages in monorepos). Partially inspired by: https://gitlab.com/gerbenoostra/poetry-monorepo
Usage
Show a table of dependencies specified in a package:
> wheel-doctor show-dependencies dist/package-1.0.0-py3-none-any.whl
┏━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Dependency ┃ Version ┃
┡━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ numpy │ <none> │
│ loguru │ <none> │
│ xarray │ <none> │
│ my-package │ @ file:///home/user/my-package │
└─────────────┴───────────────────────────────────────────────────────────────────┘
Overwrite a specific dependency
> wheel-doctor replace-dependency-version dist/package-1.0.0-py3-none-any.whl my-package "" --verbose
dist/package-1.0.0-py3-none-any.whl
Updating dependency my-package: Replacing version '@ file:///home/user/my-package'
with version '<none>'
Updated dependencies:
┏━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Dependency ┃ Version ┃
┡━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ numpy │ <none> │
│ loguru │ <none> │
│ xarray │ <none> │
│ my-package │ <none> │
└─────────────┴───────────────────────────────────────────────────────────────────┘
Removing all path dependencies
> wheel-doctor remove-path-dependencies dist/package-1.0.0-py3-none-any.whl my-package --verbose
dist/package-1.0.0-py3-none-any.whl
my-package: Removing path dependency '@ file:///home/user/my-package'
Updated dependencies:
┏━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Dependency ┃ Version ┃
┡━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ numpy │ <none> │
│ loguru │ <none> │
│ xarray │ <none> │
│ my-package │ <none> │
└─────────────┴───────────────────────────────────────────────────────────────────┘
Metadata
Release files for wheel-doctor 0.1.0
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 |
|---|---|---|---|---|
| wheel_doctor-0.1.0.tar.gz | 6.3 kB | Without provenance | Details for wheel_doctor-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wheel_doctor-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for wheel_doctor-0.1.0-py3-none-any.whl |
Total release size: 12.1 kB
Release files / wheel_doctor-0.1.0.tar.gz
| Download URL | wheel_doctor-0.1.0.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d14f7049adc1fc509734da805e8cb79ef3d74f8ba1c054a04a520542c1c7959b
|
|
BLAKE2b-256 checksum How to use checksums |
089e678dafa59dcf224ce1b7d85f4b0a7fa194ba9038e932e00a45bd7c5b7821
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.11.3 Linux/5.15.90.1-microsoft-standard-WSL2
|
Release files / wheel_doctor-0.1.0-py3-none-any.whl
| Download URL | wheel_doctor-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c208f37645f14fe34ff4924fb06d9add2dcf54ba575e780870bb9204c4aecb13
|
|
BLAKE2b-256 checksum How to use checksums |
185349a77db1aacac06dffc462d4d0a8263d08af2f06875187e9e578d9c463f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.11.3 Linux/5.15.90.1-microsoft-standard-WSL2
|
Security for wheel-doctor 0.1.0
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.