No project description provided
Project description
Pycracks
PyPI | |
---|---|
Quality | |
Format | |
Legal |
💢🔍 breaking change detection in Python - Compatible with Semantic Version and Semantic Release
Usage
Use the --help flag for detailed options:
pycracks --help
Pycracks can be used in different ways, the most straightforward one is:
pycracks --paths "tests" --target-version "<to-be-release-version>" --test-command "pytest tests"
The test-command
could be any command and does not need to be Python specific
Combine with scripts
It is also possible to simplify the test-command
by always using something like pipenv scripts
or npm scripts
So in the project.json
/ Pipfile
, one could define the test command and use pycracks with npm run test
or pipenv run test
instead:
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"
Semantic Release
If using the Python-Semantic-Release module, installable with:
pipx install python-semantic-release
One can integrate it with PyCracks by using:
pycracks -t "$(semantic-release -v version --print)"
Installation
With Pipx
Recommended instalation for CICD is through pipx
with a pinned version:
pip install pipx==1.2.0
pipx run pycracks==0.18.0 --paths "tests" --target-version "<to-be-release-version>" --test-command "pytest tests"
That command will create a virtual environment just for pycracks and run the test command from there.
With pip
Instalation can be done with pip as usual:
pip install pycracks
Pipenv and poetry equivalents can be used as well.
F.A.Q.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pycracks-0.20.0.tar.gz
.
File metadata
- Download URL: pycracks-0.20.0.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3c34515234951bccb37d9db4c6b9a18d22452222a164eafff741aadd435671c |
|
MD5 | 948bc5e6796e903a2786baf0c63404bc |
|
BLAKE2b-256 | 1388df13a6927895f1bd9335b672f602074f8a50cca6ad38ad65781273d0cf10 |
File details
Details for the file pycracks-0.20.0-py3-none-any.whl
.
File metadata
- Download URL: pycracks-0.20.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c5ad290a9664d8b0c6ce05c1ed03ff3a8c4ed29dd46fac5663a352523d30450 |
|
MD5 | 701586360be1d385fac5348687bd1bb3 |
|
BLAKE2b-256 | 232d5f90bdcc8fa0d7ef03b8c09d4d7ab365ea75a075eb601a150c56475f7198 |