Skip to content

Commit 827fc6a

Browse files
committed
Merge branch 'master' into refactor-gateway-km
2 parents b71bf81 + 5e77b73 commit 827fc6a

30 files changed

+271
-541
lines changed

.github/workflows/check-release.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Check Release
2+
on:
3+
push:
4+
branches: ["master"]
5+
pull_request:
6+
branches: ["*"]
7+
8+
jobs:
9+
check_release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Install Python
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: 3.9
18+
architecture: "x64"
19+
- name: Get pip cache dir
20+
id: pip-cache
21+
run: |
22+
echo "::set-output name=dir::$(pip cache dir)"
23+
- name: Cache pip
24+
uses: actions/cache@v2
25+
with:
26+
path: ${{ steps.pip-cache.outputs.dir }}
27+
key: ${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }}
28+
restore-keys: |
29+
${{ runner.os }}-pip-
30+
${{ runner.os }}-pip-
31+
- name: Cache checked links
32+
uses: actions/cache@v2
33+
with:
34+
path: ~/.cache/pytest-link-check
35+
key: ${{ runner.os }}-linkcheck-${{ hashFiles('**/.md') }}-md-links
36+
restore-keys: |
37+
${{ runner.os }}-linkcheck-
38+
- name: Upgrade packaging dependencies
39+
run: |
40+
pip install --upgrade pip setuptools wheel --user
41+
- name: Install Dependencies
42+
run: |
43+
pip install -e .
44+
- name: Check Release
45+
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v1
46+
with:
47+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ on:
2121
schedule:
2222
- cron: '25 18 * * 4'
2323

24+
permissions:
25+
security-events:
26+
write
27+
2428
jobs:
2529
analyze:
2630
name: Analyze

.github/workflows/python-linux.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,3 @@ jobs:
6868
pushd test_install
6969
./bin/pytest --pyargs jupyter_server
7070
popd
71-
- name: Check the Manifest
72-
run: |
73-
pip install check-manifest
74-
git clean -dfx
75-
check-manifest -v
76-
- name: Check Version Bump
77-
run: |
78-
pip install tbump
79-
tbump --non-interactive --only-patch 100.1.1
80-
git checkout .

