Skip to content

Commit

Permalink
Update login password and add script to bootstrap virtual environment
Browse files Browse the repository at this point in the history
  • Loading branch information
ptsgrn committed Mar 24, 2024
1 parent 123bb9e commit 160a0a4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import mwparserfromhell as mwp

API_URL = "https://th.wikipedia.org/w/api.php"
LOGIN_INFO = "PatsaBot", os.environ["PATSABOT_PASSWORD"]
LOGIN_INFO = "PatsaBot", os.environ["BOT_PASSWORD"]
SHUTOFF = u"ผู้ใช้:PatsaBot/shutoff/archive"
ARCHIVE_TPL = u"แม่แบบ:เก็บอภิปรายอัตโนมัติ"
FREQ = 30
Expand Down
19 changes: 19 additions & 0 deletions python/bootstrap_venv.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

# use bash strict mode
# set -euo pipefail || exit 1

# create the venv
python3 -m venv ~/pyvenv

# activate it
source ~/pyvenv/bin/activate

# upgrade pip inside the venv and add support for the wheel package format
pip install -U pip wheel

# install packages
pip install twiggy
pip install arrow
pip install mwparserfromhell
pip install git+https://github.com/Riamse/ceterach.git#egg=ceterach

0 comments on commit 160a0a4

Please sign in to comment.