Home > Software design >  i keep having subprocess.CalledProcessError while trying to run pip-compile for pip-tools
i keep having subprocess.CalledProcessError while trying to run pip-compile for pip-tools

Time:02-12

This is my code at asciicast

How do i fix this?

CodePudding user response:

Generally, this kind of error is emitted (as far as I saw it several times) when your setup.cfg or setup.py are broken.

In your case, your extras are not defined properly. You should change your setup.cfg like the following:

[options]
python_requires = >=3.8
setup_requires = setuptools_scm
packages = find:
zip_safe = false
install_requires =
    # direct dependencies
    # pep517 ~= 0.12
    pip-tools ~= 6.5
    pip ~= 21.3
    # indirect dependencies
    # setuptools ~= 60.8  # typically needed when pip-tools invokes setup.py
    # wheel ~= 0.37 # pip plugin needed by pip-tools

[options.extras_require]
    local = pytest
  • Related