Skip to content

Commit f6f708b

Browse files
committed
Switch from pdm to uv
1 parent f346a2a commit f6f708b

File tree

8 files changed

+465
-716
lines changed

8 files changed

+465
-716
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ permissions.txt
44
bot/test*.py
55
bot/test
66
bot/config_test*.cfg
7-
bot/config.cfg
7+
bot/config_prod.cfg
88
bot/google_api_secret_test*.json
99
bot/google_api_secret.json
1010
secret/

commands/discord_bot_launcher.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22

33
cd "$(dirname "$0")"/../bot || exit
4-
python3.11 -u main.py >> ../../POG-data/logging/discord_bot.out 2>&1
4+
uv run main.py >> ../../POG-data/logging/discord_bot.out 2>&1

commands/pog.sh

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function my_start
4949
mkdir -p ../POG-data
5050
mkdir -p ../POG-data/logging
5151
mkdir -p ../POG-data/matches
52-
nohup python3.11 -m pdm run commands/pog_launcher.py >> ../POG-data/logging/launcher.out 2>&1 &
52+
nohup uv run commands/pog_launcher.py >> ../POG-data/logging/launcher.out 2>&1 &
5353
echo "Bot started..."
5454
fi
5555
}
@@ -88,7 +88,7 @@ function my_update
8888

8989
chmod a+x commands/*
9090
cp ../POG-data/secret/* bot/
91-
python3.11 -m pdm install --prod
91+
uv sync --frozen
9292
}
9393

9494
function my_discord_log

commands/pog_launcher.py

100644100755
File mode changed.

commands/ts3_bot_launcher.sh

100644100755
File mode changed.

pdm.lock

Lines changed: 0 additions & 688 deletions
This file was deleted.

pyproject.toml

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
[project]
2-
name = ""
3-
version = ""
4-
description = ""
5-
authors = [
6-
{name = "YakMM", email = "yak.mayam@gmail.com"},
7-
]
2+
name = "pog-bot"
3+
version = "0.1.0"
4+
description = "Add your description here"
5+
readme = "README.md"
6+
requires-python = "==3.11.*"
87
dependencies = [
98
"discord.py @ git+https://github.com/yakMM/discord.py@1.x",
109
"requests==2.31.0",
@@ -17,22 +16,4 @@ dependencies = [
1716
"schedule==1.2.1",
1817
"Pillow==9.5.0"
1918
]
20-
requires-python = "==3.11.*"
21-
license = {text = "MIT"}
22-
23-
24-
[tool.pdm]
25-
[[tool.pdm.source]]
26-
url = "https://pypi.org/simple"
27-
verify_ssl = true
28-
name = "pypi"
29-
30-
[tool.pdm.dev-dependencies]
31-
dev = [
32-
"sphinx==6.1.3",
33-
"sphinx-rtd-theme==1.2.0",
34-
]
3519

36-
[build-system]
37-
requires = ["pdm-pep517>=1.0.0"]
38-
build-backend = "pdm.pep517.api"

uv.lock

Lines changed: 456 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)