Skip to content

Commit c517811

Browse files
authored
Merge pull request #3 from jupyterlab/releaser
Add `check-release` workflow on CI
2 parents d54788b + e8ab090 commit c517811

File tree

6 files changed

+68
-22
lines changed

6 files changed

+68
-22
lines changed

.github/workflows/check-release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Check Release
2+
on:
3+
push:
4+
branches:
5+
- "*"
6+
pull_request:
7+
branches:
8+
- "*"
9+
10+
permissions:
11+
contents:
12+
write
13+
14+
jobs:
15+
check_release:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
group: [check_release, link_check]
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
24+
- name: Base Setup
25+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
26+
27+
- name: Install Dependencies
28+
run: |
29+
pip install -e .
30+
31+
- name: Check Release
32+
if: ${{ matrix.group == 'check_release' }}
33+
env:
34+
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
35+
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v1
36+
with:
37+
token: ${{ secrets.GITHUB_TOKEN }}
38+
39+
- name: Check Links
40+
if: ${{ matrix.group == 'link_check' }}
41+
uses: jupyter-server/jupyter_releaser/.github/actions/check-links@v1

.github/workflows/enforce-label.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Enforce PR label
2+
3+
on:
4+
pull_request:
5+
types: [labeled, unlabeled, opened, edited, synchronize]
6+
jobs:
7+
enforce-label:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: enforce-triage-label
11+
uses: jupyterlab/maintainer-tools/.github/actions/enforce-label@v1

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,30 @@ This project provides a way for JupyterLab and other frontends to switch to [Jup
55
## Basic Usage
66

77
Install from PyPI:
8+
89
```
9-
> pip install notebook_shim
10+
pip install notebook_shim
1011
```
12+
1113
This will automatically enable the extension in Jupyter Server.
1214

1315
## Usage
1416

1517
This project also includes an API for shimming traits that moved from `NotebookApp` in to `ServerApp` in Jupyter Server. This can be used by applications that subclassed `NotebookApp` to leverage the Python server backend of Jupyter Notebooks. Such extensions should *now* switch to `ExtensionApp` API in Jupyter Server and add `NotebookConfigShimMixin` in their inheritance list to properly handle moved traits.
1618

1719
For example, an application class that previously looked like:
20+
1821
```python
1922
from notebook.notebookapp import NotebookApp
2023

2124
class MyApplication(NotebookApp):
2225
```
26+
2327
should switch to look something like:
28+
2429
```python
2530
from jupyter_server.extension.application import ExtensionApp
2631
from notebook_shim.shim import NotebookConfigShimMixin
2732

2833
class MyApplication(NotebookConfigShimMixin, ExtensionApp):
29-
```
30-
34+
```

RELEASE.md

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
1-
To create a release, update the version number in `noetbook_shim/__version__.py`, then run the following:
1+
# Making a Release of `notebook_shim`
22

3-
```
4-
git clean -dffx
5-
python setup.py sdist
6-
python setup.py bdist_wheel
7-
export script_version=`python setup.py --version 2>/dev/null`
8-
git commit -a -m "Release $script_version"
9-
git tag $script_version
10-
git push --all
11-
git push --tags
12-
pip install twine
13-
twine check dist/*
14-
twine upload dist/*
15-
```
3+
## Using `jupyter_releaser`
4+
5+
The recommended way to make a release is to use [`jupyter_releaser`](https://github.com/jupyter-server/jupyter_releaser#checklist-for-adoption).

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ testpaths = [
1515
skip = ["check-links"]
1616

1717
[tool.tbump.version]
18-
current = "0.4.0.dev0"
18+
current = "0.1.0"
1919
regex = '''
2020
(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
2121
((?P<channel>a|b|rc|.dev)(?P<release>\d+))?

setup.cfg

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[metadata]
22
name = notebook_shim
33
version = attr: notebook_shim._version.__version__
4-
description = Jupyter Notebook as a Jupyter Server extension.
4+
description = A shim layer for notebook traits and config
55
long_description = file: README.md
66
long_description_content_type = text/markdown
77
license_file = LICENSE
88
author = Jupyter Development Team
99
author_email = [email protected]
10-
url = https://jupyter.org
10+
url = https://github.com/jupyterlab/notebook_shim
1111
platforms = Linux, Mac OS X, Windows
1212
keywords = ipython, jupyter
1313
classifiers =
@@ -16,16 +16,16 @@ classifiers =
1616
Intended Audience :: Science/Research
1717
License :: OSI Approved :: BSD License
1818
Programming Language :: Python
19-
Programming Language :: Python :: 3.6
2019
Programming Language :: Python :: 3.7
2120
Programming Language :: Python :: 3.8
2221
Programming Language :: Python :: 3.9
22+
Programming Language :: Python :: 3.10
2323

2424
[options]
2525
zip_safe = False
2626
include_package_data = True
2727
packages = find:
28-
python_requires = >=3.6
28+
python_requires = >=3.7
2929
install_requires =
3030
jupyter_server~=1.8
3131

0 commit comments

Comments
 (0)