一个命令行工具,用于将Pipfile/Pipfile.lock转换为requirments.txt
项目描述
pipfile-requirements
命令行工具,用于将Pipfile/Pipfile.lock转换为requirments.txt
所需Python版本
>=2.7, >=3.4
这是做什么的?
该工具基于requirementslib构建,提供了一个简单的命令行界面,用于将Pipenv管理的文件转换为requirments.txt。
Pipenv是一个管理虚拟环境和依赖项的出色工具,但在部署中可能并不那么有用。Pip安装的速度比Pipenv操作快得多,因为后者需要额外的请求到PyPI进行哈希检查。在部署中安装Pipenv可能是过度的。我们只需要一个requirments.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
-s, --sources whether to include extra PyPi indexes
许可证
其他
这是我第一次使用Poetry来管理我的项目,与Pipenv相关,哈哈。
项目详情
关闭
哈希值 for pipfile_requirements-0.3.0-py2.py3-none-any.whl
算法 | 哈希摘要 | |
---|---|---|
SHA256 | dc2ff7515ce35f8b37a500e87e7b9cd39f0f5c18eb6024543366eb6d4226869b |
|
MD5 | b892db7c9b3aa4a12b0975d2d28ffd12 |
|
BLAKE2b-256 | b46aba38a67f3b6954a2c434e3cc3f3e3db396b59e7f80a310801dea615b66a3 |