Skip to content

Commit

Permalink
Gitpod instructions: use latest version of pymc (#7106)
Browse files Browse the repository at this point in the history

Co-authored-by: Ben Mares <services-git-throwaway1@tensorial.com>
  • Loading branch information
reshamas and maresb authored Jan 15, 2024
1 parent 6f8f9ee commit 01757e1
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions docs/source/contributing/using_gitpod.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,47 @@ These instructions are for contributing specifically to the [pymc-devs/pymc](htt
Python 3.11.0
```

8. Syncing the repository

Ensure you are in the correct place:
```console
cd /workspace/pymc
git checkout main
```

Sync the repository code and version tags: `git pull upstream main --tags`

Update installed version number: `pip install -e .`

Example:
```console
Obtaining file:///workspace/pymc
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... done
Preparing editable metadata (pyproject.toml) ... done
Requirement already satisfied: arviz>=0.13.0 in /opt/conda/lib/python3.11/site-packages (from pymc==5.1.1+303.g6f8f9eef) (0.15.1)
...
Building editable for pymc (pyproject.toml) ... done
Created wheel for pymc: filename=pymc-5.1.1+303.g6f8f9eef-0.editable-py3-none-any.whl size=11527 sha256=6211b7149b3ab09813b2badb3010f54d2d4ab014f75054d73f204ac5ea82ed82
Stored in directory: /tmp/pip-ephem-wheel-cache-wmkfx8pd/wheels/73/bf/14/341b7fa040e9af1991e12077c13913921be3069fe3bdf78752
Successfully built pymc
Installing collected packages: pytensor, pymc
Attempting uninstall: pytensor
Found existing installation: pytensor 2.10.1
Uninstalling pytensor-2.10.1:
Successfully uninstalled pytensor-2.10.1
Successfully installed pymc-5.1.1+303.g6f8f9eef pytensor-2.18.6
```

Check the PyMC version being used: `python -c "import pymc; print(pymc.__version__)"`

Example:
```console
(base) gitpod@reshamas-pymc-syxfrf90fp0:/workspace/pymc$ python -c "import pymc; print(pymc.__version__)"
5.1.1+303.g6f8f9eef
```

### Reminder: Git Workflow

:::{attention}
Expand Down

0 comments on commit 01757e1

Please sign in to comment.