Cranc is command line interface tool to interact with Pagure
homepage: https://pagure.io/cranc
What Cranc does
At the moment cranc lists pull requests and issues of a project. With this commands:
cranc get prs
[author] optional
[status] optional
[assignee] optional
cranc get issues
[author] optional
[status] optional
[assignee] optional
cranc merge pr [request_id]
cranc create pr [title] [repo] [brach_from] [branch_to]
[initial_comment] is optional
About its name
Since Pagure is a hermit crab, cranc is crab in catalan.
Run
Create the virtual environment:
virtualenv3 ~/venvs/cranc-env
source ~/venvs/cranc-env/bin/activate
Retrieve the sources:
git clone https://pagure.io/cranc.git
cd cranc
Install dependencies:
pip install -r requirements.txt
Run the setup file. This creates a link in the venv directory pointing to the cranc directory:
python setup.py install
Run the app:
cranc
Usage: cranc [OPTIONS] COMMAND [ARGS]... Options: -a, --api-key API-KEY your API key for Pagure.io -r, --repo-url TEXT Repo url -i, --instance-url TEXT Pagure instance url -c, --config-file PATH --help Show this message and exit. Commands: config create get merge
cranc
Or run the command:
cranc get prs
cranc merge pr --request_id [request_id]
When API TOKEN is needed, cranc will prompt you to insert it. It will ve stored in a .config file. Cranc will also try to guess the repo url and instance url, and prompt you to confirm/change.
Test
To run tests type:
pytest
Or to run only 1 test type:
pytest tests/[name_of_the_test]
Metadata
Release files for cranc 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cranc-1.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for cranc-1.0.1-py2.py3-none-any.whl |
Release files / cranc-1.0.1-py2.py3-none-any.whl
| Download URL | cranc-1.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
56e7dbcbbf22213e0edf7614eacaabf28bcac0c67879045dd7eb9302f38a258c
|
|
BLAKE2b-256 checksum How to use checksums |
bf64cd9f0e978f4471d1c39ecaaac4318e87b8c5b3ca2884bdf20ab6d6ceaeee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.8
|
Security for cranc 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.