Skip to main content

Databricks Deployment Utils

Project description

Documentation

https://databricks-clay.readthedocs.io/en/latest/

Development Setup

Create virual environment and install dependencies for local development:

python3.7 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
pip install -r dev_requirements.txt

Exporting variables doesn't make for a great development experience so I recommend using the enviroment manager tools of your editor and for testing create a ./pytest.ini that looks like this:

[pytest]
env =
    VARIABLE=value
    VARIABLE2=value2

REMINDER: do NOT commit any files that contain security tokens

Git ignore already contains an exclusion for pytest.ini

Build

Build python wheel:

python setup.py sdist bdist_wheel

There is a CI build configured for this repo that builds on main origin on a private Azure DevOps service.

Test

Dependencies for testing:

pip install --editable .

Run tests:

pytest

Test Coverage:

pytest --cov=databricks-clay --cov-report=html

View the report in a browser:

./htmlcov/index.html

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

databricks-clay-0.0.1.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

databricks_clay-0.0.1-py3-none-any.whl (2.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page