Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Reproducible Builds
trydiffoscope
Compare revisions
f56966e41526f1f5329b8b013981bb5ed035f0e8...ccf21c262d1e68197913115f5b03cd0b0319c332
Commits (5)
Tidy previous changelog entry.
· 25aca859
Chris Lamb
authored
Jan 12, 2020
25aca859
Update black source code formatting.
· 7fd07619
Chris Lamb
authored
Jan 12, 2020
7fd07619
Add a suitable shebang and executable bit to setup.py.
· 626ea14e
Chris Lamb
authored
Jan 12, 2020
626ea14e
Add trydiffoscope script to MANIFEST. (Closes:
#1
)
· d773ccb1
Chris Lamb
authored
Jan 12, 2020
d773ccb1
releasing package trydiffoscope version 67.0.4
· ccf21c26
Chris Lamb
authored
Jan 12, 2020
ccf21c26
Hide whitespace changes
Inline
Side-by-side
MANIFEST
View file @
ccf21c26
trydiffoscope.1.rst
README.rst
pyproject.toml
trydiffoscope
debian/changelog
View file @
ccf21c26
trydiffoscope (67.0.4) unstable; urgency=medium
* Add trydiffoscope script to MANIFEST.
(Closes: reproducible-builds/trydiffoscope#1)
* Add a suitable shebang and executable bit to setup.py.
* Update Black source code formatting.
-- Chris Lamb <lamby@debian.org> Sun, 12 Jan 2020 17:23:32 +0000
trydiffoscope (67.0.3) unstable; urgency=medium
* Move to Build-Depends on python3-docutils over python-docutils to allow for
*
Python 2.x removal. (Closes: #943293)
Python 2.x removal. (Closes: #943293)
-- Chris Lamb <lamby@debian.org> Wed, 23 Oct 2019 09:35:43 +0100
...
...
setup.py
100644 → 100755
View file @
ccf21c26
#!/usr/bin/env python3
from
distutils.core
import
setup
setup
(
name
=
'trydiffoscope'
,
version
=
'67.0.
3
'
,
version
=
'67.0.
4
'
,
author
=
"Chris Lamb"
,
author_email
=
"lamby@debian.org"
,
scripts
=
(
'trydiffoscope'
,),
...
...
trydiffoscope
View file @
ccf21c26
...
...
@@ -33,10 +33,13 @@ class TryDiffoscope(object):
self
.
session
=
requests
.
Session
()
def
main
(
self
):
response
=
self
.
session
.
post
(
self
.
args
.
endpoint
,
files
=
{
'file_a'
:
open
(
self
.
args
.
file
[
0
],
'rb'
),
'file_b'
:
open
(
self
.
args
.
file
[
1
],
'rb'
),
})
response
=
self
.
session
.
post
(
self
.
args
.
endpoint
,
files
=
{
'file_a'
:
open
(
self
.
args
.
file
[
0
],
'rb'
),
'file_b'
:
open
(
self
.
args
.
file
[
1
],
'rb'
),
},
)
response
.
raise_for_status
()
poll_uri
=
response
.
json
()[
'result'
][
'uri'
]
...
...
@@ -61,10 +64,12 @@ class TryDiffoscope(object):
time
.
sleep
(
1
)
if
comparison
[
'state'
]
not
in
(
'identical'
,
'different'
):
print
(
"E: Received state '{}' from server. See {}"
.
format
(
comparison
[
'state'
],
comparison
[
'uri'
],
),
file
=
sys
.
stderr
)
print
(
"E: Received state '{}' from server. See {}"
.
format
(
comparison
[
'state'
],
comparison
[
'uri'
],
),
file
=
sys
.
stderr
,
)
return
2
if
comparison
[
'state'
]
==
'identical'
:
...
...
@@ -92,10 +97,7 @@ if __name__ == '__main__':
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
'file'
,
help
=
"files to compare"
,
nargs
=
2
,
default
=
[],
'file'
,
help
=
"files to compare"
,
nargs
=
2
,
default
=
[],
)
parser
.
add_argument
(
...
...
@@ -105,15 +107,11 @@ if __name__ == '__main__':
)
parser
.
add_argument
(
'--text'
,
help
=
"write plain text output to given file"
,
default
=
None
,
'--text'
,
help
=
"write plain text output to given file"
,
default
=
None
,
)
parser
.
add_argument
(
'--html'
,
help
=
"write HTML report to given file"
,
default
=
None
,
'--html'
,
help
=
"write HTML report to given file"
,
default
=
None
,
)
parser
.
add_argument
(
...
...
@@ -127,7 +125,7 @@ if __name__ == '__main__':
'-w'
,
'--webbrowser'
,
help
=
"open webbrowser to URL instead of managing results "
"locally (implies -u)"
,
"locally (implies -u)"
,
action
=
'store_true'
,
)
...
...