-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Fix releasing pipeline adapters (#5662)
- Loading branch information
Showing
5 changed files
with
50 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# How to build and release | ||
|
||
The Makefile simplifies the process of building and releasing MLRun KFP Python packages to PyPI. | ||
|
||
## Prerequisites | ||
Before using this Makefile, ensure you have the following installed: | ||
|
||
- Python | ||
- `twine` package (`python -m pip install twine`) | ||
|
||
|
||
## Getting Started | ||
|
||
1. **Build Packages**: Run the following command to build your Python packages: | ||
```bash | ||
make build | ||
``` | ||
|
||
This command will build each package listed in PACKAGES. | ||
|
||
2. **Release Packages**: After building, you can release the packages to PyPI by running: | ||
```bash | ||
make release | ||
``` | ||
|
||
This command will upload the built distribution files to PyPI using twine. | ||
|
||
3. **Cleaning Up**: If needed, you can clean up the build artifacts by running: | ||
|
||
```bash | ||
make clean | ||
``` | ||
|
||
This command will remove the dist, build, and *.egg-info directories from each package directory. | ||
|
||
|
||
## Additional Notes | ||
|
||
- Ensure your TWINE_USERNAME and TWINE_PASSWORD are properly set before releasing to PyPI. | ||
- Make sure your package directories contain valid setup.py files. | ||
- Always review the release process and verify that the correct packages are being released. |
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