btrfs-progs: libbtrfsutil/python: fix all the warnings
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | btrfs-progs: libbtrfsutil/python: use MANIFEST.in for headerslibbtrfsutil/ libbtrfsutil/ | +1 | 0 replies | |
| 2/3 | btrfs-progs: libbtrfsutil/python: remove unnecessary build optionslibbtrfsutil/ | +0 | 0 replies | |
| 3/3 | btrfs-progs: libbtrfsutil/python: reuse existing README.md for long descriptionlibbtrfsutil/ libbtrfsutil/ | +3 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] btrfs-progs: libbtrfsutil/python: fix all the warnings
There are the following warnings when building the python binding the proper way (directly calling "setup.py build" is no longer recommended):
$ python -m build btrfs-progs/libbtrfsutil/python * Creating isolated environment: venv+pip... * Installing packages in isolated environment: - setuptools >= 40.8.0 * Getting build dependencies for sdist... /tmp/build-env-2u6q_udl/lib/python3.12/site-packages/setuptools/_distutils/extension.py:139: UserWarning: Unknown Extension options: 'headers' warnings.warn(msg) * Building sdist... /tmp/build-env-2u6q_udl/lib/python3.12/site-packages/setuptools/_distutils/extension.py:139: UserWarning: Unknown Extension options: 'headers' warnings.warn(msg) writing manifest file 'btrfsutil.egg-info/SOURCES.txt' warning: sdist: standard file not found: should have one of README, README.rst, README.txt, README.md
This patch fixes them by:
- Use MANIFEST.in to properly include the "btrfsutilpy.h"
- Remove unnecessary build options for C files
- Reuse the existing README.md by a softlink
So that even in a virtual environment the README.md will still be properly copied.
TODO: Migrate the "python setup.py build" system to "python -m build" for building and tox for tests.
Qu Wenruo (3):
btrfs-progs: libbtrfsutil/python: use MANIFEST.in for headers
btrfs-progs: libbtrfsutil/python: remove unnecessary build options
btrfs-progs: libbtrfsutil/python: reuse existing README.md for long
description
libbtrfsutil/python/MANIFEST.in | 1 + libbtrfsutil/python/README.md | 1 + libbtrfsutil/python/setup.py | 7 ++----- 3 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 libbtrfsutil/python/MANIFEST.in create mode 120000 libbtrfsutil/python/README.md
--
2.46.1