Prepare wikiq for release: fixes, dependency cleanup, and packaging #2

Open
mako wants to merge 33 commits from release_review into jsonl-output
2 changed files with 11 additions and 51 deletions
Showing only changes of commit c31833e064 - Show all commits

View File

@@ -10,9 +10,8 @@ submodule like:
git submodule update git submodule update
Wikimedia dumps are usually in a compressed format such as 7z (most Wikimedia dumps are usually in a compressed format such as 7z (most
common), gz, or bz2. Wikiq uses your computer\'s compression software to common), gz, or bz2. Wikiq uses your computer's compression software to
read these files. Therefore wikiq depends on [7za]{.title-ref}, read these files. Therefore wikiq depends on `7za`, `gzcat`, and `zcat`.
[gzcat]{.title-ref}, and [zcat]{.title-ref}.
# Dependencies # Dependencies
@@ -22,16 +21,18 @@ and its associated tests to work.
- 7zip - 7zip
- ffmpeg - ffmpeg
A new diff engine based on [\_wikidiff2]{.title-ref} can be used for A new diff engine based on [wikidiff2](https://www.mediawiki.org/wiki/Wikidiff2)
word-persistence. Wikiq can also output the diffs between each page can be used for word-persistence. Wikiq can also output the diffs
revision. This requires installing Wikidiff 2 on your system. On Debian between each page revision. This requires installing Wikidiff 2 on your
or Ubuntu Linux this can be done via. system. On Debian or Ubuntu Linux this can be done via.
`apt-get install php-wikidiff2` `apt-get install php-wikidiff2`
You may have to also run. `sudo phpenmod wikidiff2`. You may have to also run. `sudo phpenmod wikidiff2`.
Tests \-\-\--To run tests: # Tests
To run tests:
python -m unittest test.Wikiq_Unit_Test python -m unittest test.Wikiq_Unit_Test

View File

@@ -1,41 +0,0 @@
When you install this from git, you will need to first clone the repository::
git clone git://projects.mako.cc/mediawiki_dump_tools
From within the repository working directory, initiatlize and set up the
submodule like::
git submodule init
git submodule update
Wikimedia dumps are usually in a compressed format such as 7z (most common), gz, or bz2. Wikiq uses your computer's compression software to read these files. Therefore wikiq depends on
`7za`, `gzcat`, and `zcat`.
Dependencies
----------------
These non-Python dependencies must be installed on your system for wikiq and its
associated tests to work.
- 7zip
- ffmpeg
A new diff engine based on `_wikidiff2` can be used for word-persistence. Wikiq can also output the diffs between each page revision. This requires installing Wikidiff 2 on your system. On Debian or Ubuntu Linux this can be done via.
``apt-get install php-wikidiff2``
You may have to also run.
``sudo phpenmod wikidiff2``.
Tests
----
To run tests::
python -m unittest test.Wikiq_Unit_Test
TODO:
_______________
1. [] Output metadata about the run. What parameters were used? What versions of deltas?
2. [] Url encoding by default
.. _wikidiff2: https://www.mediawiki.org/wiki/Wikidiff2