-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use Jupyter Releaser * Automated Changelog Entry for 6.4.0a0 on notebook-releaser * Publish 6.4.0a0 SHA256 hashes: dist/notebook-6.4.0a0-py3-none-any.whl: abbbbb02504cedb85c2d5eeac39ea11615360b9b0075126bf180d6011eac14a5 dist/notebook-6.4.0a0.tar.gz: 2984630a020a9396c61b2c3b98f43b1957dd0121b162a926b3d6136fafa7ca16 * Bump to 6.5.0.dev0 * Remove jupyter_packaging as a runtime requirement * Automated Changelog Entry for 6.4.0a1 on notebook-releaser * Publish 6.4.0a1 SHA256 hashes: dist/notebook-6.4.0a1-py3-none-any.whl: 4b0ae5cb972b5b16b18b942810b85859185ef2081017dd495e5f57099ce06ef4 dist/notebook-6.4.0a1.tar.gz: c48e10d34afa35e304e3b7deca1882508195960f35c4661dec044bb8da344ae5 * Bump to 6.5.0.dev0 * Update notebook/_version.py Co-authored-by: Kevin Bates <[email protected]> * Update pyproject.toml Co-authored-by: Kevin Bates <[email protected]> Co-authored-by: GitHub Action <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Steven Silvester <[email protected]> Co-authored-by: Kevin Bates <[email protected]>
- Loading branch information
1 parent
008a6c0
commit c19323d
Showing
15 changed files
with
147 additions
and
33 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,57 @@ | ||
name: Check Release | ||
on: | ||
push: | ||
branches: ["master"] | ||
pull_request: | ||
branches: ["*"] | ||
|
||
permissions: | ||
contents: | ||
write | ||
|
||
jobs: | ||
check_release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
architecture: "x64" | ||
- name: Install node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14.x' | ||
- name: Get pip cache dir | ||
id: pip-cache | ||
run: | | ||
echo "::set-output name=dir::$(pip cache dir)" | ||
- name: Cache pip | ||
uses: actions/cache@v1 | ||
with: | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
${{ runner.os }}-pip- | ||
- name: Cache checked links | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pytest-link-check | ||
key: ${{ runner.os }}-linkcheck-${{ hashFiles('**/.md') }}-md-links | ||
restore-keys: | | ||
${{ runner.os }}-linkcheck- | ||
- name: Upgrade packaging dependencies | ||
run: | | ||
pip install --upgrade pip setuptools wheel --user | ||
- name: Install Dependencies | ||
run: | | ||
pip install -e . | ||
- name: Check Release | ||
env: | ||
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }} | ||
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -54,3 +54,5 @@ geckodriver.log | |
|
||
# copied changelog | ||
docs/source/changelog.md | ||
|
||
.jupyter_releaser_checkout |
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,42 +1,48 @@ | ||
# Making a Release of Notebook | ||
|
||
## Start from a fresh git checkout and conda environment | ||
## Using `jupyter_releaser` | ||
|
||
### Set the release branch | ||
The recommended way to make a release is to use [`jupyter_releaser`](https://github.com/jupyter-server/jupyter_releaser#checklist-for-adoption). | ||
|
||
## Manual Release Process | ||
|
||
### Start from a fresh git checkout and conda environment | ||
|
||
#### Set the release branch | ||
|
||
```bash | ||
export release_branch=master | ||
``` | ||
|
||
### Create the git checkout | ||
#### Create the git checkout | ||
|
||
```bash | ||
git clone [email protected]:jupyter/notebook.git | ||
cd notebook | ||
git checkout ${release_banch} | ||
``` | ||
|
||
### Create and activate the conda environment | ||
#### Create and activate the conda environment | ||
|
||
```bash | ||
conda create -n notebook-release -c conda-forge jupyter | ||
conda activate notebook-release | ||
``` | ||
|
||
## Perform a local dev install | ||
### Perform a local dev install | ||
|
||
```bash | ||
pip install -ve . | ||
``` | ||
|
||
## Install release dependencies | ||
### Install release dependencies | ||
|
||
```bash | ||
conda install -c conda-forge nodejs babel twine | ||
conda install -c conda-forge nodejs babel twine build | ||
npm install -g po2json | ||
``` | ||
|
||
## Update the version | ||
### Update the version | ||
|
||
```bash | ||
vim notebook/_version.py | ||
|
@@ -45,29 +51,28 @@ git commit -am "Release $(python setup.py --version)" | |
git tag $(python setup.py --version) | ||
``` | ||
|
||
## Create the artifacts | ||
### Create the artifacts | ||
|
||
```bash | ||
rm -rf dist | ||
python setup.py sdist | ||
python setup.py bdist_wheel | ||
python -m build . | ||
``` | ||
|
||
## Upload the artifacts | ||
### Upload the artifacts | ||
|
||
```bash | ||
twine check dist/* && twine upload dist/* | ||
``` | ||
|
||
## Change back to dev version | ||
### Change back to dev version | ||
|
||
```bash | ||
vim notebook/_version.py # Add the .dev suffix | ||
python setup.py jsversion | ||
git commit -am "Back to dev version" | ||
``` | ||
|
||
## Push the commits and tags | ||
### Push the commits and tags | ||
|
||
```bash | ||
git push origin ${release_branch} --tags | ||
|
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,4 +1,4 @@ | ||
# Notebook Examples | ||
|
||
The pages in this section are all converted notebook files. You can also | ||
[view these notebooks on nbviewer](http://nbviewer.jupyter.org/github/jupyter/notebook/blob/master/) | ||
[view these notebooks on nbviewer](http://nbviewer.jupyter.org/github/jupyter/notebook/tree/master/) |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[build-system] | ||
requires=["jupyter_packaging~=0.9,<2"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.check-manifest] | ||
ignore = ["docs-translations/**", ".*", "*.yml", "*.less", "git-hooks/**", "MANIFEST.in", "RELEASE.md", "jupyter.svg", "notebook/static/**", "notebook/i18n/**/*.json", "docs/source/*.*"] | ||
ignore-bad-ideas = ["notebook/i18n/**/*.mo"] | ||
|
||
[tool.jupyter-releaser.hooks] | ||
after-bump-version = "python setup.py jsversion" | ||
before-build-python = ["pip install babel", "npm install -g po2json"] | ||
|
||
[tool.jupyter-releaser.options] | ||
ignore-glob = ["docs/source/examples/Notebook/Working With Markdown Cells.ipynb", "docs-translations/**/README.md", "docs/source/contributing.rst", "docs/source/examples/Notebook/JavaScript Notebook Extensions.ipynb", "CHANGELOG.md"] | ||
|
||
[tool.tbump.version] | ||
current = "6.4.0a1" | ||
regex = ''' | ||
(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+) | ||
((?P<channel>a|b|rc|.dev)(?P<release>\d+))? | ||
''' | ||
|
||
[tool.tbump.git] | ||
message_template = "Bump to {new_version}" | ||
tag_template = "v{new_version}" | ||
|
||
[[tool.tbump.file]] | ||
src = "notebook/_version.py" |
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