Skip to content

Commit 12022fe

Browse files
authored
Merge pull request #7544 from hugovk/ci-sdist
Release automation: create sdist on CI
2 parents 25cc5af + 00430d0 commit 12022fe

File tree

2 files changed

+33
-15
lines changed

2 files changed

+33
-15
lines changed

.github/workflows/wheels.yml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,43 @@ concurrency:
2020
group: ${{ github.workflow }}-${{ github.ref }}
2121
cancel-in-progress: true
2222

23+
env:
24+
FORCE_COLOR: 1
25+
2326
jobs:
2427
macos:
2528
uses: ./.github/workflows/wheels-macos.yml
2629
with:
27-
artifacts-name: "wheels"
30+
artifacts-name: "dist"
2831

2932
linux:
3033
uses: ./.github/workflows/wheels-linux.yml
3134
with:
32-
artifacts-name: "wheels"
35+
artifacts-name: "dist"
36+
37+
sdist:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v4
41+
42+
- name: Set up Python
43+
uses: actions/setup-python@v4
44+
with:
45+
python-version: "3.x"
46+
cache: pip
47+
cache-dependency-path: "Makefile"
48+
49+
- run: make sdist
50+
51+
- uses: actions/upload-artifact@v3
52+
with:
53+
name: dist
54+
path: dist/*.tar.gz
3355

3456
success:
3557
permissions:
3658
contents: none
37-
needs: [macos, linux]
59+
needs: [macos, linux, sdist]
3860
runs-on: ubuntu-latest
3961
name: Wheels Successful
4062
steps:

RELEASING.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,8 @@ Released quarterly on January 2nd, April 1st, July 1st and October 15th.
2020
git tag 5.2.0
2121
git push --tags
2222
```
23-
* [ ] Create and check source distribution:
24-
```bash
25-
make sdist
26-
```
27-
* [ ] Create [binary distributions](https://github.com/python-pillow/Pillow/blob/main/RELEASING.md#binary-distributions)
28-
* [ ] Check and upload all binaries and source distributions e.g.:
23+
* [ ] Create [source and binary distributions](https://github.com/python-pillow/Pillow/blob/main/RELEASING.md#source-and-binary-distributions)
24+
* [ ] Check and upload all source and binary distributions e.g.:
2925
```bash
3026
python3 -m twine check --strict dist/*
3127
python3 -m twine upload dist/Pillow-5.2.0*
@@ -59,8 +55,8 @@ Released as needed for security, installation or critical bug fixes.
5955
```bash
6056
make sdist
6157
```
62-
* [ ] Create [binary distributions](https://github.com/python-pillow/Pillow/blob/main/RELEASING.md#binary-distributions)
63-
* [ ] Check and upload all binaries and source distributions e.g.:
58+
* [ ] Create [source and binary distributions](https://github.com/python-pillow/Pillow/blob/main/RELEASING.md#source-and-binary-distributions)
59+
* [ ] Check and upload all source and binary distributions e.g.:
6460
```bash
6561
python3 -m twine check --strict dist/*
6662
python3 -m twine upload dist/Pillow-5.2.1*
@@ -90,20 +86,20 @@ Released as needed privately to individual vendors for critical security-related
9086
```bash
9187
make sdist
9288
```
93-
* [ ] Create [binary distributions](https://github.com/python-pillow/Pillow/blob/main/RELEASING.md#binary-distributions)
89+
* [ ] Create [source and binary distributions](https://github.com/python-pillow/Pillow/blob/main/RELEASING.md#source-and-binary-distributions)
9490
* [ ] Publish the [release on GitHub](https://github.com/python-pillow/Pillow/releases) and then:
9591
```bash
9692
git push origin 2.5.x
9793
```
9894

99-
## Binary Distributions
95+
## Source and Binary Distributions
10096

10197
### macOS and Linux
102-
* [ ] Download wheels from the [GitHub Actions "Wheels" workflow](https://github.com/python-pillow/Pillow/actions/workflows/wheels.yml)
98+
* [ ] Download sdist and wheels from the [GitHub Actions "Wheels" workflow](https://github.com/python-pillow/Pillow/actions/workflows/wheels.yml)
10399
and copy into `dist/`. For example using [GitHub CLI](https://github.com/cli/cli):
104100
```bash
105101
gh run download --dir dist
106-
# select wheels
102+
# select dist
107103
```
108104
* [ ] Download the Linux aarch64 wheels created by Travis CI from [GitHub releases](https://github.com/python-pillow/Pillow/releases)
109105
and copy into `dist`.

0 commit comments

Comments
 (0)