-
-
Notifications
You must be signed in to change notification settings - Fork 549
PyPI source distribution is missing docs/man/tox.1.rts file #3885
Copy link
Copy link
Closed
Description
Issue
Source distribution on PyPI (https://pypi.org/project/tox/#files) is missing docs/man/tox.1.rts file. It makes it impossible to build the package from source
Environment
- OS: Ubuntu 22.04 on Arm64 runner (https://github.com/Homebrew/homebrew-core/actions/runs/23210475697/job/67458246591?pr=272824) and I was able to reproduce it on my MacBook Air M2
Output of running tox build logs
The error message that is displayed when building from source:
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
Traceback (most recent call last):
File "/opt/homebrew/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
main()
~~~~^^
File "/opt/homebrew/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 178, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "/private/var/folders/b9/n8rljwgx3j54p75h8s3pg0mm0000gn/T/pip-build-env-1ophkzt6/overlay/lib/python3.14/site-packages/hatchling/build.py", line 58, in build_wheel
return os.path.basename(next(builder.build(directory=wheel_directory, versions=["standard"])))
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/b9/n8rljwgx3j54p75h8s3pg0mm0000gn/T/pip-build-env-1ophkzt6/overlay/lib/python3.14/site-packages/hatchling/builders/plugin/interface.py", line 149, in build
build_hook.initialize(version, build_data)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/b9/n8rljwgx3j54p75h8s3pg0mm0000gn/T/pip-install-i3tzzedu/tox_7b0a97c94920419d99a6903f4e261500/hatch_build.py", line 19, in initialize
for line in (root / "docs" / "man" / "tox.1.rst").read_text(encoding="utf-8").splitlines()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.14/3.14.3_1/Frameworks/Python.framework/Versions/3.14/lib/python3.14/pathlib/__init__.py", line 787, in read_text
with self.open(mode='r', encoding=encoding, errors=errors, newline=newline) as f:
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.14/3.14.3_1/Frameworks/Python.framework/Versions/3.14/lib/python3.14/pathlib/__init__.py", line 771, in open
return io.open(self, mode, buffering, encoding, errors, newline)
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/b9/n8rljwgx3j54p75h8s3pg0mm0000gn/T/pip-install-i3tzzedu/tox_7b0a97c94920419d99a6903f4e261500/docs/man/tox.1.rst'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> tox
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Minimal example
Reproduce with:
pip3 install --no-binary tox tox
Related to Homebrew/homebrew-core#272824
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels