Skip to content

Commit ed2e1ad

Browse files
committed
Update to libgit2 1.9.6
1 parent 1c03510 commit ed2e1ad

10 files changed

Lines changed: 29 additions & 27 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.4 /bin/sh build.sh mypy
34+
run: LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.6 /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.4 /bin/sh build.sh test
28+
LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.6 /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
@@ -135,7 +135,7 @@ jobs:
135135
run: python -m cibuildwheel dist/*.tar.gz --output-dir wheelhouse
136136
env:
137137
CIBW_ARCHS: ${{ matrix.cibw_arch }}
138-
CIBW_ENVIRONMENT: LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.4 LIBGIT2=/project/ci
138+
CIBW_ENVIRONMENT: LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.6 LIBGIT2=/project/ci
139139

140140
- uses: actions/upload-artifact@v7
141141
with:

AGENTS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ and a high-level, Pythonic API for repository manipulation.
1111
- **License**: GPLv2 with linking exception (see `COPYING`)
1212
- **Maintainer**: J. David Ibáñez
1313
- **Python Support**: 3.11 – 3.14 and PyPy3 7.3+
14-
- **libgit2 Version**: 1.9.4
14+
- **libgit2 Version**: 1.9.6
1515
- **Homepage**: <https://www.pygit2.org/>
1616
- **Repository**: <https://github.com/libgit2/pygit2>
1717

@@ -105,7 +105,7 @@ handles libgit2 compilation via CMake.
105105
make
106106

107107
# Or manually:
108-
LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.4 sh build.sh
108+
LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.6 sh build.sh
109109

110110
# Build inplace and run the tests
111111
sh build.sh test
@@ -246,7 +246,7 @@ GitHub Actions workflows live in `.github/workflows/`:
246246

247247
The `cibuildwheel` configuration in `pyproject.toml` pins:
248248

249-
- `LIBGIT2_VERSION="1.9.4"`
249+
- `LIBGIT2_VERSION="1.9.6"`
250250
- `LIBSSH2_VERSION="1.11.1"`
251251
- `OPENSSL_VERSION="3.5.4"`
252252

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
- Add riscv64 wheels
1111
[#1463](https://github.com/libgit2/pygit2/pull/1463)
1212

13+
- Update wheels to libgit2 1.9.6
14+
1315
Breaking changes:
1416

1517
- Remove deprecated `pygit2.legacyenums` module and `GIT_*` constants,

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.4 sh build.sh
4+
OPENSSL_VERSION=3.5.4 LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.6 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.4 (will use libssh2 if available), then build pygit2
25+
# Build libgit2 1.9.6 (will use libssh2 if available), then build pygit2
2626
# inplace:
2727
#
28-
# LIBGIT2_VERSION=1.9.4 sh build.sh
28+
# LIBGIT2_VERSION=1.9.6 sh build.sh
2929
#
30-
# Build libssh2 1.11.1 and libgit2 1.9.4, then build pygit2 inplace:
30+
# Build libssh2 1.11.1 and libgit2 1.9.6, then build pygit2 inplace:
3131
#
32-
# LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.4 sh build.sh
32+
# LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.6 sh build.sh
3333
#
3434
# Build inplace and run the tests:
3535
#

docs/general.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,41 +18,41 @@ library that has been built against. The version number has a
1818
.. py:data:: LIBGIT2_VER_MAJOR
1919
2020
Integer value of the major version number. For example, for the version
21-
``1.9.4``::
21+
``1.9.6``::
2222

2323
>>> print(pygit2.LIBGIT2_VER_MAJOR)
2424
1
2525

2626
.. py:data:: LIBGIT2_VER_MINOR
2727
2828
Integer value of the minor version number. For example, for the version
29-
``1.9.4``::
29+
``1.9.6``::
3030

3131
>>> print(pygit2.LIBGIT2_VER_MINOR)
3232
9
3333

3434
.. py:data:: LIBGIT2_VER_REVISION
3535
3636
Integer value of the revision version number. For example, for the version
37-
``1.9.4``::
37+
``1.9.6``::
3838

3939
>>> print(pygit2.LIBGIT2_VER_REVISION)
40-
4
40+
6
4141

4242
.. py:data:: LIBGIT2_VER
4343
4444
Tuple value of the revision version numbers. For example, for the version
45-
``1.9.4``::
45+
``1.9.6``::
4646

4747
>>> print(pygit2.LIBGIT2_VER)
48-
(1, 9, 4)
48+
(1, 9, 6)
4949

5050
.. py:data:: LIBGIT2_VERSION
5151
5252
The libgit2 version number as a string::
5353

5454
>>> print(pygit2.LIBGIT2_VERSION)
55-
'1.9.4'
55+
'1.9.6'
5656

5757
Options
5858
=========

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.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/
161+
wget https://github.com/libgit2/libgit2/archive/refs/tags/v1.9.6.tar.gz -O libgit2-1.9.6.tar.gz
162+
tar -xzf libgit2-1.9.6.tar.gz
163+
cd libgit2-1.9.6/
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.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/
248+
wget https://github.com/libgit2/libgit2/archive/refs/tags/v1.9.6.tar.gz -O libgit2-1.9.6.tar.gz
249+
tar xzf libgit2-1.9.6.tar.gz
250+
cd libgit2-1.9.6/
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.4 https://github.com/libgit2/libgit2.git
310+
git clone --depth=1 -b v1.9.6 https://github.com/libgit2/libgit2.git
311311
$env:CMAKE_INSTALL_PREFIX = "C:/Dev/libgit2"
312312
$env:CMAKE_GENERATOR = "Visual Studio 17 2022" # or "Visual Studio 18 2026"
313313
$env:CMAKE_GENERATOR_PLATFORM = "x64" # or "Win32" or "ARM64"

pyproject.toml

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

1414
before-all = "sh build.sh"
1515
test-command = "pytest"
@@ -32,7 +32,7 @@ repair-wheel-command = "DYLD_LIBRARY_PATH={package}/ci/lib delocate-wheel --requ
3232

3333
[tool.cibuildwheel.windows]
3434
environment.LIBGIT2_SRC = "build/libgit2_src"
35-
environment.LIBGIT2_VERSION = "1.9.4"
35+
environment.LIBGIT2_VERSION = "1.9.6"
3636
before-all = "powershell -File build.ps1"
3737
before-build = ""
3838

0 commit comments

Comments
 (0)