Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/libgit2/pygit2 into typec…
Browse files Browse the repository at this point in the history
…heck
  • Loading branch information
DinhHuy2010 committed Jan 13, 2025
2 parents f019420 + a011e26 commit 86c62cd
Show file tree
Hide file tree
Showing 129 changed files with 176 additions and 142 deletions.
31 changes: 19 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- '**.rst'

jobs:
x86_64:
linux-x86_64:
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -18,8 +18,6 @@ jobs:
python-version: '3.13'
- os: ubuntu-24.04
python-version: 'pypy3.10'
- os: macos-latest
python-version: '3.10'

steps:
- name: Checkout pygit2
Expand All @@ -31,18 +29,11 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Linux
if: runner.os == 'Linux'
run: |
sudo apt install tinyproxy
LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.0 /bin/sh build.sh test
- name: macOS
if: runner.os == 'macOS'
run: |
export OPENSSL_PREFIX=`brew --prefix [email protected]`
LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.0 /bin/sh build.sh test
aarch64:
linux-arm64:
runs-on: ubuntu-24.04
steps:
- name: Checkout
Expand All @@ -59,7 +50,7 @@ jobs:
run: |
LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.0 /bin/sh build.sh test
s390x:
linux-s390x:
runs-on: ubuntu-24.04
if: github.ref == 'refs/heads/master'
steps:
Expand All @@ -77,3 +68,19 @@ jobs:
run: |
LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.0 /bin/sh build.sh test
continue-on-error: true # Tests are expected to fail, see issue #812

macos-arm64:
runs-on: macos-latest
steps:
- name: Checkout pygit2
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'

- name: macOS
run: |
export OPENSSL_PREFIX=`brew --prefix openssl@3`
LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.0 /bin/sh build.sh test
6 changes: 3 additions & 3 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@ jobs:
- name: linux
os: ubuntu-24.04
- name: macos
os: macos-12
os: macos-13

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.11'

- uses: docker/setup-qemu-action@v3
if: runner.os == 'Linux'
with:
platforms: all

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.21.3
run: python -m pip install cibuildwheel==2.22.0

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
Expand Down
5 changes: 5 additions & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ Authors:
Kaarel Kitsemets
Ken Dreyer
Kevin KIN-FOO
Kyle Gottfried
Marcel Waldvogel
Masud Rahman
Mathieu Parent
Expand Down Expand Up @@ -174,10 +175,12 @@ Authors:
Jasper Lievisse Adriaanse
Jimisola Laursen
Jiri Benc
Johann Miller
Jonathan Robson
Josh Bleecher Snyder
Julia Evans
Justin Clift
Kevin Valk
Konstantinos Smanis
Kyriakos Oikonomakos
Lance Eftink
Expand All @@ -187,6 +190,7 @@ Authors:
Mathieu Bridon
Mathieu Pillard
Matthaus Woolard
Matěj Cepl
Maxwell G
Michał Górny
Na'aman Hirschfeld
Expand All @@ -208,6 +212,7 @@ Authors:
Rodrigo Bistolfi
Ross Nicoll
Rui Abreu Ferreira
Rui Chen
Sandro Jäckel
Saul Pwanson
Shane Turner
Expand Down
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
# 1.17.0 (2025-01-08)

- Upgrade to libgit2 1.9

