Skip to content

Commit

Permalink
fix windows, py313 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
fdintino committed Oct 16, 2024
1 parent 922c2da commit 6988dc0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/wheels-test.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
param ([string]$venv, [string]$pillow_avif_plugin="C:\pillow_avif_plugin")
param ([string]$venv, [string]$pillow_avif_plugin="C:\pillow-avif-plugin")
$ErrorActionPreference = 'Stop'
$ProgressPreference = 'SilentlyContinue'
Set-PSDebug -Trace 1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,12 @@ jobs:
CIBW_PRERELEASE_PYTHONS: True
CIBW_TEST_SKIP: "*-win_arm64"
CIBW_TEST_COMMAND: 'docker run --rm
-v {project}:C:\pillow
-v {project}:C:\pillow-avif-plugin
-v C:\cibw:C:\cibw
-v %CD%\..\venv-test:%CD%\..\venv-test
-e CI -e GITHUB_ACTIONS
mcr.microsoft.com/windows/servercore:ltsc2022
powershell C:\pillow\.github\workflows\wheels-test.ps1 %CD%\..\venv-test'
powershell C:\pillow-avif-plugin\.github\workflows\wheels-test.ps1 %CD%\..\venv-test'
shell: cmd

- name: Upload wheels
Expand Down
26 changes: 16 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,21 @@ def readme():
]
)

test_requires = [
"gcovr",
"pytest",
"packaging",
"pytest-cov",
"test-image-results",
"pillow",
]

if sys.version_info[:2] == (3, 13):
test_requires += [
"git+https://github.com/cython/cython.git@"
"7beedb19c43f3e865056b8181e55897b222a645b#egg=cython"
]

setup(
name="pillow-avif-plugin",
description="A pillow plugin that adds avif support via libavif",
Expand All @@ -64,16 +79,7 @@ def readme():
url="https://github.com/fdintino/pillow-avif-plugin/",
download_url="https://github.com/fdintino/pillow-avif-plugin/releases",
install_requires=[],
extras_require={
"tests": [
"gcovr",
"pytest",
"packaging",
"pytest-cov",
"test-image-results",
"pillow",
]
},
extras_require={"tests": test_requires},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
Expand Down

0 comments on commit 6988dc0

Please sign in to comment.