Skip to content

Latest commit

 

History

History
50 lines (27 loc) · 1.1 KB

CONTRIBUTING.md

File metadata and controls

50 lines (27 loc) · 1.1 KB

Contributing to migro

  1. Install Python dependencies.

     pip install --editable '.[dev]'
    
  2. Run migro

     migro --help
    

Test in a dbt Project

  1. Install migro in edit mode inside a dbt project.

     pip install -e ~/Projects/migro
    
  2. Build a distribution wheel.

     python setup.py bdist_wheel
    
  3. Install the wheel in a dbt project and test the changes.

     pip install ~/Projects/migro/dist/migro-0.x.y-py3-none-any.whl --force-reinstall
    

Tagging a Release

  1. Add a pypi.org API token to ~/.pypirc

  2. Bump the version number in setup.py

  3. Build a distribution wheel.

     python setup.py bdist_wheel
    
  4. Upload the new version.

     twine upload dist/*
    

Upgrading Dependencies

  1. Install pip tools

     pip install pip-tools
    
  2. Update the dependencies in pyproject and setup.py.

  3. Compile the requirements file.

     pip-compile -o requirements.txt pyproject.toml
    
  4. Compile the dev requirements file.

     pip-compile --extra dev -o dev-requirements.txt pyproject.toml