-
Fork the repo into your personal github account
-
At this point, you can start a Github Codespace if you like. If you do this, ignore the local installation instrutions below.
-
On your local computer, install poetry and consider setting the configuration such that virtual environments for a given projects are installed in that project directory.
-
I suggest that you do this so that poetry builds the virtual environment in your project directory:
poetry config virtualenvs.in-project true
- Next, I like working on a fork rather than the actual repository of record.
I set my git remotes
so that
origin
points to my fork, andupstream
points to the 'upstream' repository.
➜ isocomp git:(develop) ✗ git remote -v
origin https://github.com/cmatKhan/isocomp.git (fetch)
origin https://github.com/cmatKhan/isocomp.git (push)
upstream https://github.com/collaborativebioinformatics/isocomp.git (fetch)
upstream https://github.com/collaborativebioinformatics/isocomp.git (push)
- On your machine,
cd
into your local repository,git checkout
the development branch, and make sure it is up-to-date with the upstream (ie the original) repository.
NOTE: if you branch, in general make sure you branch off the develop
repo, not main
!
- Create a virtual environment in the current directory like so:
poetry install
This will install the virtual environment with the dependencies (and the dependencies' dependencies) listed in the pyproject.toml.
- If you wish to simultaneously develop both code and docs, then you can start the documentation development server:
mkdocs serve