跳转到主要内容

未提供项目描述

项目描述

Pycracks

PyPI PyPI Downloads PyPI Version GitHub Workflow Status (with event)
Unreleased Commits Last Released date
质量 Coveralls branch Code Climate maintainability Code Climate technical debt
OSSF-Scorecard Score Dependabot
格式 Conventional Commits Commitlint
Pre Commit Format Linting
法律 FOSSA Status PyPI - License Commercial Use

💢🔍 Python中的破坏性更改检测 - 兼容语义版本和语义发布

用法

使用 --help 标志获取详细选项

pycracks --help

Pycracks可以用不同的方式使用,最简单的方式是

pycracks --paths "tests" --target-version "<to-be-release-version>" --test-command "pytest tests"

“test-command”可以是任何命令,不一定是Python特有的

结合脚本

也可以通过始终使用类似“pipenv scripts”或“npm scripts”的东西来简化“test-command”

所以,在“project.json”/“Pipfile”中,可以定义测试命令,并使用pycracks通过“npm run test”或“pipenv run test”来使用

pycracks --paths "tests" --target-version "<to-be-release-version>" --test-command "pipenv run test"
pycracks --paths "tests" --target-version "<to-be-release-version>" --test-command "npm run test"

语义发布

如果使用Python-Semantic-Release模块,可以通过以下方式安装

pipx install python-semantic-release

可以通过以下方式将Python-Semantic-Release模块与PyCracks集成

pycracks -t "$(semantic-release -v version --print)"

安装

使用Pipx

推荐使用Pipx进行CICD安装,并使用固定版本

pip install pipx==1.2.0
pipx run pycracks==0.18.0 --paths "tests" --target-version "<to-be-release-version>" --test-command "pytest tests"

该命令将创建一个仅用于pycracks的虚拟环境,并从该环境中运行测试命令。

使用pip

安装可以像往常一样使用pip进行

pip install pycracks

也可以使用Pipenv和poetry的等效功能。

常见问题解答(F.A.Q.)

许可

FOSSA Status

项目详情


下载文件

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

源分布

pycracks-0.20.2.tar.gz (9.3 kB 查看哈希值)

上传时间

构建分布

pycracks-0.20.2-py3-none-any.whl (6.6 kB 查看哈希值)

上传时间 Python 3

由以下支持