将pipfile/pipfile.lock转换为requirements.txt的cli工具
pipfile-requirements的Python项目详细描述
pipfile要求
cli工具将pipfile/pipfile.lock转换为requirements.txt
必需的python版本
>=2.7, >=3.4
它是做什么的?
该工具构建在[RequirementsLib][https://github.com/sarugaku/RequirementsLib]之上,为 将pipenv托管文件转换为requirements.txt。
pipenv是管理virtualenv和依赖项的一个很好的工具,但是在部署中可能没有那么有用。 pip安装比pipenv操作快得多,因为后者需要额外的请求到pypi进行散列检查。 在部署中安装pipenv可能会过度。我们只需要一个requirements.txt来告诉ci或生产服务器 应该安装哪些包和版本。
安装
$ pip install pipfile-requirements
名为pipfile2req
的可执行文件将准备好在bin路径中使用。
用法:
$ pipfile2req --help
usage: pipfile2req [-h] [-p PROJECT] [--hashes] [-d] [file]
positional arguments:
file The file path to covert, support both Pipfile and
Pipfile.lock. If it isn't given, will try Pipfile.lock
first then Pipfile.
optional arguments:
-h, --help show this help message and exit
-p PROJECT, --project PROJECT
Specify another project root
--hashes whether to include the hashes
-d, --dev whether to choose the dev-dependencies section
许可证
其他
这是我第一次用诗歌来管理我的项目,与Pipenv有关,哈哈。