-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add pyproject.toml * Remove setup.cfg and setup.py * Update version lookup * Update workfows to use poetry * Update .readthedocs.yaml for poetry * Update DEVELOPING.rst for poetry * Update pyproject and poetry.lock * Remove url from pyproject.toml * Use poetry for tests * Add default shell for fixing Windows * Remove ixmp4 developing instructions
- Loading branch information
1 parent
44bc04e
commit 662a0eb
Showing
12 changed files
with
2,822 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,70 @@ | ||
Local development | ||
***************** | ||
|
||
Nomenclature uses poetry for local development. Follow these steps to get setup: | ||
|
||
|
||
```bash | ||
# clone the nomenclature repository | ||
git clone git@github.com:IAMconsortium/nomenclature.git | ||
cd nomenclature | ||
# Install Poetry, minimum version >=1.2 required | ||
curl -sSL https://install.python-poetry.org | python - | ||
# You may have to reinitialize your shell at this point. | ||
source ~/.bashrc | ||
# Activate in-project virtualenvs | ||
poetry config virtualenvs.in-project true | ||
# Add dynamic versioning plugin | ||
poetry self add "poetry-dynamic-versioning[plugin]" | ||
# Install dependencies | ||
# (using "--with dev,docs,server" if dev and docs dependencies should be installed as well) | ||
poetry install --with dev,docs | ||
# Activate virtual environment | ||
poetry shell | ||
``` | ||
|
||
Release procedure | ||
***************** | ||
|
||
0. Before releasing, check that the "pytest" GitHub action on the current "main" branch | ||
1. Before releasing, check that the "pytest" GitHub action on the current "main" branch | ||
passes. Address any failures before releasing. | ||
|
||
1. Test on your local machine if the build runs by running ``python -m build --sdist | ||
2. Test on your local machine if the build runs by running ``python -m build --sdist | ||
--wheel --outdir dist/``. Fix any packaging issues or errors by creating a PR. | ||
|
||
2. Tag the release candidate (RC) version on the main branch as ``v<release | ||
3. Tag the release candidate (RC) version on the main branch as ``v<release | ||
version>rc<N>`` and push to upstream:: | ||
|
||
$ git tag v<release version>rc<N>> | ||
$ git push upstream v<release version>rc<N> | ||
|
||
3. Check that the GitHub action "Publish to PyPI and TestPyPI" was executed correctly | ||
4. Check that the GitHub action "Publish to PyPI and TestPyPI" was executed correctly | ||
and that the release candidate was successfully uploaded to TestPyPI. The address | ||
will be https://test.pypi.org/project/nomenclature-iamc/<release version>rc<N>/. | ||
E.g.: https://test.pypi.org/project/nomenclature-iamc/0.5rc1/ | ||
|
||
4. (Optional) Create a fresh virtual environment, download the release from TestPyPi and | ||
5. (Optional) Create a fresh virtual environment, download the release from TestPyPi and | ||
check that the install of package has worked correctly:: | ||
|
||
$ pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple nomenclature-iamc==v<release version>rc<N> | ||
|
||
5. Visit https://github.com/IAMconsortium/nomenclature/releases and mark the new release | ||
6. Visit https://github.com/IAMconsortium/nomenclature/releases and mark the new release | ||
by creating the tag and release simultaneously. The name of the tag is v<release | ||
version> (without the rc<N>). | ||
version> (without the rc<N>). | ||
|
||
6. Check that the "Publish to PyPI and TestPyPI" GitHub action passed and that the | ||
7. Check that the "Publish to PyPI and TestPyPI" GitHub action passed and that the | ||
distributions are published on https://pypi.org/project/nomenclature-iamc/ . | ||
|
||
7. Confirm that the doc pages are updated on | ||
8. Confirm that the doc pages are updated on | ||
https://nomenclature-iamc.readthedocs.io/en/stable/: | ||
|
||
- Both the latest and the stable versions point to the new release | ||
- The new release has been added to the list of available versions | ||
|
||
8. Confirm that the zenodo entry is updated on https://doi.org/10.5281/zenodo.5930653. | ||
9. Confirm that the zenodo entry is updated on https://doi.org/10.5281/zenodo.5930653. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.