如何执行Pipfile中定义的脚本?
按照找到的这里语法,我在pipfile中定义了脚本部分如下:
[scripts]
tests = "bash ./run-tests.sh"运行$ pipenv install之后,如何调用tests脚本?
我尝试了以下几种方法,但都没有成功:
$ tests
$ pipenv tests
$ pipenv run tests
$ pipenv shell (virtual env) $ tests
发布于 2018-04-29 17:37:20
发布于 2018-05-31 17:11:11
试试这个:
$ pipenv shell
$ pipenv run tests发布于 2021-10-13 13:48:14
要完全按照Pipfile.lock中指定的方式安装包,您应该运行:
pipenv sync在此之后,为了继续在pipenv中工作,您应该运行:
pipenv shell(资料来源:https://pipenv-fork.readthedocs.io/en/latest/advanced.html)
https://stackoverflow.com/questions/49519208
复制相似问题