-
Notifications
You must be signed in to change notification settings - Fork 61
Add releasing docs for python artifacts (jobclient, sidecar, cli) #2066
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| Releasing Cook Executor | ||
| ======================= | ||
|
|
||
| Cook CLI is released on [PyPI](https://pypi.org/project/cook-executor/) | ||
|
|
||
| Prerequisites | ||
| ------------- | ||
| Ensure you can build the cli following the instructions in README.md | ||
|
|
||
| Install `twine`: | ||
| ```bash | ||
| pip3 install twine | ||
| ``` | ||
|
|
||
| Update version number | ||
| ------------ | ||
| Look at setup.py, and edit the version number which may reference another python variable to be edited. | ||
|
|
||
| Test Release | ||
| ------------ | ||
| Since PyPI does not allow modifying releases, it can be useful to test a release using their test instance. | ||
| ```bash | ||
| rm -rf dist/* | ||
| python3 setup.py sdist bdist_wheel | ||
| python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/* | ||
| ``` | ||
| Then, in a separate virtualenv for testing: | ||
| ```bash | ||
| pip3 install --index-url https://test.pypi.org/simple/ --no-deps cook-executor==$VERSION | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CLI is cook-client There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (this is a few places in this file, btw) |
||
| pip3 install # install any other required dependencies from the main pypi repo | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This part was confusing to me. I ended up installing cook-client |
||
| ``` | ||
| If there is an issue with the release, you can just release another version. They are GC-ed periodically from the test instance. | ||
|
|
||
| Production Release | ||
| ------------------ | ||
| When you're ready to release the final version, just build and upload to the standard PyPI repo. | ||
| ```bash | ||
| rm -rf dist/* | ||
| python3 setup.py sdist bdist_wheel | ||
| python3 -m twine upload dist/* | ||
| ``` | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| Releasing Cook Executor | ||
| ======================= | ||
|
|
||
| Cook's Jobclient API is released on [PyPI](https://pypi.org/project/cook-executor/) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| Prerequisites | ||
| ------------- | ||
| Ensure you can build it following the instructions in README.md | ||
|
|
||
| Install `twine`: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also install |
||
| ```bash | ||
| pip3 install twine | ||
| ``` | ||
| Update version number | ||
| ------------ | ||
| Look at setup.py, and edit the version number which may reference another python variable to be edited. | ||
|
|
||
| Test Release | ||
| ------------ | ||
| Since PyPI does not allow modifying releases, it can be useful to test a release using their test instance. | ||
| ```bash | ||
| rm -rf dist/* | ||
| python3 setup.py sdist bdist_wheel | ||
| python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/* | ||
| ``` | ||
| Then, in a separate virtualenv for testing: | ||
| ```bash | ||
| pip3 install --index-url https://test.pypi.org/simple/ --no-deps cook-executor==$VERSION | ||
| pip3 install # install any other required dependencies from the main pypi repo | ||
| ``` | ||
| If there is an issue with the release, you can just release another version. They are GC-ed periodically from the test instance. | ||
|
|
||
| Production Release | ||
| ------------------ | ||
| When you're ready to release the final version, just build and upload to the standard PyPI repo. | ||
| ```bash | ||
| rm -rf dist/* | ||
| python3 setup.py sdist bdist_wheel | ||
| python3 -m twine upload dist/* | ||
| ``` | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| Releasing Cook Executor | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file still says executor in some places |
||
| ======================= | ||
|
|
||
| Cook Sidecar is released on [PyPI](https://pypi.org/project/cook-executor/) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| Prerequisites | ||
| ------------- | ||
| Ensure you can build the sidecar following the instructions in README.md | ||
|
|
||
| Install `twine`: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also install |
||
| ```bash | ||
| pip3 install twine | ||
| ``` | ||
|
|
||
| Update version number | ||
| ------------ | ||
| Look at setup.py, and edit the version number which may reference another python variable to be edited. | ||
|
|
||
| Test Release | ||
| ------------ | ||
| Since PyPI does not allow modifying releases, it can be useful to test a release using their test instance. | ||
| ```bash | ||
| rm -rf dist/* | ||
| python3 setup.py sdist bdist_wheel | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure if this is worth mentioning or if this is just some Python distribution basics that I missed, but |
||
| python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/* | ||
| ``` | ||
| Then, in a separate virtualenv for testing: | ||
| ```bash | ||
| pip3 install --index-url https://test.pypi.org/simple/ --no-deps cook-executor==$VERSION | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| pip3 install # install any other required dependencies from the main pypi repo | ||
| ``` | ||
| If there is an issue with the release, you can just release another version. They are GC-ed periodically from the test instance. | ||
|
|
||
| Production Release | ||
| ------------------ | ||
| When you're ready to release the final version, just build and upload to the standard PyPI repo. | ||
| ```bash | ||
| rm -rf dist/* | ||
| python3 setup.py sdist bdist_wheel | ||
| python3 -m twine upload dist/* | ||
| ``` | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also install
wheelto be able tobdist_wheel