-
Notifications
You must be signed in to change notification settings - Fork 75
Pypi packaging #626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Pypi packaging #626
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
ae59566
improve some metadata for packaging purposes
bpkroth ad210d9
add some comments about the keyvault secrets configs
bpkroth de9821a
remove reference to an old file
bpkroth 2d8aeab
comments
bpkroth 0cb681f
Bump version: 0.1.0 → 0.2.0
bpkroth 1b5fcc6
improvements on readme
bpkroth 29eaefb
Bump version: 0.2.0 → 0.2.1
bpkroth 944472b
initial attempts at publishing pypi packages
bpkroth 797d6d3
fixups for when matplotlib is not installed
bpkroth 3b40ded
Bump version: 0.2.1 → 0.2.2
bpkroth abf48ad
fixups
bpkroth 919fd95
Revert "Bump version: 0.2.1 → 0.2.2"
bpkroth 74037fc
tweak
bpkroth ec793a4
Bump version: 0.2.1 → 0.2.2
bpkroth eaa8e64
fixups
bpkroth 07c60fb
Add rules for publishing packages
bpkroth 90f550f
need the extra file for the container build
bpkroth 3284c42
pylint fixups
bpkroth 4b39ff8
don't require the readme to rebuild the devcontainer - breaks the cache
bpkroth de431e9
remove explicit version numbers from the readme
bpkroth dee63d1
update readme
bpkroth 46523e7
fixups
bpkroth 857f635
tweaks
bpkroth 241f749
link fixup
bpkroth 8993a67
fixups
bpkroth d45293f
also tag devcontainers
bpkroth 59b471f
cosmetic
bpkroth 9124792
FIXME: increase rebuild timeout
bpkroth 7c58d23
testing
bpkroth e42b1ce
to avoid file overwrites only execute on tag pushes, not release
bpkroth 7734d31
comments
bpkroth b3ffe04
add a sanity check on the tag
bpkroth 17f830d
add notes for making a release
bpkroth a40f4ed
notes
bpkroth 75bb8cb
Bump version: 0.2.2 → 0.2.3
bpkroth 988fa56
readme updates
bpkroth 34a8944
debugging
bpkroth 60c1643
fixup
bpkroth 136abe9
remove testing
bpkroth 16cf5a8
Bump version: 0.2.3 → 0.2.4
bpkroth 405b033
Merge branch 'main' into pypi-packaging
bpkroth e7defbd
Update Makefile
bpkroth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,55 @@ | ||
| # Maintaining | ||
|
|
||
| Some notes for maintainers. | ||
|
|
||
| ## Releasing | ||
|
|
||
| 1. Bump the version using the [`update-version.sh`](./scripts/update-version.sh) script: | ||
|
|
||
| ```sh | ||
| git checkout -b bump-version main | ||
| ./scripts/update-version.sh patch # or minor or major | ||
| ``` | ||
|
|
||
| > This will create a commit and local git tag for that version. | ||
| > You won't be able to create a release from that, so don't push it. | ||
|
|
||
| 2. Test it! | ||
|
|
||
| ```sh | ||
| make dist-test | ||
|
|
||
| # Make sure that the version number on the wheels looks correct. | ||
| ls */dist/*.whl | ||
| ``` | ||
|
|
||
| 3. Make and merge a PR. | ||
|
|
||
| 4. Update the tag locally. | ||
|
|
||
| Once the PR with the new version files is merged. | ||
|
|
||
| ```sh | ||
| git checkout main | ||
| git pull | ||
| git tag vM.m.p | ||
| ``` | ||
|
|
||
| > Note: `M.m.p` is the version number you just bumped to above. | ||
|
|
||
| 5. Retest! | ||
|
|
||
| ```sh | ||
| make dist-clean | ||
| make dist-test | ||
| ``` | ||
|
|
||
| 6. Update the tag remotely. | ||
|
|
||
| ```sh | ||
| git push --tags | ||
| ``` | ||
|
|
||
| > Once this is done, the rules in [`.github/workflows/devcontainer.yml`](./.github/workflows/devcontainer.yml) will automatically publish the wheels to [pypi](https://pypi.org/project/mlos-core/) and tagged docker images to ACR. | ||
| > \ | ||
| > Note: This may fail if the version number is already published to pypi, in which case start from the beginning. |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -7,4 +7,4 @@ | |
| """ | ||
|
|
||
| # NOTE: This should be managed by bumpversion. | ||
| _VERSION = '0.1.0' | ||
| _VERSION = '0.2.4' | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.