datasnakes/rinse

Development environment.

Opened this issue · 4 comments

In order to develop and test changes in a python package, you have to do a few things to configure your development environment.

  1. First make sure you are already in a clean Python virtual environment.
  2. Build a rinse wheel with poetry.
  3. Install an Editable version of the package.
  4. Make changes.
  5. Uninstall the package
  6. Repeat steps 2-5 as needed.

An example:

# Clone the repository
git clone https://github.com/datasnakes/renv.git

cd renv

# Make sure you have activated an environment of Python >= 3.6

# Get poetry and build the project using it
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python

poetry install

poetry build

pip install -e dist/renv-0.2.0-py2.py3-none-any.whl

Invoke-RestMethod https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
for windows

poetry build
pip install --upgrade --force-reinstall .\dist\rinstall-0.2.3-py3-none-any.whl