2
0
Эх сурвалжийг харах

Merge pull request #4396 from ThomasWaldmann/api-version-12

bump API_VERSIONs to 1.2_xx
TW 6 жил өмнө
parent
commit
2b16fc9039

+ 1 - 1
src/borg/chunker.pyx

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

+ 1 - 1
src/borg/compress.pyx

@@ -25,7 +25,7 @@ except ImportError:
 
 from .helpers import Buffer, DecompressionError
 
-API_VERSION = '1.1_06'
+API_VERSION = '1.2_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.1_02'
+API_VERSION = '1.2_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.1_07'
+API_VERSION = '1.2_01'
 
 
 cdef extern from "_hashindex.c":

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

@@ -25,15 +25,15 @@ class ExtensionModuleError(Error):
 def check_extension_modules():
     import borg.crypto.low_level
     from .. import platform, compress, item, chunker, hashindex
-    if hashindex.API_VERSION != '1.1_07':
+    if hashindex.API_VERSION != '1.2_01':
         raise ExtensionModuleError
-    if chunker.API_VERSION != '1.1_03':
+    if chunker.API_VERSION != '1.2_01':
         raise ExtensionModuleError
-    if compress.API_VERSION != '1.1_06':
+    if compress.API_VERSION != '1.2_01':
         raise ExtensionModuleError
-    if borg.crypto.low_level.API_VERSION != '1.1_02':
+    if borg.crypto.low_level.API_VERSION != '1.2_01':
         raise ExtensionModuleError
-    if platform.API_VERSION != platform.OS_API_VERSION or platform.API_VERSION != '1.2_03':
+    if item.API_VERSION != '1.2_01':
         raise ExtensionModuleError
-    if item.API_VERSION != '1.1_06':
+    if platform.API_VERSION != platform.OS_API_VERSION or platform.API_VERSION != '1.2_04':
         raise ExtensionModuleError

+ 1 - 1
src/borg/item.pyx

@@ -12,7 +12,7 @@ cdef extern from "_item.c":
     object _optr_to_object(object bytes)
 
 
-API_VERSION = '1.1_06'
+API_VERSION = '1.2_01'
 
 
 class PropDict:

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

@@ -17,7 +17,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_03'
+API_VERSION = '1.2_04'
 
 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_03'
+API_VERSION = '1.2_04'
 
 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_03'
+API_VERSION = '1.2_04'
 
 cdef extern from "errno.h":
     int errno

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

@@ -13,7 +13,7 @@ from .xattr import _listxattr_inner, _getxattr_inner, _setxattr_inner, split_str
 from libc cimport errno
 from libc.stdint cimport int64_t
 
-API_VERSION = '1.2_03'
+API_VERSION = '1.2_04'
 
 cdef extern from "sys/xattr.h":
     ssize_t c_listxattr "listxattr" (const char *path, char *list, size_t size)