Development environment.
Opened this issue · 4 comments
grabear commented
In order to develop and test changes in a python package, you have to do a few things to configure your development environment.
- First make sure you are already in a clean Python virtual environment.
- Build a rinse wheel with poetry.
- Install an Editable version of the package.
- Make changes.
- Uninstall the package
- Repeat steps 2-5 as needed.
sdhutchins commented
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
zongqi-wang commented
Invoke-RestMethod https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
for windows
grabear commented
zongqi-wang commented
poetry build
pip install --upgrade --force-reinstall .\dist\rinstall-0.2.3-py3-none-any.whl