CHANGELOG.md

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,52 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
<!-- <START NEW CHANGELOG ENTRY> -->
6+
7+
## 1.7.0a0
8+
9+
([Full Changelog](https://github.com/jupyter-server/jupyter_server/compare/v1.6.4...afae85a7bb8c45f7610cd38b60d6075bb623490b))
10+
11+
### Bugs fixed
12+
13+
- Fix for recursive symlink - (port Notebook 4670) [#497](https://github.com/jupyter-server/jupyter_server/pull/497) ([@kevin-bates](https://github.com/kevin-bates))
14+
15+
### Maintenance and upkeep improvements
16+
17+
- Prep for Release Helper Usage [#494](https://github.com/jupyter-server/jupyter_server/pull/494) ([@jtpio](https://github.com/jtpio))
18+
- Typo in shutdown with answer_yes [#491](https://github.com/jupyter-server/jupyter_server/pull/491) ([@kiendang](https://github.com/kiendang))
19+
- Remove some of ipython_genutils no-op. [#440](https://github.com/jupyter-server/jupyter_server/pull/440) ([@Carreau](https://github.com/Carreau))
20+
21+
### Documentation improvements
22+
23+
- DOC: Autoreformat docstrings. [#493](https://github.com/jupyter-server/jupyter_server/pull/493) ([@Carreau](https://github.com/Carreau))
24+
25+
### Other merged PRs
26+
27+
- Add Appropriate Token Permission for CodeQL Workflow [#489](https://github.com/jupyter-server/jupyter_server/pull/489) ([@afshin](https://github.com/afshin))
28+
29+
### Contributors to this release
30+
31+
([GitHub contributors page for this release](https://github.com/jupyter-server/jupyter_server/graphs/contributors?from=2021-04-21&to=2021-05-01&type=c))
32+
33+
[@afshin](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Aafshin+updated%3A2021-04-21..2021-05-01&type=Issues) | [@blink1073](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Ablink1073+updated%3A2021-04-21..2021-05-01&type=Issues) | [@Carreau](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3ACarreau+updated%3A2021-04-21..2021-05-01&type=Issues) | [@codecov-commenter](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Acodecov-commenter+updated%3A2021-04-21..2021-05-01&type=Issues) | [@jtpio](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Ajtpio+updated%3A2021-04-21..2021-05-01&type=Issues) | [@kevin-bates](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Akevin-bates+updated%3A2021-04-21..2021-05-01&type=Issues) | [@kiendang](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Akiendang+updated%3A2021-04-21..2021-05-01&type=Issues)
34+
35+
<!-- <END NEW CHANGELOG ENTRY> -->
36+
37+
## 1.6.4
38+
39+
([Full Changelog](https://github.com/jupyter-server/jupyter_server/compare/v1.6.3...68a64ea13be5d0d86460f04e0c47eb0b6662a0af))
40+
41+
### Bugs fixed
42+
43+
- Fix loading of sibling extensions [#485](https://github.com/jupyter-server/jupyter_server/pull/485) ([@afshin](https://github.com/afshin))
44+
45+
### Contributors to this release
46+
47+
([GitHub contributors page for this release](https://github.com/jupyter-server/jupyter_server/graphs/contributors?from=2021-04-21&to=2021-04-21&type=c))
48+
49+
[@afshin](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Aafshin+updated%3A2021-04-21..2021-04-21&type=Issues)
50+
551
## 1.6.3
652

753
([Full Changelog](https://github.com/jupyter-server/jupyter_server/compare/v1.6.2...aa2636795ae1d87e3055febb3931f891dd6b4451))
@@ -17,7 +63,6 @@ All notable changes to this project will be documented in this file.
1763

1864
[@kevin-bates](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Akevin-bates+updated%3A2021-04-16..2021-04-21&type=Issues)
1965

20-
2166
## 1.6.2
2267

2368
### Enhancements made

MANIFEST.in

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ prune docs/dist
2525
global-exclude *~
2626
global-exclude *.pyc
2727
global-exclude *.pyo
28-
global-exclude .git
29-
global-exclude .ipynb_checkpoints
30-
global-exclude .pytest_cache
31-
global-exclude .coverage
28+
prune .git
29+
prune **/.ipynb_checkpoints
30+
prune **/.pytest_cache
31+
prune **/.coverage
32+
prune **/.pytest_cache

RELEASE.md

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,48 @@
11
# Making a Jupyter Server Release
2-
To create a release, perform the following steps...
32

4-
## Set up
5-
```
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).
6+
7+
## Manual Release
8+
9+
To create a manual release, perform the following steps:
10+
11+
### Set up
12+
13+
```bash
614
pip install tbump twine build
715
git pull origin $(git branch --show-current)
816
git clean -dffx
917
```
1018

11-
## Update the version and apply the tag
12-
```
19+
### Update the version and apply the tag
20+
21+
```bash
1322
echo "Enter new version"
1423
read script_version
1524
tbump ${script_version}
1625
```
1726

18-
## Build the artifacts
19-
```
27+
### Build the artifacts
28+
29+
```bash
2030
rm -rf dist
2131
python -m build .
2232
```
2333

24-
## Update the version back to dev
25-
```
34+
### Update the version back to dev
35+
36+
```bash
2637
echo "Enter dev version"
2738
read dev_version
2839
tbump ${dev_version} --no-tag
2940
git push origin $(git branch --show-current)
3041
```
3142

32-
## Publish the artifacts to pypi
33-
```
43+
### Publish the artifacts to pypi
44+
45+
```bash
3446
twine check dist/*
3547
twine upload dist/*
3648
```

jupyter_server/_sysinfo.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ def pkg_commit_hash(pkg_path):
2626
Parameters
2727
----------
2828
pkg_path : str
29-
directory containing package
30-
only used for getting commit from active repo
29+
directory containing package
30+
only used for getting commit from active repo
3131
3232
Returns
3333
-------
3434
hash_from : str
35-
Where we got the hash from - description
35+
Where we got the hash from - description
3636
hash_str : str
37-
short form of hash
37+
short form of hash
3838
"""
3939

4040
# maybe we are in a repository, check for a .git folder
@@ -68,12 +68,12 @@ def pkg_info(pkg_path):
6868
Parameters
6969
----------
7070
pkg_path : str
71-
path containing __init__.py for package
71+
path containing __init__.py for package
7272
7373
Returns
7474
-------
7575
context : dict
76-
with named parameters of interest
76+
with named parameters of interest
7777
"""
7878
src, hsh = pkg_commit_hash(pkg_path)
7979
return dict(

jupyter_server/_tz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def utc_method(*args, **kwargs):
3636

3737
def isoformat(dt):
3838
"""Return iso-formatted timestamp
39-
39+
4040
Like .isoformat(), but uses Z for UTC instead of +00:00
4141
"""
4242
return dt.isoformat().replace('+00:00', 'Z')

jupyter_server/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
from jupyter_packaging import get_version_info
66

77
# Version string must appear intact for tbump versioning
8-
__version__ = '1.7.0.dev0'
8+
__version__ = '1.8.0.dev0'
99
version_info = get_version_info(__version__)

jupyter_server/auth/login.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def get_user(cls, handler):
196196
@classmethod
197197
def get_user_token(cls, handler):
198198
"""Identify the user based on a token in the URL or Authorization header
199-
199+
200200
Returns:
201201
- uuid if authenticated
202202
- None if not

0 commit comments

Comments
 (0)