-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump version to 2.5.0 and document release process. (#256)
The `docs/releasing.md` file was first introduced next to the `build_release.py` script in nod-ai/SHARK-ModelDev#605. I don't see that file in this repository (iree-org/iree-turbine) though, despite nod-ai/SHARK-ModelDev#655 claiming that it had been upstreamed. Since the packages involved have changed over the months (shark-turbine --> iree-turbine naming, see also #28), I also updated the document to reflect the current setup. The `iree-requirements.txt` file was being used to pin versions of the `iree-compiler` and `iree-runtime` that would be released together with this `iree-turbine` package. That was overlooked when #115 removed pins from that file. I've reworked the script to reference `iree-requirements-ci.txt` for now, but we can continue to iterate on the cross-project release process going forward (with docs this time). I've updated the version in code from 2.3.0 to 2.5.0. We can push a release to https://github.com/iree-org/iree-turbine/releases and https://pypi.org/project/iree-turbine/#history using the new version next. Note that 2.3.1, 2.4.0, and 2.4.1 were released to PyPI without updating the code or GitHub releases.
- Loading branch information
Showing
5 changed files
with
101 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Releasing iree-turbine | ||
|
||
This project hosts the https://pypi.org/project/iree-turbine/ package, which | ||
depends on the https://pypi.org/project/iree-compiler/ and | ||
https://pypi.org/project/iree-runtime/ packages. Releases can either be | ||
conducted independently, or they can be coordinated across projects by | ||
initiating a release here. | ||
|
||
## Building Artifacts | ||
|
||
Build a pre-release: | ||
|
||
```bash | ||
./build_tools/build_release.py --package-version 2.5.0 --package-pre-version=rcYYYYMMDD | ||
``` | ||
|
||
Build an official release: | ||
|
||
```bash | ||
./build_tools/build_release.py --package-version 2.5.0 | ||
``` | ||
|
||
This will download all deps, including wheels for all supported platforms and | ||
Python versions for iree-compiler and iree-runtime. All wheels will be placed | ||
in the `wheelhouse/` directory. | ||
|
||
## Testing | ||
|
||
```bash | ||
./build_tools/post_build_release_test.sh | ||
``` | ||
|
||
This will | ||
|
||
1. Set up a python virtual environment using your default `python` version | ||
2. Install wheels from the `wheelhouse/` directory | ||
3. Run `pytest` tests | ||
|
||
## Push | ||
|
||
From the testing venv, verify that everything is sane: | ||
|
||
```bash | ||
pip freeze | ||
``` | ||
|
||
Push IREE deps (if needed/updated): | ||
|
||
```bash | ||
twine upload wheelhouse/iree_compiler-* wheelhouse/iree_runtime-* | ||
``` | ||
|
||
Push built wheels: | ||
|
||
```bash | ||
twine upload wheelhouse/iree_turbine-* | ||
``` | ||
|
||
## Install from PyPI and Sanity Check | ||
|
||
TODO: Script this | ||
|
||
From the testing venv: | ||
|
||
```bash | ||
pip uninstall -y iree-turbine iree-compiler iree-runtime | ||
pip install iree-turbine | ||
pytest . | ||
``` |
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 +1,3 @@ | ||
{"core-version": "2.3.0rc20240621", "package-version": "0.9.7.dev1"} | ||
{ | ||
"package-version": "2.5.0" | ||
} |