MRChem is a numerical real-space code for molecular electronic structure calculations within the self-consistent field (SCF) approximations of quantum chemistry (Hartree-Fock and Density Functional Theory).
The code is being developed at the Hylleraas Centre for Quantum Molecular Sciences at UiT - The Arctic University of Norway.
User support: mrchem.slack.com
Documentation: mrchem.readthedocs.io
This project adheres to a semantic versioning scheme,
with MAJOR
.MINOR
.PATCH
-LABEL
MAJOR
: Introduces backward incompatible changes to the APIMINOR
: Introduces new features without breaking backward compatibilityPATCH
: Only simple bugfixesLABEL
: Marks a pre-released version or release candidate
We will try to keep only a single line of development on the master
branch, and from this branch off to tag new releases. The type of release
(MAJOR
or MINOR
) is determined by the nature of the introduced changes.
MAJOR
changes should not be introduced lightly, and could be held back at pull
request-level in anticipation of prior MINOR
release(s). Once a new MAJOR
is
released, the development on the old MAJOR
is terminated and no MINOR
pull
requests will be accepted on top of old MAJOR
s, only simple PATCH
es.
In the following, X, Y and Z should always be substituted with appropriate numeric values, they should never appear as 'X', 'Y' or 'Z' in any version or branch name.
The upstream MRChemSoft/mrchem repository should contain only two kinds of
branches: the master
branch which represents the main development line, as
well as a separate release/X.Y
branch for each MINOR
release. All PATCH
releases are applied linearly on the MINOR
release branches.
- This branch should not carry any release tags
- New features should always be directed to this branch
- Bugfixes may be directed to this branch
- Bugfixes may be cherry-picked from
release
branches, but never merged - The VERSION file should point to the next expected release,
and always carry the pre-release label
-alpha
- When a new
release/X.Y
branch is created, the VERSION file onmaster
is bumped to the next expectedMAJOR
/MINOR
, i.e.X.(Y+1).0-alpha
or(X+1).0.0-alpha
- This branch should carry all release tags associated with the
X.Y
MINOR
release, includingPATCH
es and release candidates-alpha1
,-alpha2
, etc - The VERSION file should point to the latest release tag on this branch
- The creation of this branch marks a feature freeze for version
X.Y
- New features should never be directed to this branch
- Bugfixes and release preparations may be directed to this branch
- Bugfixes may be cherry-picked from
master
, but never merged
All code changes are incorporated through the fork -> pull request (PR) -> code review
work flow, with the following principles:
- New features should always branch off
master
- Bugfixes may branch off either
master
orrelease/X.Y
- PRs should always be directed back at its original base branch,
master
orrelease/X.Y
- Bugfixes should be small and specific (cherry-pickable)
- Cherry-picks between
master
andrelease
branches will be handled by code administrators - All version tagging and changes to the VERSION file will be handled by code administrators, and should not be part of any PR
- Always start from latest
master
- Branch off to a local feature branch
- Implement new feature
- Regularly incorporate the latest changes from
master
, by merging or (preferably) rebasing - File PR from the local feature branch back to
master
- Start from latest appropriate branch,
master
orrelease/X.Y
- Branch off to a local bugfix branch
- Implement bugfix
- Regularly incorporate the latest changes from original branch by rebasing
- File PR from the local bugfix branch back to original branch
- Evaluate whether the bugfix should be cherry-picked to other branches and communicate it to the administrators
You can install Git hooks to keep in check formatting and licensing headers:
cd .git/hooks
ln -s ../../.githooks/* .