Skip to content

Commit 7ceebda

Browse files
authored
Merge pull request #494 from jtpio/releaser
Prep for Release Helper Usage
2 parents ca5622a + 6f4c0b8 commit 7ceebda

File tree

5 files changed

+79
-25
lines changed

5 files changed

+79
-25
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/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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

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

5+
<!-- <START NEW CHANGELOG ENTRY> -->
6+
57
## 1.6.4
68

79
([Full Changelog](https://github.com/jupyter-server/jupyter_server/compare/v1.6.3...68a64ea13be5d0d86460f04e0c47eb0b6662a0af))
@@ -16,6 +18,8 @@ All notable changes to this project will be documented in this file.
1618

1719
[@afshin](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Aafshin+updated%3A2021-04-21..2021-04-21&type=Issues)
1820

21+
<!-- <END NEW CHANGELOG ENTRY> -->
22+
1923
## 1.6.3
2024

2125
([Full Changelog](https://github.com/jupyter-server/jupyter_server/compare/v1.6.2...aa2636795ae1d87e3055febb3931f891dd6b4451))

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
```

0 commit comments

Comments
 (0)