tox.ini 是否需要转义 URL 中的锚点(哈希#)?
Does tox.ini need escaping for anchors in URLs (hash #)?
我有一个tox.ini这样的
[tox]
skipsdist = True
envlist = begin,py35,py36,end
[testenv]
commands =
pip install -e git+ssh://git@bitbucket.org/org/repo#egg=repo[server]
我得到了错误
Could not detect requirement name for 'git+ssh://git@bitbucket.org/org/repo.git', please specify one with #egg=your_package_name
看起来很像 #
被当作注释。是这样吗?我怎样才能逃脱它?
我试过的
\#
: \ 被识别,但其余部分不被识别 - 所以它不是转义字符
- 引用整个字符串:
ERROR: InvocationError: could not find executable 'pip install -e git+ssh://git@bitbucket.org/org/repo.git#egg=repo[server]'
我的猜测是尝试引用 URL:
[testenv]
commands =
pip install -e "git+ssh://git@bitbucket.org/org/repo#egg=repo[server]"
这似乎可以解决问题。
我有一个tox.ini这样的
[tox]
skipsdist = True
envlist = begin,py35,py36,end
[testenv]
commands =
pip install -e git+ssh://git@bitbucket.org/org/repo#egg=repo[server]
我得到了错误
Could not detect requirement name for 'git+ssh://git@bitbucket.org/org/repo.git', please specify one with #egg=your_package_name
看起来很像 #
被当作注释。是这样吗?我怎样才能逃脱它?
我试过的
\#
: \ 被识别,但其余部分不被识别 - 所以它不是转义字符- 引用整个字符串:
ERROR: InvocationError: could not find executable 'pip install -e git+ssh://git@bitbucket.org/org/repo.git#egg=repo[server]'
我的猜测是尝试引用 URL:
[testenv] commands = pip install -e "git+ssh://git@bitbucket.org/org/repo#egg=repo[server]"
这似乎可以解决问题。