bsdiff4 1.2.5__tar.gz → 1.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011-2019, Ilan Schnell
1
+ Copyright (c) 2011-2025, Ilan Schnell
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: bsdiff4
3
- Version: 1.2.5
3
+ Version: 1.3.0
4
4
  Summary: binary diff and patch using the BSDIFF4-format
5
5
  Home-page: https://github.com/ilanschnell/bsdiff4
6
6
  Author: Ilan Schnell
@@ -10,11 +10,7 @@ Classifier: Development Status :: 5 - Production/Stable
10
10
  Classifier: Intended Audience :: Developers
11
11
  Classifier: Operating System :: OS Independent
12
12
  Classifier: Programming Language :: C
13
- Classifier: Programming Language :: Python :: 2
14
- Classifier: Programming Language :: Python :: 2.7
15
13
  Classifier: Programming Language :: Python :: 3
16
- Classifier: Programming Language :: Python :: 3.5
17
- Classifier: Programming Language :: Python :: 3.6
18
14
  Classifier: Programming Language :: Python :: 3.7
19
15
  Classifier: Programming Language :: Python :: 3.8
20
16
  Classifier: Programming Language :: Python :: 3.9
@@ -22,8 +18,18 @@ Classifier: Programming Language :: Python :: 3.10
22
18
  Classifier: Programming Language :: Python :: 3.11
23
19
  Classifier: Programming Language :: Python :: 3.12
24
20
  Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: 3.14
22
+ Classifier: Programming Language :: Python :: 3.15
25
23
  Classifier: Topic :: Utilities
26
24
  License-File: LICENSE
25
+ Dynamic: author
26
+ Dynamic: author-email
27
+ Dynamic: classifier
28
+ Dynamic: description
29
+ Dynamic: home-page
30
+ Dynamic: license
31
+ Dynamic: license-file
32
+ Dynamic: summary
27
33
 
28
34
  =======================================================
29
35
  bsdiff4: binary diff and patch using the BSDIFF4-format
@@ -1,9 +1,7 @@
1
- from __future__ import absolute_import
2
-
3
1
  from bsdiff4.format import (diff, patch, file_diff, file_patch,
4
2
  file_patch_inplace)
5
3
 
6
- __version__ = "1.2.5"
4
+ __version__ = "1.3.0"
7
5
 
8
6
 
9
7
  def test(verbosity=1):
@@ -8,11 +8,6 @@
8
8
  #define PY_SSIZE_T_CLEAN
9
9
  #include <Python.h>
10
10
 
11
- #if PY_MAJOR_VERSION == 2
12
- /* the Py_MIN macro was introduced in Python 3.3 */
13
- #define Py_MIN(x, y) (((x) > (y)) ? (y) : (x))
14
- #endif
15
-
16
11
 
17
12
  static void
18
13
  split(off_t *I, off_t *V, off_t start, off_t len, off_t h)
@@ -537,11 +532,9 @@ static PyMethodDef module_functions[] = {
537
532
  {"patch", patch, METH_VARARGS},
538
533
  {"encode_int64", encode_int64, METH_O},
539
534
  {"decode_int64", decode_int64, METH_O},
540
- {NULL, NULL, 0, NULL} /* Sentinel */
535
+ {NULL} /* Sentinel */
541
536
  };
542
537
 
543
- /* initialization routine for the shared libary */
544
- #if PY_MAJOR_VERSION == 3
545
538
  static PyModuleDef moduledef = {
546
539
  PyModuleDef_HEAD_INIT, "core", 0, -1, module_functions,
547
540
  };
@@ -554,12 +547,6 @@ PyInit_core(void)
554
547
  m = PyModule_Create(&moduledef);
555
548
  if (m == NULL)
556
549
  return NULL;
550
+
557
551
  return m;
558
552
  }
559
- #else
560
- PyMODINIT_FUNC
561
- initcore(void)
562
- {
563
- Py_InitModule("core", module_functions);
564
- }
565
- #endif
@@ -1,14 +1,8 @@
1
- from __future__ import absolute_import
2
-
3
1
  import bz2
