You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have already added a feature #2875 I wanted to put it in the code and put it in the github, but I had strange problems with pre-commit. Previously, when I committed everything in other projects, there were no problems, but now it always gives the following error:
git commit -am "Add: Added reload-include and reload-exclude in litestar cli"
[INFO] Installing environment for https://github.com/sphinx-contrib/sphinx-lint.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('/home/ashm/.cache/pre-commit/repogzip62c9/py_env-3.8/bin/python', '-mpip', 'install', '.')
return code: 1
stdout:
Processing /home/ashm/.cache/pre-commit/repogzip62c9
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
stderr:
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [26 lines of output]
/tmp/pip-build-env-a4ta5dia/overlay/lib/python3.8/site-packages/setuptools_scm/git.py:163: UserWarning: "/home/ashm/.cache/pre-commit/repogzip62c9" is shallow and may cause errors
warnings.warn(f'"{wd.path}" is shallow and may cause errors')
Traceback (most recent call last):
File "/home/ashm/.cache/pre-commit/repogzip62c9/py_env-3.8/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/home/ashm/.cache/pre-commit/repogzip62c9/py_env-3.8/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/ashm/.cache/pre-commit/repogzip62c9/py_env-3.8/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "/tmp/pip-build-env-a4ta5dia/overlay/lib/python3.8/site-packages/hatchling/build.py", line 58, in build_wheel
return os.path.basename(next(builder.build(directory=wheel_directory, versions=['standard'])))
File "/tmp/pip-build-env-a4ta5dia/overlay/lib/python3.8/site-packages/hatchling/builders/plugin/interface.py", line 155, in build
artifact = version_api[version](directory, **build_data)
File "/tmp/pip-build-env-a4ta5dia/overlay/lib/python3.8/site-packages/hatchling/builders/wheel.py", line 405, in build_standard
for included_file in self.recurse_included_files():
File "/tmp/pip-build-env-a4ta5dia/overlay/lib/python3.8/site-packages/hatchling/builders/plugin/interface.py", line 176, in recurse_included_files
yield from self.recurse_selected_project_files()
File "/tmp/pip-build-env-a4ta5dia/overlay/lib/python3.8/site-packages/hatchling/builders/plugin/interface.py", line 180, in recurse_selected_project_files
if self.config.only_include:
File "/tmp/pip-build-env-a4ta5dia/overlay/lib/python3.8/site-packages/hatchling/builders/config.py", line 774, in only_include
only_include = only_include_config.get('only-include', self.default_only_include()) or self.packages
File "/tmp/pip-build-env-a4ta5dia/overlay/lib/python3.8/site-packages/hatchling/builders/wheel.py", line 231, in default_only_include
self.set_default_file_selection()
File "/tmp/pip-build-env-a4ta5dia/overlay/lib/python3.8/site-packages/hatchling/builders/wheel.py", line 209, in set_default_file_selection
raise ValueError(message)
ValueError: At least one file selection option must be defined, see: https://hatch.pypa.io/latest/config/build/
[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.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Check the log at /home/ashm/.cache/pre-commit/pre-commit.log
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!)
I have already added a feature #2875 I wanted to put it in the code and put it in the github, but I had strange problems with pre-commit. Previously, when I committed everything in other projects, there were no problems, but now it always gives the following error:
Please help me solve this problem!)
I am running on Windows 11 (WSL2 Ubuntu)
Beta Was this translation helpful? Give feedback.
All reactions