Skip to content

Commit

Permalink
new instruction to configure Pywikibot when it is outside PAWS (fixed #…
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanhercaz committed Jan 31, 2019
1 parent 886869c commit 13ca8bd
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ help:
@echo "\nmake prepare-files"
@echo " prepare the necessary files to work."
@echo "\nmake install-pyrequirements"
@echo " install the Python requirements from requirements.txt."
@echo " install the Python requirements from requirements.txt."
@echo "\nmake clean-pyc"
@echo " clean all Python compiled bytecode files."
@echo "\nmake pywikibot"
@echo " CanaryBot is prepared to run on PAWS so it is unnecessary to configure Pywikibot since you configure it in PAWS correctly. But if you want to run CanaryBot outside PAWS (in your local computer) you need to execute this make instruction."

all: prepare-files prepare-files prepare-duplicatedcsv install-pyrequirements clean-pyc
@echo "\nCanaryBot has been prepared and configured."
Expand Down Expand Up @@ -41,3 +43,12 @@ clean-pyc:
@echo "\nDeleting all Python compiled bytecode files (.pyc and .pyo)."
find . -name "*.pyc" -exec rm --force {} +
find . -name "*.pyo" -exec rm --force {} +

pywikibot:
@echo "\nClonning Pywikibot from its official repository..."
git clone --recursive https://gerrit.wikimedia.org/r/pywikibot/core.git
@echo "\nGenerating necessary files when the scripts are going to be out of PAWS"
python core/generate_user_files.py
@echo "\nLogging..."
python core/pwb.py login
@echo "\nPywikibot has been configured!"

0 comments on commit 13ca8bd

Please sign in to comment.