Skip to content

Commit

Permalink
Merge pull request #8049 from ThomasWaldmann/bump-api-version-1.4
Browse files Browse the repository at this point in the history
bump api version to 1.4
  • Loading branch information
ThomasWaldmann committed Jan 18, 2024
2 parents 49d21f9 + 98fa922 commit 06f6136
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/borg/chunker.pyx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

API_VERSION = '1.2_01'
API_VERSION = '1.4_01'

import errno
import os
Expand Down
2 changes: 1 addition & 1 deletion src/borg/compress.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ except ImportError:
from .constants import MAX_DATA_SIZE
from .helpers import Buffer, DecompressionError

API_VERSION = '1.2_02'
API_VERSION = '1.4_01'

cdef extern from "algorithms/lz4-libselect.h":
int LZ4_compress_default(const char* source, char* dest, int inputSize, int maxOutputSize) nogil
Expand Down
2 changes: 1 addition & 1 deletion src/borg/crypto/low_level.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ from cpython cimport PyMem_Malloc, PyMem_Free
from cpython.buffer cimport PyBUF_SIMPLE, PyObject_GetBuffer, PyBuffer_Release
from cpython.bytes cimport PyBytes_FromStringAndSize

API_VERSION = '1.2_01'
API_VERSION = '1.4_01'

cdef extern from "openssl/crypto.h":
int CRYPTO_memcmp(const void *a, const void *b, size_t len)
Expand Down
2 changes: 1 addition & 1 deletion src/borg/hashindex.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ from cpython.exc cimport PyErr_SetFromErrnoWithFilename
from cpython.buffer cimport PyBUF_SIMPLE, PyObject_GetBuffer, PyBuffer_Release
from cpython.bytes cimport PyBytes_FromStringAndSize, PyBytes_CheckExact, PyBytes_GET_SIZE, PyBytes_AS_STRING

API_VERSION = '1.2_01'
API_VERSION = '1.4_01'


cdef extern from "_hashindex.c":
Expand Down
12 changes: 6 additions & 6 deletions src/borg/helpers/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ def check_extension_modules():
import borg.crypto.low_level
from .. import platform, compress, item, chunker, hashindex
msg = """The Borg binary extension modules do not seem to be properly installed."""
if hashindex.API_VERSION != '1.2_01':
if hashindex.API_VERSION != '1.4_01':
raise RTError(msg)
if chunker.API_VERSION != '1.2_01':
if chunker.API_VERSION != '1.4_01':
raise RTError(msg)
if compress.API_VERSION != '1.2_02':
if compress.API_VERSION != '1.4_01':
raise RTError(msg)
if borg.crypto.low_level.API_VERSION != '1.2_01':
if borg.crypto.low_level.API_VERSION != '1.4_01':
raise RTError(msg)
if item.API_VERSION != '1.2_01':
if item.API_VERSION != '1.4_01':
raise RTError(msg)
if platform.API_VERSION != platform.OS_API_VERSION or platform.API_VERSION != '1.2_05':
if platform.API_VERSION != platform.OS_API_VERSION or platform.API_VERSION != '1.4_01':
raise RTError(msg)
2 changes: 1 addition & 1 deletion src/borg/item.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cdef extern from "_item.c":
object _optr_to_object(object bytes)


API_VERSION = '1.2_01'
API_VERSION = '1.4_01'


class PropDict:
Expand Down
2 changes: 1 addition & 1 deletion src/borg/platform/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
are correctly composed into the base functionality.
"""

API_VERSION = '1.2_05'
API_VERSION = '1.4_01'

fdatasync = getattr(os, 'fdatasync', os.fsync)

Expand Down
2 changes: 1 addition & 1 deletion src/borg/platform/darwin.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ from .posix import user2uid, group2gid
from ..helpers import safe_decode, safe_encode
from .xattr import _listxattr_inner, _getxattr_inner, _setxattr_inner, split_string0

API_VERSION = '1.2_05'
API_VERSION = '1.4_01'

cdef extern from "sys/xattr.h":
ssize_t c_listxattr "listxattr" (const char *path, char *list, size_t size, int flags)
Expand Down
2 changes: 1 addition & 1 deletion src/borg/platform/freebsd.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ from .posix import posix_acl_use_stored_uid_gid
from ..helpers import safe_encode, safe_decode
from .xattr import _listxattr_inner, _getxattr_inner, _setxattr_inner, split_lstring

API_VERSION = '1.2_05'
API_VERSION = '1.4_01'

cdef extern from "errno.h":
int errno
Expand Down
2 changes: 1 addition & 1 deletion src/borg/platform/linux.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ except ImportError:
from libc cimport errno
from libc.stdint cimport int64_t

API_VERSION = '1.2_05'
API_VERSION = '1.4_01'

cdef extern from "sys/xattr.h":
ssize_t c_listxattr "listxattr" (const char *path, char *list, size_t size)
Expand Down

0 comments on commit 06f6136

Please sign in to comment.