-
Notifications
You must be signed in to change notification settings - Fork 38
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 #59 from blink1073/use-releaser
Prep for jupyter releaser usage
- Loading branch information
Showing
7 changed files
with
106 additions
and
1 deletion.
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,29 @@ | ||
name: Check Release | ||
on: | ||
push: | ||
branches: ["master"] | ||
pull_request: | ||
branches: ["*"] | ||
|
||
jobs: | ||
check_release: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
group: [check_release, link_check] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Base Setup | ||
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 | ||
- name: Install Dependencies | ||
run: | | ||
pip install -e . | ||
- name: Check Release | ||
if: ${{ matrix.group == 'check_release' }} | ||
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Run Link Check | ||
if: ${{ matrix.group == 'link_check' }} | ||
uses: jupyter-server/jupyter_releaser/.github/actions/check-links@v1 |
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,11 @@ | ||
name: Enforce PR label | ||
|
||
on: | ||
pull_request: | ||
types: [labeled, unlabeled, opened, edited, synchronize] | ||
jobs: | ||
enforce-label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: enforce-triage-label | ||
uses: jupyterlab/maintainer-tools/.github/actions/enforce-label@v1 |
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,22 @@ | ||
# Changelog | ||
|
||
<!-- <START NEW CHANGELOG ENTRY> --> | ||
|
||
## 0.3 | ||
|
||
([Full Changelog](https://github.com/jupyter/jupyter_kernel_test/compare/7283c8c...309feed)) | ||
|
||
### Merged PRs | ||
|
||
- Add stop_on_error [#32](https://github.com/jupyter/jupyter_kernel_test/pull/32) ([@shzhng](https://github.com/shzhng)) | ||
- Update README.rst [#29](https://github.com/jupyter/jupyter_kernel_test/pull/29) ([@maveme](https://github.com/maveme)) | ||
- Made stdout/stderr tests less order dependent. [#28](https://github.com/jupyter/jupyter_kernel_test/pull/28) ([@mariusvniekerk](https://github.com/mariusvniekerk)) | ||
- Convert readthedocs links for their .org -> .io migration for hosted projects [#26](https://github.com/jupyter/jupyter_kernel_test/pull/26) ([@adamchainz](https://github.com/adamchainz)) | ||
|
||
### Contributors to this release | ||
|
||
([GitHub contributors page for this release](https://github.com/jupyter/jupyter_kernel_test/graphs/contributors?from=2016-06-13&to=2017-04-28&type=c)) | ||
|
||
[@adamchainz](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_kernel_test+involves%3Aadamchainz+updated%3A2016-06-13..2017-04-28&type=Issues) | [@mariusvniekerk](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_kernel_test+involves%3Amariusvniekerk+updated%3A2016-06-13..2017-04-28&type=Issues) | [@maveme](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_kernel_test+involves%3Amaveme+updated%3A2016-06-13..2017-04-28&type=Issues) | [@shzhng](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_kernel_test+involves%3Ashzhng+updated%3A2016-06-13..2017-04-28&type=Issues) | [@takluyver](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_kernel_test+involves%3Atakluyver+updated%3A2016-06-13..2017-04-28&type=Issues) | ||
|
||
<!-- <END NEW CHANGELOG ENTRY> --> |
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 +1,2 @@ | ||
include *.py | ||
include *.md |
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,25 @@ | ||
# Release Guide | ||
|
||
## Using `jupyter_releaser` | ||
|
||
The recommended way to make a release is to use [`jupyter_releaser`](https://github.com/jupyter-server/jupyter_releaser#checklist-for-adoption). | ||
|
||
## Manual Release | ||
|
||
- Update `CHANGELOG` | ||
|
||
- Run the following: | ||
|
||
```bash | ||
export VERSION=<version> | ||
pip install jupyter_releaser | ||
tbump --only-patch $VERSION | ||
git commit -a -m "Release $VERSION" | ||
git tag $VERSION; true; | ||
git push --all | ||
git push --tags | ||
rm -rf dist build | ||
python -m build . | ||
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
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,3 +1,20 @@ | ||
[build-system] | ||
requires = ["setuptools", "jupyter_client", "jsonschema"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.jupyter-releaser] | ||
skip = ["check-links"] | ||
|
||
[tool.tbump.version] | ||
current = "0.3.0" | ||
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 = "jupyter_kernel_test/__init__.py" |