mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 16:07:30 +03:00 
			
		
		
		
	Merge pull request #7544 from hugovk/ci-sdist
Release automation: create sdist on CI
This commit is contained in:
		
						commit
						12022fe54e
					
				
							
								
								
									
										28
									
								
								.github/workflows/wheels.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										28
									
								
								.github/workflows/wheels.yml
									
									
									
									
										vendored
									
									
								
							|  | @ -20,21 +20,43 @@ concurrency: | ||||||
|   group: ${{ github.workflow }}-${{ github.ref }} |   group: ${{ github.workflow }}-${{ github.ref }} | ||||||
|   cancel-in-progress: true |   cancel-in-progress: true | ||||||
| 
 | 
 | ||||||
|  | env: | ||||||
|  |   FORCE_COLOR: 1 | ||||||
|  | 
 | ||||||
| jobs: | jobs: | ||||||
|   macos: |   macos: | ||||||
|     uses: ./.github/workflows/wheels-macos.yml |     uses: ./.github/workflows/wheels-macos.yml | ||||||
|     with: |     with: | ||||||
|       artifacts-name: "wheels" |       artifacts-name: "dist" | ||||||
| 
 | 
 | ||||||
|   linux: |   linux: | ||||||
|     uses: ./.github/workflows/wheels-linux.yml |     uses: ./.github/workflows/wheels-linux.yml | ||||||
|     with: |     with: | ||||||
|       artifacts-name: "wheels" |       artifacts-name: "dist" | ||||||
|  | 
 | ||||||
|  |   sdist: | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     steps: | ||||||
|  |     - uses: actions/checkout@v4 | ||||||
|  | 
 | ||||||
|  |     - name: Set up Python | ||||||
|  |       uses: actions/setup-python@v4 | ||||||
|  |       with: | ||||||
|  |         python-version: "3.x" | ||||||
|  |         cache: pip | ||||||
|  |         cache-dependency-path: "Makefile" | ||||||
|  | 
 | ||||||
|  |     - run: make sdist | ||||||
|  | 
 | ||||||
|  |     - uses: actions/upload-artifact@v3 | ||||||
|  |       with: | ||||||
|  |         name: dist | ||||||
|  |         path: dist/*.tar.gz | ||||||
| 
 | 
 | ||||||
|   success: |   success: | ||||||
|     permissions: |     permissions: | ||||||
|       contents: none |       contents: none | ||||||
|     needs: [macos, linux] |     needs: [macos, linux, sdist] | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     name: Wheels Successful |     name: Wheels Successful | ||||||
|     steps: |     steps: | ||||||
|  |  | ||||||
							
								
								
									
										20
									
								
								RELEASING.md
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								RELEASING.md
									
									
									
									
									
								
							|  | @ -20,12 +20,8 @@ Released quarterly on January 2nd, April 1st, July 1st and October 15th. | ||||||
|   git tag 5.2.0 |   git tag 5.2.0 | ||||||
|   git push --tags |   git push --tags | ||||||
|   ``` |   ``` | ||||||
| * [ ] Create and check source distribution: | * [ ] Create [source and binary distributions](https://github.com/python-pillow/Pillow/blob/main/RELEASING.md#source-and-binary-distributions) | ||||||
|   ```bash | * [ ] Check and upload all source and binary distributions e.g.: | ||||||
|   make sdist |  | ||||||
|   ``` |  | ||||||
| * [ ] Create [binary distributions](https://github.com/python-pillow/Pillow/blob/main/RELEASING.md#binary-distributions) |  | ||||||
| * [ ] Check and upload all binaries and source distributions e.g.: |  | ||||||
|   ```bash |   ```bash | ||||||
|   python3 -m twine check --strict dist/* |   python3 -m twine check --strict dist/* | ||||||
|   python3 -m twine upload dist/Pillow-5.2.0* |   python3 -m twine upload dist/Pillow-5.2.0* | ||||||
|  | @ -59,8 +55,8 @@ Released as needed for security, installation or critical bug fixes. | ||||||
|   ```bash |   ```bash | ||||||
|   make sdist |   make sdist | ||||||
|   ``` |   ``` | ||||||
| * [ ] Create [binary distributions](https://github.com/python-pillow/Pillow/blob/main/RELEASING.md#binary-distributions) | * [ ] Create [source and binary distributions](https://github.com/python-pillow/Pillow/blob/main/RELEASING.md#source-and-binary-distributions) | ||||||
| * [ ] Check and upload all binaries and source distributions e.g.: | * [ ] Check and upload all source and binary distributions e.g.: | ||||||
|   ```bash |   ```bash | ||||||
|   python3 -m twine check --strict dist/* |   python3 -m twine check --strict dist/* | ||||||
|   python3 -m twine upload dist/Pillow-5.2.1* |   python3 -m twine upload dist/Pillow-5.2.1* | ||||||
|  | @ -90,20 +86,20 @@ Released as needed privately to individual vendors for critical security-related | ||||||
|   ```bash |   ```bash | ||||||
|   make sdist |   make sdist | ||||||
|   ``` |   ``` | ||||||
| * [ ] Create [binary distributions](https://github.com/python-pillow/Pillow/blob/main/RELEASING.md#binary-distributions) | * [ ] Create [source and binary distributions](https://github.com/python-pillow/Pillow/blob/main/RELEASING.md#source-and-binary-distributions) | ||||||
| * [ ] Publish the [release on GitHub](https://github.com/python-pillow/Pillow/releases) and then: | * [ ] Publish the [release on GitHub](https://github.com/python-pillow/Pillow/releases) and then: | ||||||
|   ```bash |   ```bash | ||||||
|   git push origin 2.5.x |   git push origin 2.5.x | ||||||
|   ``` |   ``` | ||||||
| 
 | 
 | ||||||
| ## Binary Distributions | ## Source and Binary Distributions | ||||||
| 
 | 
 | ||||||
| ### macOS and Linux | ### macOS and Linux | ||||||
| * [ ] Download wheels from the [GitHub Actions "Wheels" workflow](https://github.com/python-pillow/Pillow/actions/workflows/wheels.yml) | * [ ] Download sdist and wheels from the [GitHub Actions "Wheels" workflow](https://github.com/python-pillow/Pillow/actions/workflows/wheels.yml) | ||||||
|   and copy into `dist/`. For example using [GitHub CLI](https://github.com/cli/cli): |   and copy into `dist/`. For example using [GitHub CLI](https://github.com/cli/cli): | ||||||
|   ```bash |   ```bash | ||||||
|   gh run download --dir dist |   gh run download --dir dist | ||||||
|   # select wheels |   # select dist | ||||||
|   ``` |   ``` | ||||||
| * [ ] Download the Linux aarch64 wheels created by Travis CI from [GitHub releases](https://github.com/python-pillow/Pillow/releases) | * [ ] Download the Linux aarch64 wheels created by Travis CI from [GitHub releases](https://github.com/python-pillow/Pillow/releases) | ||||||
|   and copy into `dist`. |   and copy into `dist`. | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user