0

这是我在github 上的代码

我正在尝试使用 pip-tools 测试 setup.py 的分层要求,并且我一直遇到有关 subprocess.CalledProcessError 的此错误的问题

我不确定我做错了什么。下面是asciiccast

asciiccast

我该如何解决?

4

1 回答 1

1

通常,当您的 setup.cfg 或 setup.py 损坏时,会发出这种错误(据我多次看到)。

在您的情况下,您的附加功能未正确定义。你应该改变你的 setup.cfg 如下:

[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
于 2022-02-12T07:21:01.387 回答