Add bump2version [skip ci] (#2460)

Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
This commit is contained in:
Andrey Smelter 2022-05-05 10:45:09 -06:00 committed by GitHub
parent 6e3de5734f
commit 25133aff26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 20 deletions

View File

@ -20,15 +20,17 @@ the latest release branch named `stable` (due to ReadTheDocs constraints).
2. Set the version in:
- `src/js/package.json`,
- `docs/project/about.md` (the Zenodo citation),
- `docs/development/building-from-sources.md`,
- `docs/usage/downloading-and-deploying.md`,
- `setup.cfg`,
- `src/js/package.json`,
- `src/py/pyodide/__init__.py`,
- `src/py/setup.cfg`,
- `pyodide-build/setup.cfg`,
- ... other places
- Bump version in source code files by running `bump2version` command, for example,
```bash
bump2version minor
```
check that the diff is correct with `git diff` before committing.
After this, try using `ripgrep` to make sure there are no extra old versions
lying around e.g., `rg -F "0.18"`, `rg -F dev0`, `rg -F dev.0`.

View File

@ -15,3 +15,5 @@
pytest-rerunfailures
pytest-xdist
selenium==4.1.0
# maintenance
bump2version

View File

@ -19,22 +19,22 @@ testpaths =
[bumpversion]
current_version = 0.20.0
commit = True
tag = True
commit = False
tag = False
tag_name = {new_version}
[bumpversion:file:src/pyodide.py]
search = __version__ = '{current_version}'
replace = __version__ = '{new_version}'
[bumpversion:file:src/py/pyodide/__init__.py]
search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"
[bumpversion:file:Makefile]
search = iodide.io/v{current_version}
replace = iodide.io/v{new_version}
[bumpversion:file:src/py/setup.cfg]
search = version = {current_version}
replace = version = {new_version}
[bumpversion:file:docs/pypi.md]
search = iodide.io/v{current_version}
replace = iodide.io/v{new_version}
[bumpversion:file:pyodide-build/setup.cfg]
search = version = {current_version}
replace = version = {new_version}
[bumpversion:file:docs/using_pyodide_from_javascript.md]
search = iodide.io/v{current_version}
replace = iodide.io/v{new_version}
[bumpversion:file:run_docker]
search = PYODIDE_PREBUILT_IMAGE_TAG="{current_version}"
replace = PYODIDE_PREBUILT_IMAGE_TAG="{new_version}"