Skip to content

Commit 992d7ae

Browse files
committed
Update with latest, handle case where GatewayKM has no parent
2 parents e537be5 + aa26367 commit 992d7ae

33 files changed

+696
-979
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ name: "CodeQL"
1414

1515
on:
1616
push:
17-
branches: [ '*' ]
17+
branches: [ 'master' ]
1818
pull_request:
1919
# The branches below must be a subset of the branches above
2020
branches: [ master ]

.github/workflows/python-linux.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Jupyter Server Tests [Linux]
22
on:
33
push:
4-
branches: '*'
4+
branches: 'master'
55
pull_request:
66
branches: '*'
77
jobs:
@@ -37,7 +37,7 @@ jobs:
3737
${{ runner.os }}-pip-
3838
- name: Install the Python dependencies
3939
run: |
40-
pip install -e .[test] codecov
40+
pip install -e ".[test]" codecov
4141
- name: List installed packages
4242
run: |
4343
pip freeze
@@ -62,7 +62,19 @@ jobs:
6262
codecov
6363
- name: Test full install
6464
run: |
65-
pip uninstall -y jupyter_server
66-
pip install .
67-
cd /tmp
68-
pytest --pyargs jupyter_server
65+
python -m venv test_install
66+
./test_install/bin/python -m pip install -U pip
67+
./test_install/bin/python -m pip install ".[test]"
68+
pushd test_install
69+
./bin/pytest --pyargs jupyter_server
70+
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 .

.github/workflows/python-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Jupyter Server Tests [Mac OS]
22
on:
33
push:
4-
branches: '*'
4+
branches: 'master'
55
pull_request:
66
branches: '*'
77
jobs:

.github/workflows/python-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Jupyter Server Tests [Windows]
22
on:
33
push:
4-
branches: '*'
4+
branches: 'master'
55
pull_request:
66
branches: '*'
77
jobs:

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ config.rst
3434
/.project
3535
/.pydevproject
3636

37+
# copied changelog file
38+
docs/source/other/changelog.md
39+

CHANGELOG.md

Lines changed: 71 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,77 @@
22

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

