ソースを参照

Merge pull request #8049 from ThomasWaldmann/bump-api-version-1.4

bump api version to 1.4
TW 1 年間 前
コミット
06f6136a60

+ 1 - 1
src/borg/chunker.pyx

@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-API_VERSION = '1.2_01'
+API_VERSION = '1.4_01'
 
 import errno
 import os

+ 1 - 1
src/borg/compress.pyx

@@ -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

+ 1 - 1
src/borg/crypto/low_level.pyx

@@ -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)

+ 1 - 1
src/borg/hashindex.pyx

@@ -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":

+ 6 - 6
src/borg/helpers/checks.py

@@ -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)

+ 1 - 1
src/borg/item.pyx

@@ -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:

+ 1 - 1
src/borg/platform/base.py

@@ -18,7 +18,7 @@ platform API: that way platform APIs provided by the platform-specific support m
 are correctly composed into the base functionality.
 """
 
-API_VERSION = '1.2_05'
+API_VERSION = '1.4_01'
 
 fdatasync = getattr(os, 'fdatasync', os.fsync)
 

+ 1 - 1
src/borg/platform/darwin.pyx

@@ -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)

+ 1 - 1
src/borg/platform/freebsd.pyx

@@ -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

+ 1 - 1
src/borg/platform/linux.pyx

@@ -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)