Skip to content

Commit 31de387

Browse files
Install Pywikibot from PyPI (#135)
* fix: use pywikibot installed from PyPI * feat: added pywikibot to the requirements.txt * feat: updated dockerfile to install pywikibot from pip * fix: no mkdir required
1 parent a0fed40 commit 31de387

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

jobs/Dockerfile

+1-5
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,11 @@ RUN curl -fsSLO "$SUPERCRONIC_URL" \
1717
&& ln -s "/usr/local/bin/${SUPERCRONIC}" /usr/local/bin/supercronic
1818

1919
WORKDIR /root
20-
RUN wget -qO- https://tools.wmflabs.org/pywikibot/core.tar.gz | tar xz \
21-
&& mv core pywikibot
2220

2321
COPY requirements.txt ./
2422
RUN pip install -qr requirements.txt
2523

26-
COPY pywikibot/user-config.py pywikibot/user-password.py pywikibot/
27-
COPY pywikibot/metakgp_family.py pywikibot/pywikibot/families/
28-
COPY pywikibot/scripts/ pywikibot/scripts/
24+
COPY pywikibot ./pywikibot
2925

3026
COPY crontab update_top_trending.sh MetaMaint.sh update_spam_denylist.sh logrotate.conf ./
3127
RUN chmod 644 logrotate.conf && groupadd -g 999 mysql && useradd mysql -u 999 -g 999

jobs/MetaMaint.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ echo "MetaMaint - Update MetaKGP demo day project"
66

77
cd /root/pywikibot
88
export METAKGP_BOT_NAME=batman
9-
timeout 10s python pwb.py login
10-
timeout 30s python pwb.py MetaMaint
9+
timeout 10s pwb login
10+
timeout 30s pwb MetaMaint

jobs/requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
requests
22
google-api-python-client
33
oauth2client
4-
dropbox
4+
dropbox
5+
pywikibot

0 commit comments

Comments
 (0)