4
2
  import sys
3
+ from io import BytesIO
5
4
 
6
5
 
7
- if sys.version_info[0] == 2:
8
- from cStringIO import StringIO as BytesIO
9
- else:
10
- from io import BytesIO
11
-
12
6
  MAGIC = b'BSDIFF40'
13
7
 
14
8
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: bsdiff4
3
- Version: 1.2.5
3
+ Version: 1.3.0
4
4
  Summary: binary diff and patch using the BSDIFF4-format
5
5
  Home-page: https://github.com/ilanschnell/bsdiff4
6
6
  Author: Ilan Schnell
@@ -10,11 +10,7 @@ Classifier: Development Status :: 5 - Production/Stable
10
10
  Classifier: Intended Audience :: Developers
11
11
  Classifier: Operating System :: OS Independent
12
12
  Classifier: Programming Language :: C
13
- Classifier: Programming Language :: Python :: 2
14
- Classifier: Programming Language :: Python :: 2.7
15
13
  Classifier: Programming Language :: Python :: 3
16
- Classifier: Programming Language :: Python :: 3.5
17
- Classifier: Programming Language :: Python :: 3.6
18
14
  Classifier: Programming Language :: Python :: 3.7
19
15
  Classifier: Programming Language :: Python :: 3.8
20
16
  Classifier: Programming Language :: Python :: 3.9
@@ -22,8 +18,18 @@ Classifier: Programming Language :: Python :: 3.10
22
18
  Classifier: Programming Language :: Python :: 3.11
23
19
  Classifier: Programming Language :: Python :: 3.12
24
20
  Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: 3.14
22
+ Classifier: Programming Language :: Python :: 3.15
25
23
  Classifier: Topic :: Utilities
26
24
  License-File: LICENSE
25
+ Dynamic: author
26
+ Dynamic: author-email
27
+ Dynamic: classifier
28
+ Dynamic: description
29
+ Dynamic: home-page
30
+ Dynamic: license
31
+ Dynamic: license-file
32
+ Dynamic: summary
27
33
 
28
34
  =======================================================
29
35
  bsdiff4: binary diff and patch using the BSDIFF4-format
@@ -6,15 +6,12 @@ except ImportError:
6
6
 
7
7
 
8
8
  kwds = {}
9
- try:
10
- kwds['long_description'] = open('README.rst').read()
11
- except IOError:
12
- pass
9
+ kwds['long_description'] = open('README.rst').read()
13
10
 
14
11
  # Read version from bsdiff/__init__.py
15
- pat = re.compile(r'__version__\s*=\s*(\S+)', re.M)
12
+ pat = re.compile(r'__version__\s*=\s*"(\S+)"', re.M)
16
13
  data = open('bsdiff4/__init__.py').read()
17
- kwds['version'] = eval(pat.search(data).group(1))
14
+ kwds['version'] = pat.search(data).group(1)
18
15
 
19
16
  setup(
20
17
  name = "bsdiff4",
@@ -27,11 +24,7 @@ setup(
27
24
  "Intended Audience :: Developers",
28
25
  "Operating System :: OS Independent",
29
26
  "Programming Language :: C",
30
- "Programming Language :: Python :: 2",
31
- "Programming Language :: Python :: 2.7",
32
27
  "Programming Language :: Python :: 3",
33
- "Programming Language :: Python :: 3.5",
34
- "Programming Language :: Python :: 3.6",
35
28
  "Programming Language :: Python :: 3.7",
36
29
  "Programming Language :: Python :: 3.8",
37
30
  "Programming Language :: Python :: 3.9",
@@ -39,6 +32,8 @@ setup(
39
32
  "Programming Language :: Python :: 3.11",
40
33
  "Programming Language :: Python :: 3.12",
41
34
  "Programming Language :: Python :: 3.13",
35
+ "Programming Language :: Python :: 3.14",
36
+ "Programming Language :: Python :: 3.15",
42
37
  "Topic :: Utilities",
43
38
  ],
44
39
  description = "binary diff and patch using the BSDIFF4-format",
File without changes
File without changes
File without changes
File without changes
File without changes