mirror of
https://github.com/openmm/openmmforcefields.git
synced 2026-06-06 18:39:48 +09:00
Developer Notes / Tools
Assorted "How-To's" for developers
How to contribute changes
- Clone the repository if you have write access to the main repo, fork the repository if you are a collaborator.
- Make a new branch with
git checkout -b {your branch name} - Make changes and test your code
- Push the branch to the repo (either the main or your fork) with
git push -u origin {your branch name}- Note that
originis the default name assigned to the remote, yours may be different
- Note that
- Make a PR on GitHub with your changes
- We'll review the changes and get your code into the repo after lively discussion!
Checklist for all Updates
- Update
setup.pyversion number (see specific update type for details) - Make sure there is an/are issue(s) opened for your specific update
- Create the PR, referencing the issue
- Debug the PR as needed until tests pass
- Tag the final, debugged version as the one in
setup.pygit tag -a X.Y.Z [latest pushed commit] && git push --follow-tags
- Get the PR merged in
Checklist for Major Revisions (openmm-forcefields X.Y+1.0)
- Make sure all issues related to the milestone will be closed by this commit or moved to future releases
- Update
docs/whatsnew.rst - Update
setup.pywith version number andISRELEASEDtoTrue - Do the steps for All Upates
- Create a new release on GitHub, reference the tag and copy the changes in
docs/whatsnew.rst - Update the
omnia-md/conda-recipiesrepo by creating a new PR with updated versions- Be sure to pin dependencies to fixed version
Checklist for Minor Revisions (openmm-forcefields X.Y.Z+1)
- Update
setup.pywith the correct Z version number in X.Y.Z - In
setup.py, setISRELEASEDtoFalse - Do all the steps for All Updates
- If this is a critical bugfix (i.e.
openmm-forcefieldsX.Y.0 is broken and/or flat out wrong without the fix):
- If this is a critical bugfix (i.e.
- Update
docs/whatsnew.rst - Update the released version on the site to this version, adjusting the tag and note that this is a critical bugfix which corrects the X.Y release
- Update the
omnia-md/conda-recipiesrepo to point at the corrected version