Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
Ready to contribute? Here's how to set up napari-aicsimageio
for local development.
-
Fork the
napari-aicsimageio
repo on GitHub. -
Clone your fork locally:
git clone [email protected]:{your_name_here}/napari-aicsimageio.git
-
Install the project in editable mode. (It is also recommended to work in a virtualenv or anaconda environment):
cd napari-aicsimageio/ pip install -e .[dev]
If you are working on a Linux based machine you may need to additionally install some QT setup libraries
sudo apt-get install -y libdbus-1-3 libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xinput0 libxcb-xfixes0 xvfb
-
Create a branch for local development:
git checkout -b {your_development_type}/short-description
Ex: feature/read-tiff-files or bugfix/handle-file-not-found
Now you can make your changes locally. -
Download test resources:
python scripts/download_test_resources.py
-
When you're done making changes, check that your changes pass linting and tests, including testing other Python versions with make:
make build
-
Commit your changes and push your branch to GitHub:
git add . git commit -m "Resolves gh-###. Your detailed description of your changes." git push origin {your_development_type}/short-description
-
Submit a pull request through the GitHub website.
A reminder for the maintainers on how to deploy. Make sure the main branch is checked out and all desired changes are merged. Then run:
$ git tag -a "vX.Y.Z" -m "vX.Y.Z"
$ git push upstream --follow-tags
(The -a
flag indicates an annotated tag)
The presence of a tag starting with "v" will trigger the publish
step in the
main github workflow, which will build the package and upload it to PyPI. The
version will be injected into the package metadata by
setuptools-scm