-
Notifications
You must be signed in to change notification settings - Fork 30
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 #231 from consideRatio/pr/test-traefik
Test python 3.12, redis 7, traefik 3 - and misc updates to align with jupyterhub-python-repo-template
- Loading branch information
Showing
14 changed files
with
182 additions
and
142 deletions.
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,52 @@ | ||
# This is a GitHub workflow defining a set of jobs with a set of steps. | ||
# ref: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions | ||
# | ||
name: Release | ||
|
||
# Always tests wheel building, but only publish to PyPI on pushed tags. | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- "docs/**" | ||
- ".github/workflows/*.yaml" | ||
- "!.github/workflows/release.yaml" | ||
push: | ||
paths-ignore: | ||
- "docs/**" | ||
- ".github/workflows/*.yaml" | ||
- "!.github/workflows/release.yaml" | ||
branches-ignore: | ||
- "dependabot/**" | ||
- "pre-commit-ci-update-config" | ||
tags: ["**"] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-release: | ||
name: Build release | ||
|
||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: install build package | ||
run: | | ||
pip install --upgrade pip | ||
pip install build | ||
pip freeze | ||
- name: build release | ||
run: | | ||
python -m build --sdist --wheel . | ||
ls -l dist | ||
- name: publish to pypi | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.pypi_password }} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -16,7 +16,3 @@ python: | |
- method: pip | ||
path: . | ||
- requirements: docs/requirements.txt | ||
|
||
formats: | ||
- htmlzip | ||
- epub |
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
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,49 +1,53 @@ | ||
# How to make a release | ||
|
||
`traefik-proxy` is a package [available on | ||
PyPI](https://pypi.org/project/jupyterhub-traefik-proxy/). These are | ||
instructions on how to make a release on PyPI. | ||
`jupyterhub-traefik-proxy` is a package available on [PyPI]. | ||
|
||
For you to follow along according to these instructions, you need: | ||
These are the instructions on how to make a release. | ||
|
||
- To have push rights to the [jupyterhub-traefik-proxy GitHub | ||
repository](https://github.com/jupyterhub/traefik-proxy). | ||
## Pre-requisites | ||
|
||
- Push rights to this GitHub repository | ||
|
||
## Steps to make a release | ||
|
||
1. Create a PR updating `docs/source/changelog.md` with [github-activity] and | ||
continue only when its merged. | ||
|
||
```shell | ||
pip install github-activity | ||
continue when its merged. For details about this, see the [team-compass | ||
documentation] about it. | ||
|
||
github-activity --heading-level=3 jupyterhub/traefik-proxy | ||
``` | ||
[team-compass documentation]: https://jupyterhub-team-compass.readthedocs.io/en/latest/practices/releases.html | ||
|
||
1. Checkout main and make sure it is up to date. | ||
2. Checkout main and make sure it is up to date. | ||
|
||
```shell | ||
git checkout main | ||
git fetch origin main | ||
git reset --hard origin/main | ||
``` | ||
|
||
1. Update the version, make commits, and push a git tag with `tbump`. | ||
3. Update the version, make commits, and push a git tag with `tbump`. | ||
|
||
```shell | ||
pip install tbump | ||
tbump --dry-run ${VERSION} | ||
``` | ||
|
||
`tbump` will ask for confirmation before doing anything. | ||
|
||
```shell | ||
# Example versions to set: 1.0.0, 1.0.0b1 | ||
VERSION= | ||
tbump ${VERSION} | ||
``` | ||
|
||
Following this, the [CI system] will build and publish a release. | ||
|
||
1. Reset the version back to dev, e.g. `2.1.0.dev` after releasing `2.0.0` | ||
4. Reset the version back to dev, e.g. `1.0.1.dev` after releasing `1.0.0`. | ||
|
||
```shell | ||
# Example version to set: 1.0.1.dev | ||
NEXT_VERSION= | ||
tbump --no-tag ${NEXT_VERSION}.dev | ||
``` | ||
|
||
[ci system]: https://github.com/jupyterhub/traefik-proxy/actions | ||
[github-activity]: https://github.com/executablebooks/github-activity | ||
[pypi]: https://pypi.org/project/jupyterhub-traefik-proxy/ | ||
[ci system]: https://github.com/jupyterhub/traefik-proxy/actions/workflows/release.yaml |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.