No project description provided
Project description
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> │
└─────────────┴───────────────────────────────────────────────────────────────────┘
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wheel_doctor-0.1.0.tar.gz.
File metadata
- Download URL: wheel_doctor-0.1.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.3 Linux/5.15.90.1-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d14f7049adc1fc509734da805e8cb79ef3d74f8ba1c054a04a520542c1c7959b
|
|
| MD5 |
363dd273d110d4a6e6db4f152d3a1002
|
|
| BLAKE2b-256 |
089e678dafa59dcf224ce1b7d85f4b0a7fa194ba9038e932e00a45bd7c5b7821
|
File details
Details for the file wheel_doctor-0.1.0-py3-none-any.whl.
File metadata
- Download URL: wheel_doctor-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.3 Linux/5.15.90.1-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c208f37645f14fe34ff4924fb06d9add2dcf54ba575e780870bb9204c4aecb13
|
|
| MD5 |
a8e10214b7d0a07f024958ad47a8f00a
|
|
| BLAKE2b-256 |
185349a77db1aacac06dffc462d4d0a8263d08af2f06875187e9e578d9c463f8
|