- Add `certificate_check` callback to `Remote.ls_remotes(...)`
[#1326](https://github.com/libgit2/pygit2/pull/1326)

- Fix build with GCC 14
[#1324](https://github.com/libgit2/pygit2/pull/1324)

- Release wheels for PyPy
[#1336](https://github.com/libgit2/pygit2/pull/1336)
[#1339](https://github.com/libgit2/pygit2/pull/1339)

- CI: update tests for macOS to use OpenSSL 3
[#1335](https://github.com/libgit2/pygit2/pull/1335)

- Documentation: fix typo in `Repository.status(...)` docstring
[#1327](https://github.com/libgit2/pygit2/pull/1327)


# 1.16.0 (2024-10-11)

- Add support for Python 3.13
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 1.16.{build}
version: 1.17.{build}
image: Visual Studio 2019
configuration: Release
environment:
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
# -- Project information -----------------------------------------------------

project = 'pygit2'
copyright = '2010-2024 The pygit2 contributors'
copyright = '2010-2025 The pygit2 contributors'
# author = ''

# The full version, including alpha/beta/rc tags
release = '1.16.0'
release = '1.17.0'


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion pygit2/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2010-2024 The pygit2 contributors
# Copyright 2010-2025 The pygit2 contributors
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
Expand Down
4 changes: 2 additions & 2 deletions pygit2/_build.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2010-2024 The pygit2 contributors
# Copyright 2010-2025 The pygit2 contributors
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
Expand Down Expand Up @@ -34,7 +34,7 @@
#
# The version number of pygit2
#
__version__ = '1.16.0'
__version__ = '1.17.0'


#
Expand Down
2 changes: 1 addition & 1 deletion pygit2/_run.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2010-2024 The pygit2 contributors
# Copyright 2010-2025 The pygit2 contributors
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion pygit2/blame.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2010-2024 The pygit2 contributors
# Copyright 2010-2025 The pygit2 contributors
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion pygit2/branches.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2010-2024 The pygit2 contributors
# Copyright 2010-2025 The pygit2 contributors
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion pygit2/callbacks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2010-2024 The pygit2 contributors
# Copyright 2010-2025 The pygit2 contributors
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion pygit2/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2010-2024 The pygit2 contributors
# Copyright 2010-2025 The pygit2 contributors
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion pygit2/credentials.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2010-2024 The pygit2 contributors
# Copyright 2010-2025 The pygit2 contributors
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion pygit2/enums.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2010-2024 The pygit2 contributors
# Copyright 2010-2025 The pygit2 contributors
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion pygit2/errors.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2010-2024 The pygit2 contributors
# Copyright 2010-2025 The pygit2 contributors
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion pygit2/ffi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2010-2024 The pygit2 contributors
# Copyright 2010-2025 The pygit2 contributors
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion pygit2/filter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2010-2024 The pygit2 contributors
# Copyright 2010-2025 The pygit2 contributors
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion pygit2/index.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2010-2024 The pygit2 contributors
# Copyright 2010-2025 The pygit2 contributors
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion pygit2/legacyenums.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2010-2024 The pygit2 contributors
# Copyright 2010-2025 The pygit2 contributors
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion pygit2/packbuilder.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2010-2024 The pygit2 contributors
# Copyright 2010-2025 The pygit2 contributors
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion pygit2/references.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2010-2024 The pygit2 contributors
# Copyright 2010-2025 The pygit2 contributors
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion pygit2/refspec.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2010-2024 The pygit2 contributors
# Copyright 2010-2025 The pygit2 contributors
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion pygit2/remotes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2010-2024 The pygit2 contributors
# Copyright 2010-2025 The pygit2 contributors
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion pygit2/repository.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2010-2024 The pygit2 contributors
# Copyright 2010-2025 The pygit2 contributors
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion pygit2/settings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2010-2024 The pygit2 contributors
# Copyright 2010-2025 The pygit2 contributors
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion pygit2/submodules.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2010-2024 The pygit2 contributors
# Copyright 2010-2025 The pygit2 contributors
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion pygit2/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2010-2024 The pygit2 contributors
# Copyright 2010-2025 The pygit2 contributors
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
requires = ["setuptools", "wheel"]

[tool.cibuildwheel]
skip = "pp3* *musllinux_aarch64 *musllinux_ppc64le"
enable = ["pypy"]
skip = "*musllinux_aarch64 *musllinux_ppc64le"

archs = ["auto"]
build-frontend = "default"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2010-2024 The pygit2 contributors
# Copyright 2010-2025 The pygit2 contributors
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion src/blob.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2024 The pygit2 contributors
* Copyright 2010-2025 The pygit2 contributors
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion src/branch.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2024 The pygit2 contributors
* Copyright 2010-2025 The pygit2 contributors
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion src/branch.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2024 The pygit2 contributors
* Copyright 2010-2025 The pygit2 contributors
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion src/commit.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2024 The pygit2 contributors
* Copyright 2010-2025 The pygit2 contributors
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion src/diff.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2024 The pygit2 contributors
* Copyright 2010-2025 The pygit2 contributors
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion src/diff.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2024 The pygit2 contributors
* Copyright 2010-2025 The pygit2 contributors
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion src/error.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2024 The pygit2 contributors
* Copyright 2010-2025 The pygit2 contributors
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion src/error.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2024 The pygit2 contributors
* Copyright 2010-2025 The pygit2 contributors
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2,
Expand Down
2 changes: 1 addition & 1 deletion src/filter.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2024 The pygit2 contributors
* Copyright 2010-2025 The pygit2 contributors
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2,
Expand Down
Loading

0 comments on commit 86c62cd

Please sign in to comment.