bsdiff4 1.2.3__tar.gz → 1.2.5__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.
- {bsdiff4-1.2.3/bsdiff4.egg-info → bsdiff4-1.2.5}/PKG-INFO +2 -1
- {bsdiff4-1.2.3 → bsdiff4-1.2.5}/bsdiff4/__init__.py +1 -2
- {bsdiff4-1.2.3 → bsdiff4-1.2.5}/bsdiff4/cli.py +19 -0
- {bsdiff4-1.2.3 → bsdiff4-1.2.5}/bsdiff4/test_all.py +2 -2
- {bsdiff4-1.2.3 → bsdiff4-1.2.5/bsdiff4.egg-info}/PKG-INFO +2 -1
- {bsdiff4-1.2.3 → bsdiff4-1.2.5}/setup.py +1 -0
- {bsdiff4-1.2.3 → bsdiff4-1.2.5}/LICENSE +0 -0
- {bsdiff4-1.2.3 → bsdiff4-1.2.5}/MANIFEST.in +0 -0
- {bsdiff4-1.2.3 → bsdiff4-1.2.5}/README.rst +0 -0
- {bsdiff4-1.2.3 → bsdiff4-1.2.5}/bsdiff4/core.c +0 -0
- {bsdiff4-1.2.3 → bsdiff4-1.2.5}/bsdiff4/format.py +0 -0
- {bsdiff4-1.2.3 → bsdiff4-1.2.5}/bsdiff4.egg-info/SOURCES.txt +0 -0
- {bsdiff4-1.2.3 → bsdiff4-1.2.5}/bsdiff4.egg-info/dependency_links.txt +0 -0
- {bsdiff4-1.2.3 → bsdiff4-1.2.5}/bsdiff4.egg-info/entry_points.txt +0 -0
- {bsdiff4-1.2.3 → bsdiff4-1.2.5}/bsdiff4.egg-info/top_level.txt +0 -0
- {bsdiff4-1.2.3 → bsdiff4-1.2.5}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: bsdiff4
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.5
|
|
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
|
|
@@ -21,6 +21,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
21
21
|
Classifier: Programming Language :: Python :: 3.10
|
|
22
22
|
Classifier: Programming Language :: Python :: 3.11
|
|
23
23
|
Classifier: Programming Language :: Python :: 3.12
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
24
25
|
Classifier: Topic :: Utilities
|
|
25
26
|
License-File: LICENSE
|
|
26
27
|
|
|
@@ -6,6 +6,11 @@ from optparse import OptionParser
|
|
|
6
6
|
from bsdiff4.format import file_diff, file_patch, read_patch
|
|
7
7
|
|
|
8
8
|
|
|
9
|
+
def display_version():
|
|
10
|
+
from bsdiff4 import __version__
|
|
11
|
+
print("bsdiff4 %s" % __version__)
|
|
12
|
+
|
|
13
|
+
|
|
9
14
|
def human_bytes(n):
|
|
10
15
|
"""
|
|
11
16
|
return the number of bytes 'n' in more human readable form
|
|
@@ -27,8 +32,15 @@ def main_bsdiff4():
|
|
|
27
32
|
p.add_option('-v', "--verbose",
|
|
28
33
|
action="store_true")
|
|
29
34
|
|
|
35
|
+
p.add_option("--version",
|
|
36
|
+
action="store_true")
|
|
37
|
+
|
|
30
38
|
opts, args = p.parse_args()
|
|
31
39
|
|
|
40
|
+
if opts.version:
|
|
41
|
+
display_version()
|
|
42
|
+
return
|
|
43
|
+
|
|
32
44
|
if len(args) != 3:
|
|
33
45
|
p.error('requies 3 arguments, try -h')
|
|
34
46
|
|
|
@@ -63,8 +75,15 @@ def main_bspatch4():
|
|
|
63
75
|
description=("genertaes DST, by applying the BSDIFF4-format PATCH "
|
|
64
76
|
"file to SRC"))
|
|
65
77
|
|
|
78
|
+
p.add_option("--version",
|
|
79
|
+
action="store_true")
|
|
80
|
+
|
|
66
81
|
opts, args = p.parse_args()
|
|
67
82
|
|
|
83
|
+
if opts.version:
|
|
84
|
+
display_version()
|
|
85
|
+
return
|
|
86
|
+
|
|
68
87
|
if len(args) == 1:
|
|
69
88
|
show_patch(args[0])
|
|
70
89
|
return
|
|
@@ -153,9 +153,9 @@ def run(verbosity=1):
|
|
|
153
153
|
print('bsdiff4 is installed in: %s' % os.path.dirname(__file__))
|
|
154
154
|
print('bsdiff4 version: %s' % __version__)
|
|
155
155
|
|
|
156
|
+
loader = unittest.TestLoader()
|
|
156
157
|
suite = unittest.TestSuite()
|
|
157
|
-
|
|
158
|
-
suite.addTest(unittest.makeSuite(cls))
|
|
158
|
+
suite.addTests(loader.loadTestsFromModule(sys.modules[__name__]))
|
|
159
159
|
runner = unittest.TextTestRunner(verbosity=verbosity)
|
|
160
160
|
return runner.run(suite)
|
|
161
161
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: bsdiff4
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.5
|
|
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
|
|
@@ -21,6 +21,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
21
21
|
Classifier: Programming Language :: Python :: 3.10
|
|
22
22
|
Classifier: Programming Language :: Python :: 3.11
|
|
23
23
|
Classifier: Programming Language :: Python :: 3.12
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
24
25
|
Classifier: Topic :: Utilities
|
|
25
26
|
License-File: LICENSE
|
|
26
27
|
|
|
@@ -38,6 +38,7 @@ setup(
|
|
|
38
38
|
"Programming Language :: Python :: 3.10",
|
|
39
39
|
"Programming Language :: Python :: 3.11",
|
|
40
40
|
"Programming Language :: Python :: 3.12",
|
|
41
|
+
"Programming Language :: Python :: 3.13",
|
|
41
42
|
"Topic :: Utilities",
|
|
42
43
|
],
|
|
43
44
|
description = "binary diff and patch using the BSDIFF4-format",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|