This is the unikube.io command line interface
Project description
The Unikube CLI
This is the command line interface for unikube.
Documentation
The unikube cli documentation is automatically built.
Installation
General
The unikube cli can be installed via pip
. Please make sure you are using Python 3.
pip install unikube
MacOS
The unikube cli is also installable via brew:
brew tap unikubehq/tooling
brew install unikubehq/tooling/unikube
Make Local
cd docs
make html
Development
Setup
Start the local unikube development cluster:
k3d cluster start unikube
Install CLI
To install the latest (pre-)release of the Unikube CLI type
sudo pip3 install unikube==<VERSION> --upgrade --pre
Enable tab completion
unikube
support tab completion scripts for bash.
unikube system completion bash > /etc/bash_completion.d/unikube.bash-completion
You probably need to restart your shell in order for the completion script to do its work.
Virtual Environment + Requirements
Create virtual environment:
python -m .venv venv
Install requirements (production + development):
pip3 install -r requirements.txt -r requirements.dev.txt
Version Build + Release
Version management is handled via bump2version.
bump2version patch|minor|major
Increase dev version (e.g.: 1.0.0-dev1 -> 1.0.0-dev2):
bump2version build
Create release (e.g.: 1.0.0-dev2 -> 1.0.0):
bump2version release
Test
Tests for the unikube cli are developed using the pytest
framework in combination with the click.testing module.
Thus, it is possible to run the tests using pytest
or by configuring the testing environment/options within your IDE to use pytest
.
Currently, most tests are developed directly against the unikube API, using a test-account. Therefore, it is required to provide the credentials via the following environment variables:
TESTRUNNER_EMAIL=...
TESTRUNNER_SECRET=...
Otherwise, tests might fail locally, even if they are correct.
It is possible to set the environment variables using an .env
file within your virtual environment or by providing them explicitly:
TESTRUNNER_EMAIL=... TESTRUNNER_SECRET=... pytest
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 unikube-1.2.9.tar.gz
.
File metadata
- Download URL: unikube-1.2.9.tar.gz
- Upload date:
- Size: 66.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1b9b61cee51b60b8958c8cf067abfe05f9c20d0688923b2233f480a2bbbe985 |
|
MD5 | a4cbfc35cf8f1857976ec8329f83af77 |
|
BLAKE2b-256 | 00e11b77fb7bcda4cc46086419115084d6582a0fe22b1b99c1a5a656f73da99a |
File details
Details for the file unikube-1.2.9-py3-none-any.whl
.
File metadata
- Download URL: unikube-1.2.9-py3-none-any.whl
- Upload date:
- Size: 84.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d58e0be3559cffd31c60a84d0008ac900cf7488137721d50024e9d5c2afcf452 |
|
MD5 | 493bf0c6fcacb6880930e754c145e8fd |
|
BLAKE2b-256 | 169897888f6be48f0619c5013da91ce5d63d27ef7599d375a157e8e32ce1d1b6 |