在requirements.txt中包含本地.whl软件包时解析错误

时间:2020-07-07 20:42:59

标签: python pip pipenv

我正在尝试构建一个.whl软件包,其中还包含另一个本地.whl软件包。我正在尝试使用 pipenv

现在我的requirements.text看起来像这样:

./package1-0.0.0-py3-none-any.whl
certifi==2020.6.20
chardet==3.0.4
docutils==0.15.2; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'
idna==2.10; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
jmespath==0.10.0; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'
python-dateutil==2.8.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
requests==2.24.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
s3transfer==0.3.3
six==1.15.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
urllib3==1.25.9; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'

但是当我尝试运行时:

 pipenv run python setup.py bdist_wheel

我得到:

>   File
> "/home/alok/.local/share/virtualenvs/package_2-CUbY1hM0/lib/python3.6/site-packages/pkg_resources/__init__.py",
> line 3113, in __init__
>     raise RequirementParseError(str(e)) pkg_resources.RequirementParseError: Invalid requirement, parse error
> at "'./packag'"

我应该如何正确包含它?实际上可以将本地车轮二进制文件和程序包混合用于pypi吗?

0 个答案:

没有答案