Instructions for Developers#
This file presents instructions for Pystra developers.
Create working repository with developer install#
Fork
PystraGitHub repositoryClone repo
git clone <forked-repo>
Create new Pystra developer environment
conda create -n pystra-dev python=3.10
Activate developer environment
conda activate pystra-dev
Change directory to pystra fork
Install developer version
pip install -e .
Install depedencies
conda install -c anaconda pytest conda install -c anaconda sphinx conda install -c conda-forge black pip install sphinx_autodoc_typehints pip install nbsphinx pip install pydata_sphinx_theme
Add
Pystraas upstreamgit remote add upstream https://github.com/pystra/pystra.git
Develop and create pull-request (PR)#
Create new branch
git checkout -b <new-branch>
Pull updates from Pystra main
git pull upstream main
Develop package
[If applicable] Create unit tests for
pytest.Store test file in
./tests/<test-file.py>.
[If applicable] Create new example notebook.
Store notebook in
./docs/source/notebooks/<tutorial.ipynb>.Index notebook in
./docs/source/tutorial.rst
[If applicable] Add new dependencies in
./setup.cfgBuild documentation
Change directory to
./docs/make cleanmake htmlxdg-open build/html/index.html
Update version number in the following files
./docs/source/index.rst./pystra/__init__.py
Stage changes; commit; and push to remote fork
Go to GitHub and create PR for the branch