Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development environment. #33

Open
grabear opened this issue Oct 19, 2019 · 4 comments
Open

Development environment. #33

grabear opened this issue Oct 19, 2019 · 4 comments
Assignees

Comments

@grabear
Copy link
Member

grabear commented Oct 19, 2019

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.
@sdhutchins
Copy link
Member

sdhutchins commented Oct 19, 2019

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
Copy link
Collaborator

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

@grabear
Copy link
Member Author

grabear commented Oct 19, 2019

datasnakes/renv@12da3ad

@zongqi-wang
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants