Skip to content

Commit 3950eaa

Browse files
authored
Merge branch 'jupyterhub:main' into feature/sockets
2 parents e40ef8d + 35b0279 commit 3950eaa

File tree

6 files changed

+194
-23
lines changed

6 files changed

+194
-23
lines changed

.github/dependabot.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# dependabot.yaml reference: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
2+
#
3+
# Notes:
4+
# - Status and logs from dependabot are provided at
5+
# https://github.com/jupyterhub/jupyterhub-python-repo-template/network/updates.
6+
#
7+
version: 2
8+
updates:
9+
# Maintain dependencies in our GitHub Workflows
10+
- package-ecosystem: github-actions
11+
directory: /
12+
labels: [ci]
13+
schedule:
14+
interval: monthly
15+
time: "05:00"
16+
timezone: Etc/UTC

.github/workflows/release.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# This is a GitHub workflow defining a set of jobs with a set of steps.
2+
# ref: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
3+
#
4+
name: Release
5+
6+
# Always tests wheel building, but only publish to PyPI on pushed tags.
7+
on:
8+
pull_request:
9+
paths-ignore:
10+
- "**.md"
11+
- ".github/workflows/*.yaml"
12+
- "!.github/workflows/release.yaml"
13+
push:
14+
paths-ignore:
15+
- "**.md"
16+
- ".github/workflows/*.yaml"
17+
- "!.github/workflows/release.yaml"
18+
branches-ignore:
19+
- "dependabot/**"
20+
- "pre-commit-ci-update-config"
21+
tags: ["**"]
22+
workflow_dispatch:
23+
24+
jobs:
25+
build-release:
26+
runs-on: ubuntu-24.04
27+
permissions:
28+
# id-token=write is required for pypa/gh-action-pypi-publish, and the PyPI
29+
# project needs to be configured to trust this workflow.
30+
#
31+
# ref: https://github.com/jupyterhub/team-compass/issues/648
32+
#
33+
id-token: write
34+
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: actions/setup-python@v5
38+
with:
39+
python-version: "3.12"
40+
41+
- name: install build package
42+
run: |
43+
pip install --upgrade pip
44+
pip install build
45+
pip freeze
46+
47+
- name: build release
48+
run: |
49+
python -m build --sdist --wheel .
50+
ls -l dist
51+
52+
- name: publish to pypi
53+
uses: pypa/gh-action-pypi-publish@release/v1
54+
if: startsWith(github.ref, 'refs/tags/')

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,48 @@
1-
# 2.2.0 - 2023-06-12
1+
# Changelog
2+
3+
## 2.2
4+
5+
### 2.2.1 - 2024-03-13
6+
7+
([full changelog](https://github.com/jupyterhub/jupyter-rsession-proxy/compare/v2.2.0...v2.2.1))
8+
9+
#### Merged PRs
10+
11+
- Update requirements for jupyter-server-proxy [#146](https://github.com/jupyterhub/jupyter-rsession-proxy/pull/146) ([@consideRatio](https://github.com/consideRatio), [@ryanlovett](https://github.com/ryanlovett))
12+
- Add new RStudio icon [#125](https://github.com/jupyterhub/jupyter-rsession-proxy/pull/125) ([@danilopeixoto](https://github.com/danilopeixoto), [@yuvipanda](https://github.com/yuvipanda))
13+
14+
#### Contributors to this release
15+
16+
The following people contributed discussions, new ideas, code and documentation contributions, and review.
17+
See [our definition of contributors](https://github-activity.readthedocs.io/en/latest/#how-does-this-tool-define-contributions-in-the-reports).
18+
19+
([GitHub contributors page for this release](https://github.com/jupyterhub/jupyter-rsession-proxy/graphs/contributors?from=2023-06-23&to=2024-03-13&type=c))
20+
21+
@benz0li ([activity](https://github.com/search?q=repo%3Ajupyterhub%2Fjupyter-rsession-proxy+involves%3Abenz0li+updated%3A2023-06-23..2024-03-13&type=Issues)) | @danilopeixoto ([activity](https://github.com/search?q=repo%3Ajupyterhub%2Fjupyter-rsession-proxy+involves%3Adanilopeixoto+updated%3A2023-06-23..2024-03-13&type=Issues)) | @eeholmes ([activity](https://github.com/search?q=repo%3Ajupyterhub%2Fjupyter-rsession-proxy+involves%3Aeeholmes+updated%3A2023-06-23..2024-03-13&type=Issues)) | @ryanlovett ([activity](https://github.com/search?q=repo%3Ajupyterhub%2Fjupyter-rsession-proxy+involves%3Aryanlovett+updated%3A2023-06-23..2024-03-13&type=Issues)) | @yuvipanda ([activity](https://github.com/search?q=repo%3Ajupyterhub%2Fjupyter-rsession-proxy+involves%3Ayuvipanda+updated%3A2023-06-23..2024-03-13&type=Issues))
22+
23+
### 2.2.0 - 2023-06-12
224

325
([full changelog](https://github.com/jupyterhub/jupyter-rsession-proxy/compare/v2.1.0...8a87f3fbb21015927cfb30aec63af791fb0a19bc))
426

5-
## Merged PRs
27+
#### Merged PRs
628

29+
- Prepare 2.2.0 release. [#141](https://github.com/jupyterhub/jupyter-rsession-proxy/pull/141) ([@ryanlovett](https://github.com/ryanlovett))
730
- add float conversion for timeout [#137](https://github.com/jupyterhub/jupyter-rsession-proxy/pull/137) ([@matuskosut](https://github.com/matuskosut))
831
- Fix netloc when rstudio-server inserts port. [#134](https://github.com/jupyterhub/jupyter-rsession-proxy/pull/134) ([@ryanlovett](https://github.com/ryanlovett))
932

10-
## Contributors to this release
33+
#### Contributors to this release
1134

1235
([GitHub contributors page for this release](https://github.com/jupyterhub/jupyter-rsession-proxy/graphs/contributors?from=2022-09-07&to=2023-06-12&type=c))
1336

1437
[@matuskosut](https://github.com/search?q=repo%3Ajupyterhub%2Fjupyter-rsession-proxy+involves%3Amatuskosut+updated%3A2022-09-07..2023-06-12&type=Issues) | [@ryanlovett](https://github.com/search?q=repo%3Ajupyterhub%2Fjupyter-rsession-proxy+involves%3Aryanlovett+updated%3A2022-09-07..2023-06-12&type=Issues) | [@welcome](https://github.com/search?q=repo%3Ajupyterhub%2Fjupyter-rsession-proxy+involves%3Awelcome+updated%3A2022-09-07..2023-06-12&type=Issues)
1538

16-
# 2.1.0 - 2022-09-07
39+
## 2.1
40+
41+
### 2.1.0 - 2022-09-07
1742

1843
([full changelog](https://github.com/jupyterhub/jupyter-rsession-proxy/compare/v2.0...v2.1.0))
1944

20-
## Merged PRs
45+
#### Merged PRs
2146

2247
- use NB_USER rather than getpass.getuser() [#132](https://github.com/jupyterhub/jupyter-rsession-proxy/pull/132) ([@vivian-rook](https://github.com/vivian-rook))
2348
- add 10s default timeout and environment varariable [#128](https://github.com/jupyterhub/jupyter-rsession-proxy/pull/128) ([@matuskosut](https://github.com/matuskosut))
@@ -27,13 +52,15 @@
2752
- Add CHANGELOG.md. [#112](https://github.com/jupyterhub/jupyter-rsession-proxy/pull/112) ([@ryanlovett](https://github.com/ryanlovett))
2853
- Add conda install instructions [#68](https://github.com/jupyterhub/jupyter-rsession-proxy/pull/68) ([@xhochy](https://github.com/xhochy))
2954

30-
## Contributors to this release
55+
#### Contributors to this release
3156

3257
([GitHub contributors page for this release](https://github.com/jupyterhub/jupyter-rsession-proxy/graphs/contributors?from=2021-12-01&to=2022-09-07&type=c))
3358

3459
[@ccoulombe](https://github.com/search?q=repo%3Ajupyterhub%2Fjupyter-rsession-proxy+involves%3Accoulombe+updated%3A2021-12-01..2022-09-07&type=Issues) | [@guimou](https://github.com/search?q=repo%3Ajupyterhub%2Fjupyter-rsession-proxy+involves%3Aguimou+updated%3A2021-12-01..2022-09-07&type=Issues) | [@lucianolacurcia](https://github.com/search?q=repo%3Ajupyterhub%2Fjupyter-rsession-proxy+involves%3Alucianolacurcia+updated%3A2021-12-01..2022-09-07&type=Issues) | [@mathematicalmichael](https://github.com/search?q=repo%3Ajupyterhub%2Fjupyter-rsession-proxy+involves%3Amathematicalmichael+updated%3A2021-12-01..2022-09-07&type=Issues) | [@matuskosut](https://github.com/search?q=repo%3Ajupyterhub%2Fjupyter-rsession-proxy+involves%3Amatuskosut+updated%3A2021-12-01..2022-09-07&type=Issues) | [@moschlar](https://github.com/search?q=repo%3Ajupyterhub%2Fjupyter-rsession-proxy+involves%3Amoschlar+updated%3A2021-12-01..2022-09-07&type=Issues) | [@riazarbi](https://github.com/search?q=repo%3Ajupyterhub%2Fjupyter-rsession-proxy+involves%3Ariazarbi+updated%3A2021-12-01..2022-09-07&type=Issues) | [@ryanlovett](https://github.com/search?q=repo%3Ajupyterhub%2Fjupyter-rsession-proxy+involves%3Aryanlovett+updated%3A2021-12-01..2022-09-07&type=Issues) | [@vivian-rook](https://github.com/search?q=repo%3Ajupyterhub%2Fjupyter-rsession-proxy+involves%3Avivian-rook+updated%3A2021-12-01..2022-09-07&type=Issues) | [@welcome](https://github.com/search?q=repo%3Ajupyterhub%2Fjupyter-rsession-proxy+involves%3Awelcome+updated%3A2021-12-01..2022-09-07&type=Issues) | [@xhochy](https://github.com/search?q=repo%3Ajupyterhub%2Fjupyter-rsession-proxy+involves%3Axhochy+updated%3A2021-12-01..2022-09-07&type=Issues) | [@yuvipanda](https://github.com/search?q=repo%3Ajupyterhub%2Fjupyter-rsession-proxy+involves%3Ayuvipanda+updated%3A2021-12-01..2022-09-07&type=Issues)
3560

36-
# 2.0 - 2021-12-01
61+
## 2.0
62+
63+
### 2.0 - 2021-12-01
3764

3865
#### BREAKING CHANGES
3966

@@ -47,13 +74,13 @@
4774

4875
* Bump jupyter-server-proxy from 3.1.0 to 3.2.0.
4976

50-
## Merged PRs
77+
#### Merged PRs
5178

5279
* Rewrite /auth-sign-in redirect. [#110](https://github.com/jupyterhub/jupyter-rsession-proxy/pull/110) ([@ryanlovett](https://github.com/ryanlovett))
5380
* Bump to v1.4. [#105](https://github.com/jupyterhub/jupyter-rsession-proxy/pull/105) ([@ryanlovett](https://github.com/ryanlovett))
5481
* Use tmp file for secure cookie [#98](https://github.com/jupyterhub/jupyter-rsession-proxy/pull/98) ([@danielfrg](https://github.com/danielfrg))
5582

56-
## Contributors to this release
83+
#### Contributors to this release
5784

5885
([GitHub contributors page for this release](https://github.com/jupyterhub/jupyter-rsession-proxy/graphs/contributors?from=2021-07-03&to=2021-11-30&type=c))
5986

RELEASE.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# How to make a release
2+
3+
`jupyterhub-python-repo-template` is a package available on [PyPI] and
4+
[conda-forge].
5+
6+
These are the instructions on how to make a release.
7+
8+
## Pre-requisites
9+
10+
- Push rights to this GitHub repository
11+
12+
## Steps to make a release
13+
14+
1. Create a PR updating `CHANGELOG.md` with [github-activity] and continue when
15+
its merged. For details about this, see the [team-compass documentation]
16+
about it.
17+
18+
[team-compass documentation]: https://jupyterhub-team-compass.readthedocs.io/en/latest/practices/releases.html
19+
20+
2. Checkout main and make sure it is up to date.
21+
22+
```shell
23+
git checkout main
24+
git fetch origin main
25+
git reset --hard origin/main
26+
```
27+
28+
3. Update the version, make commits, and push a git tag with `tbump`.
29+
30+
```shell
31+
pip install tbump
32+
```
33+
34+
`tbump` will ask for confirmation before doing anything.
35+
36+
```shell
37+
# Example versions to set: 1.0.0, 1.0.0b1
38+
VERSION=
39+
tbump ${VERSION}
40+
```
41+
42+
Following this, the [CI system] will build and publish a release.
43+
44+
4. Reset the version back to dev, e.g. `1.0.1.dev` after releasing `1.0.0`.
45+
46+
```shell
47+
# Example version to set: 1.0.1.dev
48+
NEXT_VERSION=
49+
tbump --no-tag ${NEXT_VERSION}.dev
50+
```
51+
52+
5. Following the release to PyPI, an automated PR should arrive within 24 hours
53+
to [conda-forge/jupyterhub-python-repo-template-feedstock] with instructions
54+
on releasing to conda-forge. You are welcome to volunteer doing this, but
55+
aren't required as part of making this release to PyPI.
56+
57+
[github-activity]: https://github.com/executablebooks/github-activity
58+
[pypi]: https://pypi.org/project/jupyterhub-python-repo-template/
59+
[conda-forge]: https://anaconda.org/conda-forge/jupyterhub-python-repo-template
60+
[conda-forge/jupyterhub-python-repo-template-feedstock]: https://github.com/conda-forge/jupyterhub-python-repo-template-feedstock
61+
[ci system]: https://github.com/jupyterhub/jupyterhub-python-repo-template/actions/workflows/release.yaml

pyproject.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# tbump is used to simplify and standardize the release process when updating
2+
# the version, making a git commit and tag, and pushing changes.
3+
#
4+
# ref: https://github.com/your-tools/tbump#readme
5+
#
6+
[tool.tbump]
7+
github_url = "https://github.com/jupyterhub/jupyter-rsession-proxy"
8+
9+
[tool.tbump.version]
10+
current = "2.2.1"
11+
regex = '''
12+
(?P<major>\d+)
13+
\.
14+
(?P<minor>\d+)
15+
\.
16+
(?P<patch>\d+)
17+
(?P<pre>((a|b|rc)\d+)|)
18+
\.?
19+
(?P<dev>(?<=\.)dev\d*|)
20+
'''
21+
22+
[tool.tbump.git]
23+
message_template = "Bump to v{new_version}"
24+
tag_template = "v{new_version}"
25+
26+
[[tool.tbump.file]]
27+
src = "setup.py"

0 commit comments

Comments
 (0)