Skip to content

Commit 6a7a59f

Browse files
committed
Update to libgit2 v1.9.4 and fix wheels
1 parent c5db72d commit 6a7a59f

7 files changed

Lines changed: 17 additions & 18 deletions

File tree

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ jobs:
3131
run: ruff check
3232

3333
- name: Check typing with mypy
34-
run: LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.2 /bin/sh build.sh mypy
34+
run: LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.4 /bin/sh build.sh mypy

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ jobs:
2525
apt-get update -q -y
2626
apt-get install -q -y cmake libssl-dev python3-dev python3-venv wget
2727
run: |
28-
LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.2 /bin/sh build.sh test
28+
LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.4 /bin/sh build.sh test
2929
continue-on-error: true # Tests are expected to fail, see issue #812

.github/workflows/wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
run: python -m cibuildwheel dist/*.tar.gz --output-dir wheelhouse
126126
env:
127127
CIBW_ARCHS: ppc64le
128-
CIBW_ENVIRONMENT: LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.2 LIBGIT2=/project/ci
128+
CIBW_ENVIRONMENT: LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.4 LIBGIT2=/project/ci
129129

130130
- uses: actions/upload-artifact@v7
131131
with:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.PHONY: build html
22

33
build:
4-
OPENSSL_VERSION=3.5.4 LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.2 sh build.sh
4+
OPENSSL_VERSION=3.5.4 LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.4 sh build.sh
55

66
html: build
77
make -C docs html

build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
#
2323
# sh build.sh
2424
#
25-
# Build libgit2 1.9.2 (will use libssh2 if available), then build pygit2
25+
# Build libgit2 1.9.4 (will use libssh2 if available), then build pygit2
2626
# inplace:
2727
#
28-
# LIBGIT2_VERSION=1.9.2 sh build.sh
28+
# LIBGIT2_VERSION=1.9.4 sh build.sh
2929
#
30-
# Build libssh2 1.11.1 and libgit2 1.9.2, then build pygit2 inplace:
30+
# Build libssh2 1.11.1 and libgit2 1.9.4, then build pygit2 inplace:
3131
#
32-
# LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.2 sh build.sh
32+
# LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.4 sh build.sh
3333
#
3434
# Build inplace and run the tests:
3535
#

docs/install.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ directory, do:
158158
.. code-block:: sh
159159
:caption: On Linux using bash
160160
161-
wget https://github.com/libgit2/libgit2/archive/refs/tags/v1.9.2.tar.gz -O libgit2-1.9.2.tar.gz
162-
tar -xzf libgit2-1.9.2.tar.gz
163-
cd libgit2-1.9.2/
161+
wget https://github.com/libgit2/libgit2/archive/refs/tags/v1.9.4.tar.gz -O libgit2-1.9.4.tar.gz
162+
tar -xzf libgit2-1.9.4.tar.gz
163+
cd libgit2-1.9.4/
164164
cmake .
165165
make
166166
sudo make install
@@ -245,9 +245,9 @@ Install libgit2 (see we define the installation prefix):
245245
.. code-block:: sh
246246
:caption: On Linux using bash
247247
248-
wget https://github.com/libgit2/libgit2/archive/refs/tags/v1.9.2.tar.gz -O libgit2-1.9.2.tar.gz
249-
tar xzf libgit2-1.9.2.tar.gz
250-
cd libgit2-1.9.2/
248+
wget https://github.com/libgit2/libgit2/archive/refs/tags/v1.9.4.tar.gz -O libgit2-1.9.4.tar.gz
249+
tar xzf libgit2-1.9.4.tar.gz
250+
cd libgit2-1.9.4/
251251
cmake . -DCMAKE_INSTALL_PREFIX=$LIBGIT2
252252
cmake --build . --target install
253253
@@ -307,7 +307,7 @@ variable. The following recipe shows you how to do it:
307307
.. code-block:: pwsh
308308
:caption: On Windows using PowerShell (and CMake v3.21 or newer)
309309
310-
git clone --depth=1 -b v1.9.2 https://github.com/libgit2/libgit2.git
310+
git clone --depth=1 -b v1.9.4 https://github.com/libgit2/libgit2.git
311311
$env:CMAKE_INSTALL_PREFIX = "C:/Dev/libgit2"
312312
$env:CMAKE_GENERATOR = "Visual Studio 17 2022"
313313
$env:CMAKE_GENERATOR_PLATFORM = "x64" # or "Win32" or "ARM64"

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ skip = "*musllinux_ppc64le"
99
archs = ["native"]
1010
build-frontend = "default"
1111
dependency-versions = "pinned"
12-
environment = {LIBGIT2_VERSION="1.9.2", LIBSSH2_VERSION="1.11.1", OPENSSL_VERSION="3.5.4"}
12+
environment = {LIBGIT2="$(pwd)/ci", LIBGIT2_VERSION="1.9.4", LIBSSH2_VERSION="1.11.1", OPENSSL_VERSION="3.5.4"}
1313

1414
before-all = "sh build.sh"
15-
before-build = "export LIBGIT2='{package}/ci'"
1615
test-command = "pytest"
1716
test-sources = ["test", "pytest.ini"]
1817
before-test = "pip install -r {package}/requirements-test.txt"
@@ -33,7 +32,7 @@ repair-wheel-command = "DYLD_LIBRARY_PATH={package}/ci/lib delocate-wheel --requ
3332

3433
[tool.cibuildwheel.windows]
3534
environment.LIBGIT2_SRC = "build/libgit2_src"
36-
environment.LIBGIT2_VERSION = "1.9.2"
35+
environment.LIBGIT2_VERSION = "1.9.4"
3736
before-all = "powershell -File build.ps1"
3837
before-build = ""
3938

0 commit comments

Comments
 (0)