libgit2 / pygit2

Python bindings for libgit2
https://www.pygit2.org/
Other
1.61k stars 385 forks source link

bump cibuildwheel to 2.9.0 to build Python 3.11 wheels, also test on CI #1154

Closed skshetry closed 2 years ago

skshetry commented 2 years ago

Python 3.11.0rc1 is now released, which is guaranteed to be ABI compatible with the final release. And the cibuildwheel v2.9.0 release includes Python 3.11 and builds wheels by default.

I also added a CI job to test with Python 3.11 in Linux so that any issues are caught. After final release, we can remove the Python 3.10 version with 3.11 and reduce matrix that we are testing now.

Here's the GHA log for building wheels on my fork: https://github.com/skshetry/pygit2/actions/runs/2851936137.

skshetry commented 2 years ago

@jdavid, would it be possible to make a release? 🙂

staciax commented 1 year ago

python 3.11

python : Python 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)] on win32

(venv) PS C:\stacia\coding\bot-private> pip install pygit2                  
Collecting pygit2
  Using cached pygit2-1.10.1.tar.gz (730 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Collecting cffi>=1.9.1
  Using cached cffi-1.15.1-cp311-cp311-win_amd64.whl (179 kB)
Collecting pycparser
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Building wheels for collected packages: pygit2
  Building wheel for pygit2 (pyproject.toml) ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\stacia\coding\bot-private\venv\Scripts\python.exe' 'C:\stacia\coding\bot-private\venv\Lib\site-packages\pip\_vendor\pep517\in_p
rocess\_in_process.py' build_wheel 'C:\Users\deemc\AppData\Local\Temp\tmp5n7k3dgk'
       cwd: C:\Users\deemc\AppData\Local\Temp\pip-install-d5ex1pqv\pygit2_5ae7b6a630be4316a5fe2ee1fbc1bbc1
  Complete output (64 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-cpython-311
  creating build\lib.win-amd64-cpython-311\pygit2
  copying pygit2\blame.py -> build\lib.win-amd64-cpython-311\pygit2
  copying pygit2\callbacks.py -> build\lib.win-amd64-cpython-311\pygit2
  copying pygit2\config.py -> build\lib.win-amd64-cpython-311\pygit2
  copying pygit2\credentials.py -> build\lib.win-amd64-cpython-311\pygit2
  copying pygit2\errors.py -> build\lib.win-amd64-cpython-311\pygit2
  copying pygit2\ffi.py -> build\lib.win-amd64-cpython-311\pygit2
  copying pygit2\index.py -> build\lib.win-amd64-cpython-311\pygit2
  copying pygit2\packbuilder.py -> build\lib.win-amd64-cpython-311\pygit2
  copying pygit2\refspec.py -> build\lib.win-amd64-cpython-311\pygit2
  copying pygit2\remote.py -> build\lib.win-amd64-cpython-311\pygit2
  copying pygit2\repository.py -> build\lib.win-amd64-cpython-311\pygit2
  copying pygit2\settings.py -> build\lib.win-amd64-cpython-311\pygit2
  copying pygit2\submodule.py -> build\lib.win-amd64-cpython-311\pygit2
  copying pygit2\utils.py -> build\lib.win-amd64-cpython-311\pygit2
  copying pygit2\_build.py -> build\lib.win-amd64-cpython-311\pygit2
  copying pygit2\_run.py -> build\lib.win-amd64-cpython-311\pygit2
  copying pygit2\__init__.py -> build\lib.win-amd64-cpython-311\pygit2
  creating build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\attr.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\blame.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\buffer.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\callbacks.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\checkout.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\clone.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\commit.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\common.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\config.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\describe.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\diff.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\errors.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\graph.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\index.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\indexer.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\merge.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\net.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\oid.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\pack.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\proxy.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\refspec.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\remote.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\repository.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\revert.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\stash.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\strarray.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\submodule.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\transport.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\decl\types.h -> build\lib.win-amd64-cpython-311\pygit2\decl
  copying pygit2\_pygit2.pyi -> build\lib.win-amd64-cpython-311\pygit2
  running build_ext
  generating cffi module 'build\\temp.win-amd64-cpython-311\\Release\\pygit2._libgit2.c'
  creating build\temp.win-amd64-cpython-311
  creating build\temp.win-amd64-cpython-311\Release
  building 'pygit2._pygit2' extension
  creating build\temp.win-amd64-cpython-311\Release\src
  "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /
MD "-IC:\Program Files\libgit2\include" -IC:\stacia\coding\bot-private\venv\include -IC:\Users\deemc\AppData\Local\Programs\Python\Python311\in
clude -IC:\Users\deemc\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSV
C\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program File
s\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\P
rogram Files (x86)\Windows Kits\10\\include\10.0.19041.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\shared" "-IC:\Pr
ogram Files (x86)\Windows Kits\10\\include\10.0.19041.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\cppwinrt" "-IC
:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcsrc\blob.c /Fobuild\temp.win-amd64-cpython-311\Release\src\blob.obj
  blob.c
  C:\Users\deemc\AppData\Local\Temp\pip-install-d5ex1pqv\pygit2_5ae7b6a630be4316a5fe2ee1fbc1bbc1\src\diff.h(33): fatal error C1083: Cannot open
 include file: 'git2.h': No such file or directory
  error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.33.31629\\bin\\HostX86\\x64\\cl.exe' failed
 with exit code 2
  ----------------------------------------
  ERROR: Failed building wheel for pygit2
Failed to build pygit2
ERROR: Could not build wheels for pygit2, which is required to install pyproject.toml-based projects
skshetry commented 1 year ago

@staciax, no wheels for Windows + 3.11 till appveyor adds support to it: https://github.com/appveyor/ci/issues/3844

staciax commented 1 year ago

@staciax, no wheels for Windows + 3.11 till appveyor adds support to it: appveyor/ci#3844 oh okay thanks you so much ❤️

skshetry commented 1 year ago

v1.11.1 has wheels for Python 3.11 on Windows.