[Reproducible-commits] [diffoscope] 07/11: Convert README to reStructuredText and update it

Jérémy Bobbio lunar at moszumanska.debian.org
Sat Nov 7 16:29:01 UTC 2015


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository diffoscope.

commit 4810a6841b50c3ba1872626811fd1eecd8425cc8
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Sat Nov 7 16:54:42 2015 +0100

    Convert README to reStructuredText and update it
---
 README => README.rst | 50 +++++++++++++++++++++++++++++++++-----------------
 setup.py             |  2 +-
 2 files changed, 34 insertions(+), 18 deletions(-)

diff --git a/README b/README.rst
similarity index 58%
rename from README
rename to README.rst
index 3587c6c..86e75e5 100644
--- a/README
+++ b/README.rst
@@ -15,8 +15,8 @@ to write a text report on the standard output.
 diffoscope will exit with 0 if there's no differences and 1 if there
 are. An HTML report can be produced with the detected differences.
 
-diffoscope is developed as part of the “reproducible builds” Debian
-project: <https://wiki.debian.org/ReproducibleBuilds>
+diffoscope is developed as part of the `“reproducible builds” Debian
+project <https://wiki.debian.org/ReproducibleBuilds>`_.
 It is meant to be able to quickly understand why two builds of the same
 package produce different outputs. diffoscope was previously named
 debbindiff.
@@ -24,28 +24,43 @@ debbindiff.
 Example
 -------
 
+To compare two files in-depth and produce an HTML report, run something like::
+
     $ bin/diffoscope --html output.html build1.changes build2.changes
 
-This will compare `build1.changes` and `build2.changes` and create
-`output.html` if there are differences between the two files.
+*diffoscope* can also compare non-existent files::
+
+    $ bin/diffoscope /nonexistent archive.zip
+
+To get all possible options, run::
+
+    $ bin/diffoscope --help
 
 External dependencies
 ---------------------
 
-diffoscope requires Python 3 and the following modules:
-
- * Available on PyPI: libarchive-c, python-debian.
- * Magic-file-extension is built from file:
-   http://www.darwinsys.com/file/
-   Available on Debian and Fedora as python-magic.
- * rpm-python is built from rpm:
-   http://rpm.org/
-   Available on Debian and Fedora as python-rpm.
- * tlsh is available at:
-   https://github.com/trendmicro/tlsh
+diffoscope requires Python 3 and the following modules available on PyPI:
+`libarchive-c <https://pypi.python.org/pypi/libarchive-c>`_,
+`python-debian <https://pypi.python.org/pypi/python-debian>`_,
+`python-magic <https://pypi.python.org/pypi/python-debian>`_.
+
+Optionally, the following modules will enhance it:
+
+* ``tlsh`` is used to recognize file renames.
+  It is build from `tlsh source
+  <https://github.com/trendmicro/tlsh>`_.
+  Available on Debian as ``python3-tlsh``.
+* ``rpm-python`` is used to inspect RPM files.
+  It is built from `rpm
+  <http://rpm.org/>`_.
+  Available on Debian and Fedora as ``python3-rpm``.
+* ``Magic-file-extension`` can be used instead of
+  ``python-magic``. It is built from `file
+  <http://www.darwinsys.com/file/>`_.
+  Available on Debian and Fedora as ``python3-magic``.
 
 The various comparators rely on external commands being available. To
-get a list of them, please run:
+get a list of them, please run::
 
     $ bin/diffoscope --list-tools
 
@@ -53,7 +68,8 @@ Contributors
 ------------
 
 Lunar, Reiner Herrmann, Chris Lamb, Helmut Grohne, Holger Levsen,
-Yasushi SHOJI, Daniel Kahn Gillmor, Peter De Wachter.
+Mattia Rizzolo, Daniel Kahn Gillmor, Paul Gevers, Peter De Wachter,
+Yasushi SHOJI.
 
 License
 -------
diff --git a/setup.py b/setup.py
index 9d6b9a5..4ac0d2f 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ class PyTest(TestCommand):
 setup(name='diffoscope',
       version=diffoscope.VERSION,
       description='display differences between files',
-      long_description=open('README', encoding='utf-8').read(),
+      long_description=open('README.rst', encoding='utf-8').read(),
       author='Lunar',
       author_email='lunar at debian.org',
       url='https://wiki.debian.org/ReproducibleBuilds',

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git



More information about the Reproducible-commits mailing list