Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 938 Bytes

sandbox.md

File metadata and controls

48 lines (35 loc) · 938 Bytes

Development Sandbox

Setup

Those commands will get you started with a sandboxed development environment. After invoking poe check, and observing the software tests succeed, you should be ready to start hacking.

git clone https://github.com/grafana-toolbox/grafana-import
cd grafana-import
python3 -m venv .venv
source .venv/bin/activate
pip install --editable='.[develop,test]'

Software tests

For running the software tests after setup, invoke poe check. Optionally, activate the virtualenv, if you are coming back to development using a fresh terminal session.

Run linters and software tests.

source .venv/bin/activate
poe check

Run a subset of tests.

pytest -k core 

Releasing

# Install a few more prerequisites.
pip install --editable='.[release]'

# Designate a new version.
git tag v0.1.0
git push --tags

# Build package, and publish to PyPI.
poe release