From 88848cb084f11092d90459413540d8cb6e5e66f5 Mon Sep 17 00:00:00 2001 From: Jonathan Golder Date: Sat, 23 Sep 2017 20:32:13 +0200 Subject: [PATCH 1/2] Prepare Version test-v4 for release Add a README.md file for this project --- README.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..964dd07 --- /dev/null +++ b/README.md @@ -0,0 +1,36 @@ +jogobot-red +=========== + +Versions +-------- + +* test-v4 + + - Feature _markpages_ working in semi-automatic mode using command + + python red.py -task:markpages -family:wikipedia + + - Work on specific redfam using param + + -famhash:[sha1-famhash] + + - Use _PyMySQL_ instead of _OurSQL_ + + - Correctly parse redfams with articles with leading small character or spaces in wikilink + +* test-v3 + +* test-v2 + +* test-v1 + +License +------- +GPLv3 + +Author Information +------------------ + +Copyright 2017 Jonathan Golder jonathan@golderweb.de https://golderweb.de/ + +alias Wikipedia.org-User _Jogo.obb_ (https://de.wikipedia.org/Benutzer:Jogo.obb) From ec2b84df2af2fd11ef6580141be9453f4116152b Mon Sep 17 00:00:00 2001 From: Jonathan Golder Date: Sat, 23 Sep 2017 21:09:58 +0200 Subject: [PATCH 2/2] Add requirements To make setup of environment for this module easier --- README.md | 15 +++++++++++++++ requirements.txt | 23 +++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 requirements.txt diff --git a/README.md b/README.md index 964dd07..1fac5a6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,21 @@ jogobot-red =========== +Dependencies +------------ + +* pywikibot-core +* mwparserfromhell + +The libraries above need to be installed and configured manualy considering [documentation of pywikibot-core](https://www.mediawiki.org/wiki/Manual:Pywikibot). + +* SQLAlchemy +* PyMySQL + +Those can be installed using pip and the _requirements.txt_ file provided with this packet + + pip install -r requirements.txt + Versions -------- diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..45f37b6 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,23 @@ +# This is a PIP 6+ requirements file for using jogobot-red +# +# All dependencies can be installed using: +# $ sudo pip install -r requirements.txt +# +# It is good practise to install packages using the system +# package manager if it has a packaged version. If you are +# unsure, please use pip as described at the top of the file. +# +# To get a list of potential matches, use +# +# $ awk -F '[#>=]' '{print $1}' requirements.txt | xargs yum search +# or +# $ awk -F '[#>=]' '{print $1}' requirements.txt | xargs apt-cache search + +# Needed for Database-Connection +# SQLAlchemy Python ORM-Framework +SQLAlchemy>=1.1 +# PyMySQL DB-Connector +PyMySQL>=0.7 + +# Also needed, but not covered here, is a working copy of pywikibot-core +# which also brings mwparserfromhell