From a65cefb7bb906f2f8aee0899ef050c93753aac2f Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 24 Feb 2019 15:42:21 +0100 Subject: [PATCH] bump API_VERSIONs to 1.2_xx --- src/borg/chunker.pyx | 2 +- src/borg/compress.pyx | 2 +- src/borg/crypto/low_level.pyx | 2 +- src/borg/hashindex.pyx | 2 +- src/borg/helpers/checks.py | 12 ++++++------ src/borg/item.pyx | 2 +- src/borg/platform/base.py | 2 +- src/borg/platform/darwin.pyx | 2 +- src/borg/platform/freebsd.pyx | 2 +- src/borg/platform/linux.pyx | 2 +- 10 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/borg/chunker.pyx b/src/borg/chunker.pyx index 51c2a90b1..68f9c010e 100644 --- a/src/borg/chunker.pyx +++ b/src/borg/chunker.pyx @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -API_VERSION = '1.1_03' +API_VERSION = '1.2_01' import os diff --git a/src/borg/compress.pyx b/src/borg/compress.pyx index f9ca24305..b8bac74ac 100644 --- a/src/borg/compress.pyx +++ b/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 diff --git a/src/borg/crypto/low_level.pyx b/src/borg/crypto/low_level.pyx index 8cac96bfc..6d7cbcd83 100644 --- a/src/borg/crypto/low_level.pyx +++ b/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) diff --git a/src/borg/hashindex.pyx b/src/borg/hashindex.pyx index 8c9de6328..53ebcf804 100644 --- a/src/borg/hashindex.pyx +++ b/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": diff --git a/src/borg/helpers/checks.py b/src/borg/helpers/checks.py index 475544356..a71707e98 100644 --- a/src/borg/helpers/checks.py +++ b/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 diff --git a/src/borg/item.pyx b/src/borg/item.pyx index 43f0d88f6..a97a423c9 100644 --- a/src/borg/item.pyx +++ b/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: diff --git a/src/borg/platform/base.py b/src/borg/platform/base.py index 196fa1374..82dd3ed6a 100644 --- a/src/borg/platform/base.py +++ b/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) diff --git a/src/borg/platform/darwin.pyx b/src/borg/platform/darwin.pyx index f705bd6f4..ee840fdd9 100644 --- a/src/borg/platform/darwin.pyx +++ b/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) diff --git a/src/borg/platform/freebsd.pyx b/src/borg/platform/freebsd.pyx index 4210beae3..0976f019d 100644 --- a/src/borg/platform/freebsd.pyx +++ b/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 diff --git a/src/borg/platform/linux.pyx b/src/borg/platform/linux.pyx index 11007acdc..6bdc7578b 100644 --- a/src/borg/platform/linux.pyx +++ b/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)