Skip to content

No matching distribution found for hatchling>=1.8.0 #3335

@tnhgiang

Description

@tnhgiang

Describe the bug

To Reproduce

pre-commit configuration:

  repos:
    - repo: https://github.com/psf/black
      rev: 22.10.0
      hooks:
        - id: black

And run pre-commit:

pre-commit run --all-files

The resulting error is:

An unexpected error has occurred: CalledProcessError: command: ('/home/tnhgiang/.cache/pre-commit/repomavgntpv/py_env-python3.6/bin/python', '-mpip', 'install', '.')
return code: 1
expected return code: 0
stdout:
Processing /home/tnhgiang/.cache/pre-commit/repomavgntpv
Installing build dependencies: started
Installing build dependencies: finished with status 'error'
stderr:
ERROR: Command errored out with exit status 1:
command: /home/tnhgiang/.cache/pre-commit/repomavgntpv/py_env-python3.6/bin/python /home/tnhgiang/.cache/pre-commit/repomavgntpv/py_env-python3.6/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-wkrhsflu/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'hatchling>=1.8.0' hatch-vcs hatch-fancy-pypi-readme
cwd: None
Complete output (2 lines):
ERROR: Could not find a version that satisfies the requirement hatchling>=1.8.0
ERROR: No matching distribution found for hatchling>=1.8.0
----------------------------------------
WARNING: Discarding file:///home/tnhgiang/.cache/pre-commit/repomavgntpv. Command errored out with exit status 1: /home/tnhgiang/.cache/pre-commit/repomavgntpv/py_env-python3.6/bin/python /home/tnhgiang/.cache/pre-commit/repomavgntpv/py_env-python3.6/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-wkrhsflu/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'hatchling>=1.8.0' hatch-vcs hatch-fancy-pypi-readme Check the logs for full command output.
ERROR: Command errored out with exit status 1: /home/tnhgiang/.cache/pre-commit/repomavgntpv/py_env-python3.6/bin/python /home/tnhgiang/.cache/pre-commit/repomavgntpv/py_env-python3.6/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-wkrhsflu/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'hatchling>=1.8.0' hatch-vcs hatch-fancy-pypi-readme Check the logs for full command output.

Expected behavior

Environment

  • Black's version: 22.10.0
  • Pre-commit's version: 2.17.0

Additional context
When I downgrade the black version to 22.8.0, the problem is solved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: packagingInstallation and packaging of BlackR: not a bugThis is deliberate behavior of Black.T: user supportOP looking for assistance or answers to a question
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions