https://autopipes.readthedocs.io/en/latest/
Create virual environment and install dependencies for local development:
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
Exporting variables doesn't make for a great development experience so the project uses pytest.ini for mock environment variables. For example:
[pytest]
env =
DATABRICKS_API_HOST=https://<my_databricks_host>.azuredatabricks.net
DBUTILSTOKEN=<my_token>
...
REMINDER: do NOT commit pytest.ini that contains real security tokens
For convenience here is a yaml template for docker and build pipelines:
Build python wheel:
python setup.py sdist bdist_wheel
There is a CI build configured for this repo that builds on main origin and publishes to PyPi.
Dependencies for testing:
pip install --editable .
Run tests:
pytest
Test Coverage:
pytest --cov=autopipes --cov-report=html
View the report in a browser:
./htmlcov/index.html