mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-01 00:17:27 +03:00 
			
		
		
		
	Merge pull request #7535 from hugovk/add-3.13
This commit is contained in:
		
						commit
						556dd1e15c
					
				|  | @ -28,7 +28,8 @@ fi | ||||||
| 
 | 
 | ||||||
| python3 -m pip install --upgrade pip | python3 -m pip install --upgrade pip | ||||||
| python3 -m pip install --upgrade wheel | python3 -m pip install --upgrade wheel | ||||||
| PYTHONOPTIMIZE=0 python3 -m pip install cffi | # TODO Update condition when cffi supports 3.13 | ||||||
|  | if ! [[ "$GHA_PYTHON_VERSION" == "3.13" ]]; then PYTHONOPTIMIZE=0 python3 -m pip install cffi ; fi | ||||||
| python3 -m pip install coverage | python3 -m pip install coverage | ||||||
| python3 -m pip install defusedxml | python3 -m pip install defusedxml | ||||||
| python3 -m pip install olefile | python3 -m pip install olefile | ||||||
|  | @ -38,7 +39,8 @@ python3 -m pip install -U pytest-timeout | ||||||
| python3 -m pip install pyroma | python3 -m pip install pyroma | ||||||
| 
 | 
 | ||||||
| if [[ $(uname) != CYGWIN* ]]; then | if [[ $(uname) != CYGWIN* ]]; then | ||||||
|     python3 -m pip install numpy |     # TODO Update condition when NumPy supports 3.13 | ||||||
|  |     if ! [[ "$GHA_PYTHON_VERSION" == "3.13" ]]; then python3 -m pip install numpy ; fi | ||||||
| 
 | 
 | ||||||
|     # PyQt6 doesn't support PyPy3 |     # PyQt6 doesn't support PyPy3 | ||||||
|     if [[ $GHA_PYTHON_VERSION == 3.* ]]; then |     if [[ $GHA_PYTHON_VERSION == 3.* ]]; then | ||||||
|  |  | ||||||
							
								
								
									
										7
									
								
								.github/workflows/macos-install.sh
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/workflows/macos-install.sh
									
									
									
									
										vendored
									
									
								
							|  | @ -5,7 +5,9 @@ set -e | ||||||
| brew install libtiff libjpeg openjpeg libimagequant webp little-cms2 freetype libraqm | brew install libtiff libjpeg openjpeg libimagequant webp little-cms2 freetype libraqm | ||||||
| export PKG_CONFIG_PATH="/usr/local/opt/openblas/lib/pkgconfig" | export PKG_CONFIG_PATH="/usr/local/opt/openblas/lib/pkgconfig" | ||||||
| 
 | 
 | ||||||
| PYTHONOPTIMIZE=0 python3 -m pip install cffi | # TODO Update condition when cffi supports 3.13 | ||||||
|  | if ! [[ "$GHA_PYTHON_VERSION" == "3.13" ]]; then PYTHONOPTIMIZE=0 python3 -m pip install cffi ; fi | ||||||
|  | 
 | ||||||
| python3 -m pip install coverage | python3 -m pip install coverage | ||||||
| python3 -m pip install defusedxml | python3 -m pip install defusedxml | ||||||
| python3 -m pip install olefile | python3 -m pip install olefile | ||||||
|  | @ -14,7 +16,8 @@ python3 -m pip install -U pytest-cov | ||||||
| python3 -m pip install -U pytest-timeout | python3 -m pip install -U pytest-timeout | ||||||
| python3 -m pip install pyroma | python3 -m pip install pyroma | ||||||
| 
 | 
 | ||||||
| python3 -m pip install numpy | # TODO Update condition when NumPy supports 3.13 | ||||||
|  | if ! [[ "$GHA_PYTHON_VERSION" == "3.13" ]]; then python3 -m pip install numpy ; fi | ||||||
| 
 | 
 | ||||||
| # extra test images | # extra test images | ||||||
| pushd depends && ./install_extra_test_images.sh && popd | pushd depends && ./install_extra_test_images.sh && popd | ||||||
|  |  | ||||||
							
								
								
									
										3
									
								
								.github/workflows/test-windows.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/workflows/test-windows.yml
									
									
									
									
										vendored
									
									
								
							|  | @ -32,7 +32,7 @@ jobs: | ||||||
|     strategy: |     strategy: | ||||||
|       fail-fast: false |       fail-fast: false | ||||||
|       matrix: |       matrix: | ||||||
|         python-version: ["pypy3.10", "pypy3.9", "3.8", "3.9", "3.10", "3.11", "3.12"] |         python-version: ["pypy3.10", "pypy3.9", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] | ||||||
| 
 | 
 | ||||||
|     timeout-minutes: 30 |     timeout-minutes: 30 | ||||||
| 
 | 
 | ||||||
|  | @ -59,6 +59,7 @@ jobs: | ||||||
|       uses: actions/setup-python@v4 |       uses: actions/setup-python@v4 | ||||||
|       with: |       with: | ||||||
|         python-version: ${{ matrix.python-version }} |         python-version: ${{ matrix.python-version }} | ||||||
|  |         allow-prereleases: true | ||||||
|         cache: pip |         cache: pip | ||||||
|         cache-dependency-path: ".github/workflows/test-windows.yml" |         cache-dependency-path: ".github/workflows/test-windows.yml" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
							
								
								
									
										2
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							|  | @ -41,6 +41,7 @@ jobs: | ||||||
|         python-version: [ |         python-version: [ | ||||||
|           "pypy3.10", |           "pypy3.10", | ||||||
|           "pypy3.9", |           "pypy3.9", | ||||||
|  |           "3.13", | ||||||
|           "3.12", |           "3.12", | ||||||
|           "3.11", |           "3.11", | ||||||
|           "3.10", |           "3.10", | ||||||
|  | @ -64,6 +65,7 @@ jobs: | ||||||
|       uses: actions/setup-python@v4 |       uses: actions/setup-python@v4 | ||||||
|       with: |       with: | ||||||
|         python-version: ${{ matrix.python-version }} |         python-version: ${{ matrix.python-version }} | ||||||
|  |         allow-prereleases: true | ||||||
|         cache: pip |         cache: pip | ||||||
|         cache-dependency-path: ".ci/*.sh" |         cache-dependency-path: ".ci/*.sh" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -14,6 +14,10 @@ | ||||||
| 
 | 
 | ||||||
| #ifdef HAVE_LIBTIFF | #ifdef HAVE_LIBTIFF | ||||||
| 
 | 
 | ||||||
|  | #ifdef HAVE_UNISTD_H | ||||||
|  | #include <unistd.h> /* lseek */ | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
| #ifndef uint | #ifndef uint | ||||||
| #define uint uint32 | #define uint uint32 | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|  | @ -13,12 +13,6 @@ | ||||||
| #include <tiff.h> | #include <tiff.h> | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| /* UNDONE -- what are we using from this? */ |  | ||||||
| /*#ifndef _UNISTD_H
 |  | ||||||
|   # include <unistd.h> |  | ||||||
|   # endif |  | ||||||
| */ |  | ||||||
| 
 |  | ||||||
| #ifndef min | #ifndef min | ||||||
| #define min(x, y) ((x > y) ? y : x) | #define min(x, y) ((x > y) ? y : x) | ||||||
| #define max(x, y) ((x < y) ? y : x) | #define max(x, y) ((x < y) ? y : x) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user