-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #477 from jtpio/packaging-0-9
Use Jupyter Packaging
- Loading branch information
Showing
16 changed files
with
247 additions
and
1,241 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
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
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,41 +1,44 @@ | ||
# Making a Jupyter Server Release | ||
To create a release, perform the following steps... | ||
|
||
## Remove untracked files | ||
## Set up | ||
``` | ||
pip install tbump twine build | ||
git pull origin $(git branch --show-current) | ||
git clean -dffx | ||
``` | ||
|
||
## Update the version and apply the tag | ||
``` | ||
vim jupyter_server/_version.py | ||
export script_version=`python setup.py --version 2>/dev/null` | ||
git commit -a -m "Release $script_version" | ||
git tag $script_version | ||
echo "Enter new version" | ||
read script_version | ||
tbump ${script_version} | ||
git commit -a -m "Release ${script_version}" | ||
git tag $script_version -m "Release ${script_version}" | ||
``` | ||
|
||
## Build the artifacts | ||
``` | ||
rm -rf dist | ||
python setup.py sdist | ||
python setup.py bdist_wheel | ||
python -m build . | ||
``` | ||
|
||
## Update the version back to dev | ||
``` | ||
vim jupyter_server/_version.py | ||
echo "Enter dev version" | ||
read dev_version | ||
tbump ${dev_version} | ||
git commit -a -m "Back to dev version" | ||
``` | ||
|
||
## Push the commits and tag | ||
``` | ||
git push --all | ||
git push --tags | ||
git push origin $(git branch --show-current) | ||
git push origin --tags | ||
``` | ||
|
||
## Publish the artifacts to pypi | ||
``` | ||
pip install twine | ||
twine check dist/* | ||
twine check dist/* | ||
twine upload dist/* | ||
``` |
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
Oops, something went wrong.