跳至主要内容

一个命令行工具,用于将Pipfile/Pipfile.lock转换为requirments.txt

项目描述

pipfile-requirements

命令行工具,用于将Pipfile/Pipfile.lock转换为requirments.txt

Build Status Build status

所需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

许可证

MIT

其他

这是我第一次使用Poetry来管理我的项目,与Pipenv相关,哈哈。

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分布

pipfile-requirements-0.3.0.tar.gz (15.4 kB 查看哈希)

上传于 来源

构建分发

pipfile_requirements-0.3.0-py2.py3-none-any.whl (6.3 kB 查看哈希值)

上传于 Python 2 Python 3

由以下支持