5+
## 1.6.2
6+
7+
### Enhancements made
8+
9+
- Tighten xsrf checks [#478](https://github.com/jupyter-server/jupyter_server/pull/478) ([@jtpio](https://github.com/jtpio))
10+
11+
### Bugs fixed
12+
13+
- Re-enable support for answer_yes flag [#479](https://github.com/jupyter-server/jupyter_server/pull/479) ([@jtpio](https://github.com/jtpio))
14+
15+
### Maintenance and upkeep improvements
16+
17+
- Use Jupyter Packaging [#477](https://github.com/jupyter-server/jupyter_server/pull/477) ([@jtpio](https://github.com/jtpio))
18+
19+
### Contributors to this release
20+
21+
([GitHub contributors page for this release](https://github.com/jupyter-server/jupyter_server/graphs/contributors?from=2021-04-12&to=2021-04-16&type=c))
22+
23+
[@jtpio](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Ajtpio+updated%3A2021-04-12..2021-04-16&type=Issues)
24+
25+
## 1.6.1
26+
27+
([Full Changelog](https://github.com/jupyter-server/jupyter_server/compare/1.6.0...2756a29c5fdcfa62a3492004627541089d53d14f))
28+
29+
### Merged PRs
30+
31+
- Fix race condition with async kernel management [#472](https://github.com/jupyter-server/jupyter_server/pull/472) ([@jtpio](https://github.com/jtpio))
32+
- Fix kernel lookup [#475](https://github.com/jupyter-server/jupyter_server/pull/475) ([@davidbrochart](https://github.com/davidbrochart))
33+
- Add Extension App Aliases to Server App [#473](https://github.com/jupyter-server/jupyter_server/pull/473) ([@jtpio](https://github.com/jtpio))
34+
- Correct 'Content-Type' headers [#471](https://github.com/jupyter-server/jupyter_server/pull/471) ([@faucct](https://github.com/faucct))
35+
36+
### Contributors to this release
37+
38+
([GitHub contributors page for this release](https://github.com/jupyter-server/jupyter_server/graphs/contributors?from=2021-04-08&to=2021-04-12&type=c))
39+
40+
[@codecov-io](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Acodecov-io+updated%3A2021-04-08..2021-04-12&type=Issues) | [@davidbrochart](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Adavidbrochart+updated%3A2021-04-08..2021-04-12&type=Issues) | [@echarles](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Aecharles+updated%3A2021-04-08..2021-04-12&type=Issues) | [@faucct](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Afaucct+updated%3A2021-04-08..2021-04-12&type=Issues) | [@jtpio](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Ajtpio+updated%3A2021-04-08..2021-04-12&type=Issues) | [@welcome](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Awelcome+updated%3A2021-04-08..2021-04-12&type=Issues)
41+
42+
## 1.6.0
43+
44+
([Full Changelog](https://github.com/jupyter-server/jupyter_server/compare/1.5.1...724c38ec08c15cf1ed3c2efb2ad5c11f684f2cda))
45+
46+
### New features added
47+
48+
- Add env variable support for port options [#461](https://github.com/jupyter-server/jupyter_server/pull/461) ([@afshin](https://github.com/afshin))
49+
50+
### Enhancements made
51+
52+
- Add support for JUPYTER_TOKEN_FILE [#462](https://github.com/jupyter-server/jupyter_server/pull/462) ([@afshin](https://github.com/afshin))
53+
54+
### Maintenance and upkeep improvements
55+
56+
- Remove unnecessary future imports [#464](https://github.com/jupyter-server/jupyter_server/pull/464) ([@afshin](https://github.com/afshin))
57+
58+
### Documentation improvements
59+
60+
- Add Changelog to Sphinx Docs [#465](https://github.com/jupyter-server/jupyter_server/pull/465) ([@afshin](https://github.com/afshin))
61+
- Update description for kernel restarted in the API docs [#463](https://github.com/jupyter-server/jupyter_server/pull/463) ([@jtpio](https://github.com/jtpio))
62+
- Delete the extra “or” that prevents easy cut-and-paste of URLs. [#460](https://github.com/jupyter-server/jupyter_server/pull/460) ([@jasongrout](https://github.com/jasongrout))
63+
- Add descriptive log for port unavailable and port-retries=0 [#459](https://github.com/jupyter-server/jupyter_server/pull/459) ([@afshin](https://github.com/afshin))
64+
65+
### Other merged PRs
66+
67+
- Add ReadTheDocs config [#468](https://github.com/jupyter-server/jupyter_server/pull/468) ([@jtpio](https://github.com/jtpio))
68+
- Update MappingKM.restart_kernel to accept now kwarg [#404](https://github.com/jupyter-server/jupyter_server/pull/404) ([@vidartf](https://github.com/vidartf))
69+
70+
### Contributors to this release
71+
72+
([GitHub contributors page for this release](https://github.com/jupyter-server/jupyter_server/graphs/contributors?from=2021-03-24&to=2021-04-08&type=c))
73+
74+
[@afshin](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Aafshin+updated%3A2021-03-24..2021-04-08&type=Issues) | [@codecov-io](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Acodecov-io+updated%3A2021-03-24..2021-04-08&type=Issues) | [@echarles](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Aecharles+updated%3A2021-03-24..2021-04-08&type=Issues) | [@jasongrout](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Ajasongrout+updated%3A2021-03-24..2021-04-08&type=Issues) | [@jtpio](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Ajtpio+updated%3A2021-03-24..2021-04-08&type=Issues) | [@kevin-bates](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Akevin-bates+updated%3A2021-03-24..2021-04-08&type=Issues) | [@vidartf](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Avidartf+updated%3A2021-03-24..2021-04-08&type=Issues)
75+
576
## 1.5.1
677

778
([Full Changelog](https://github.com/jupyter-server/jupyter_server/compare/1.5.0...c3303cde880ecd1103118b8c7f9e5ebc19f0d1ba))
@@ -42,7 +113,6 @@ All notable changes to this project will be documented in this file.
42113

43114
[@afshin](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Aafshin+updated%3A2021-02-22..2021-03-23&type=Issues) | [@blink1073](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Ablink1073+updated%3A2021-02-22..2021-03-23&type=Issues) | [@codecov-io](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Acodecov-io+updated%3A2021-02-22..2021-03-23&type=Issues) | [@jtpio](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Ajtpio+updated%3A2021-02-22..2021-03-23&type=Issues) | [@kevin-bates](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Akevin-bates+updated%3A2021-02-22..2021-03-23&type=Issues) | [@kiendang](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Akiendang+updated%3A2021-02-22..2021-03-23&type=Issues) | [@minrk](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Aminrk+updated%3A2021-02-22..2021-03-23&type=Issues) | [@sngyo](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Asngyo+updated%3A2021-02-22..2021-03-23&type=Issues) | [@Zsailer](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3AZsailer+updated%3A2021-02-22..2021-03-23&type=Issues)
44115

45-
46116
## [1.4.1](https://github.com/jupyter-server/jupyter_server/tree/1.4.1) (2021-02-22)
47117

48118
[Full Changelog](https://github.com/jupyter-server/jupyter_server/compare/1.4.0...bc252d33de2f647f98d048dc32888f0a83f005ac)
@@ -60,10 +130,8 @@ All notable changes to this project will be documented in this file.
60130

61131
[@jamesmishra](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Ajamesmishra+updated%3A2021-02-18..2021-02-22&type=Issues) | [@Zsailer](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3AZsailer+updated%3A2021-02-18..2021-02-22&type=Issues)
62132

63-
64133
## [1.4.0](https://github.com/jupyter-server/jupyter_server/tree/1.4.0) (2021-02-18)
65134

66-
67135
[Full Changelog](https://github.com/jupyter-server/jupyter_server/compare/1.3.0...HEAD)
68136

69137
**Merged pull requests:**
@@ -78,7 +146,6 @@ All notable changes to this project will be documented in this file.
78146
- \[Gateway\] Track only this server's kernels [\#407](https://github.com/jupyter-server/jupyter_server/pull/407) ([kevin-bates](https://github.com/kevin-bates))
79147
- Update manager.py: more descriptive warnings when extensions fail to load [\#396](https://github.com/jupyter-server/jupyter_server/pull/396) ([alberti42](https://github.com/alberti42))
80148

81-
82149
## [1.3.0](https://github.com/jupyter-server/jupyter_server/tree/1.3.0) (2021-02-04)
83150

84151
[Full Changelog](https://github.com/jupyter-server/jupyter_server/compare/1.2.2...HEAD)
@@ -109,7 +176,6 @@ This was a broken release and was yanked from PyPI.
109176
- Increase culling test idle timeout [\#388](https://github.com/jupyter-server/jupyter_server/pull/388) ([kevin-bates](https://github.com/kevin-bates))
110177
- update changelog for 1.2.2 [\#387](https://github.com/jupyter-server/jupyter_server/pull/387) ([Zsailer](https://github.com/Zsailer))
111178

112-
113179
## [1.2.2](https://github.com/jupyter-server/jupyter_server/tree/1.2.2) (2021-01-14)
114180

115181
**Merged pull requests:**
@@ -120,7 +186,6 @@ This was a broken release and was yanked from PyPI.
120186
- Replace secure\_write, is\_hidden, exists with jupyter\_core's [\#382](https://github.com/jupyter-server/jupyter_server/pull/382) ([kevin-bates](https://github.com/kevin-bates))
121187
- Add --autoreload flag [\#380](https://github.com/jupyter-server/jupyter_server/pull/380) ([afshin](https://github.com/afshin))
122188

123-
124189
## [1.2.1](https://github.com/jupyter-server/jupyter_server/tree/1.2.1) (2021-01-08)
125190

126191
[Full Changelog](https://github.com/jupyter-server/jupyter_server/compare/1.2.0...1.2.1)
@@ -169,7 +234,6 @@ This was a broken release and was yanked from PyPI.
169234

170235
- Nudge kernel with info request until we receive IOPub messages [\#361](https://github.com/jupyter-server/jupyter_server/pull/361) ([SylvainCorlay](https://github.com/SylvainCorlay))
171236

172-
173237
## [1.1.1](https://github.com/jupyter-server/jupyter_server/tree/1.1.1) (2020-12-16)
174238

175239
[Full Changelog](https://github.com/jupyter-server/jupyter_server/compare/1.1.0...1.1.1)
@@ -178,7 +242,6 @@ This was a broken release and was yanked from PyPI.
178242

179243
- Fix: await possible async dir\_exists method [\#363](https://github.com/jupyter-server/jupyter_server/pull/363) ([mwakaba2](https://github.com/mwakaba2))
180244

181-
182245
## 1.1.0 (2020-12-11)
183246

184247
[Full Changelog](https://github.com/jupyter-server/jupyter_server/compare/1.0.10...1.1.0)
@@ -200,7 +263,6 @@ This was a broken release and was yanked from PyPI.
200263
- Enable CodeQL runs on all pushed branches [\#333](https://github.com/jupyter-server/jupyter_server/pull/333) ([kevin-bates](https://github.com/kevin-bates))
201264
- Asynchronous Contents API [\#324](https://github.com/jupyter-server/jupyter_server/pull/324) ([mwakaba2](https://github.com/mwakaba2))
202265

203-
204266
## 1.0.6 (2020-11-18)
205267

206268
1.0.6 is a security release, fixing one vulnerability:
@@ -209,7 +271,6 @@ This was a broken release and was yanked from PyPI.
209271

210272
- Fix open redirect vulnerability GHSA-grfj-wjv9-4f9v (CVE-2020-26232)
211273

212-
213274
## 1.0 (2020-9-18)
214275

215276
### Added.
@@ -241,15 +302,13 @@ This was a broken release and was yanked from PyPI.
241302
* Changed ExtensionApp mixin to inherit from `HasTraits`. This broke in traitlets 5.0 ([294](https://github.com/jupyter/jupyter_server/pull/294))
242303
* Replaces `urlparse` with `url_path_join` to prevent URL squashing issues. ([304](https://github.com/jupyter/jupyter_server/pull/304))
243304

244-
245305
## [0.3] - 2020-4-22
246306

247307
### Added
248308

249309
- ([#191](https://github.com/jupyter/jupyter_server/pull/191)) Async kernel managment is now possible using the `AsyncKernelManager` from `jupyter_client`
250310
- ([#201](https://github.com/jupyter/jupyter_server/pull/201)) Parameters can now be passed to new terminals created by the `terminals` REST API.
251311

252-
253312
### Changed
254313

255314
- ([#196](https://github.com/jupyter/jupyter_server/pull/196)) Documentation was rewritten + refactored to use pydata_sphinx_theme.
@@ -259,7 +318,6 @@ This was a broken release and was yanked from PyPI.
259318

260319
- ([#194](https://github.com/jupyter/jupyter_server/pull/194)) The bundlerextension entry point was removed.
261320

262-
263321
## [0.2.1] - 2020-1-10
264322

265323
### Added

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,4 @@ Windows users can find ``make.bat`` in the ``docs`` folder.
9999

100100
You should also have a look at the `Project Jupyter Documentation Guide`__.
101101

102-
__ https://jupyter.readthedocs.io/en/latest/contrib_docs/index.html
102+
__ https://jupyter.readthedocs.io/en/latest/contributing/content-contributor.html

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ include README.md
44
include RELEASE.md
55
include CHANGELOG.md
66
include setupbase.py
7+
include package.json
78

89
# include everything in package_data
910
recursive-include jupyter_server *

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For more information, read our [documentation here](http://jupyter-server.readth
1212
To install the latest release locally, make sure you have
1313
[pip installed](https://pip.readthedocs.io/en/stable/installing/) and run:
1414

15-
$ pip install jupyter_server
15+
pip install jupyter_server
1616

1717
Jupyter Server currently supports Python>=3.6 on Linux, OSX and Windows.
1818

@@ -31,14 +31,14 @@ To see the changes between releases, checkout the [CHANGELOG](https://github.com
3131

3232
Launch with:
3333

34-
$ jupyter server
34+
jupyter server
3535

3636
### Testing
3737

3838
To test an installed `jupyter_server`, run the following:
3939

40-
$ pip install jupyter_server[test]
41-
$ pytest jupyter_server
40+
pip install jupyter_server[test]
41+
pytest jupyter_server
4242

4343
## Contributing
4444

RELEASE.md

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,36 @@
11
# Making a Jupyter Server Release
22
To create a release, perform the following steps...
33

4-
## Remove untracked files
4+
## Set up
55
```
6+
pip install tbump twine build
7+
git pull origin $(git branch --show-current)
68
git clean -dffx
79
```
810

911
## Update the version and apply the tag
1012
```
11-
vim jupyter_server/_version.py
12-
export script_version=`python setup.py --version 2>/dev/null`
13-
git commit -a -m "Release $script_version"
14-
git tag $script_version
13+
echo "Enter new version"
14+
read script_version
15+
tbump ${script_version}
1516
```
1617

1718
## Build the artifacts
1819
```
1920
rm -rf dist
20-
python setup.py sdist
21-
python setup.py bdist_wheel
21+
python -m build .
2222
```
2323

2424
## Update the version back to dev
2525
```
26-
vim jupyter_server/_version.py
27-
git commit -a -m "Back to dev version"
28-
```
29-
30-
## Push the commits and tag
31-
```
32-
git push --all
33-
git push --tags
26+
echo "Enter dev version"
27+
read dev_version
28+
tbump ${dev_version} --no-tag
29+
git push origin $(git branch --show-current)
3430
```
3531

3632
## Publish the artifacts to pypi
3733
```
38-
pip install twine
39-
twine check dist/*
34+
twine check dist/*
4035
twine upload dist/*
4136
```

0 commit comments

Comments
 (0)