Skip to content
This repository has been archived by the owner on Mar 13, 2020. It is now read-only.

Latest commit

 

History

History
89 lines (50 loc) · 1.31 KB

README.md

File metadata and controls

89 lines (50 loc) · 1.31 KB

CLI for Boxmetrics Application

This repo is not maintain anymore and had been replaced by new boxmetrics cli write in go 👉 https://github.com/boxmetrics/boxmetrics-cli

Installation


# install with pip

$ pip install -r requirements.txt

$ pip install setup.py

Development

This project includes a number of helpers in the Makefile to streamline common development tasks.

Linter :

  • pylint
  • mypy

Code formatter :

  • black

Environment Setup

The following demonstrates setting up and working with a development environment:

### create a virtualenv for development

$ make virtualenv

$ source env/bin/activate


### run boxmetrics cli application

$ boxmetrics --help


### run pytest / coverage

$ make test

Releasing to PyPi

Before releasing to PyPi, you must configure your login credentials:

~/.pypirc:

[pypi]
username = YOUR_USERNAME
password = YOUR_PASSWORD

Then use the included helper function via the Makefile:

### build binaries files

$ make dist

### upload to Pypi

$ make dist-upload

Deployments

Docker

Included is a basic Dockerfile for building and distributing Boxmetrics CLI, and can be built with the included make helper:


### build docker image

$ make docker

$ docker run -it boxmetrics --help