Skip to content

Commit 984773a

Browse files
committed
Move VERSION to bitbot/
1 parent b8629c3 commit 984773a

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

bitbot/IRCBot.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
import enum, queue, os, queue, select, socket, sys, threading, time, traceback
2+
import typing, uuid
3+
4+
SRC_DIR = os.path.dirname(__file__)
15
VERSION: str = ""
2-
with open("VERSION", "r") as version_file:
6+
with open(os.path.join(SRC_DIR, "VERSION"), "r") as version_file:
37
VERSION = "v%s" % version_file.read().strip()
48
SOURCE: str = "https://git.io/bitbot"
59
URL: str = "https://bitbot.dev"
610

7-
import enum, queue, os, queue, select, socket, sys, threading, time, traceback
8-
import typing, uuid
911
from . import EventManager, Exports, IRCServer, Logging, ModuleManager
1012
from . import PollHook, PollSource, Socket, Timers, utils
1113

File renamed without changes.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
with open("README.md", "r") as readme_file:
44
long_description = readme_file.read()
5-
with open("VERSION", "r") as version_file:
5+
with open("bitbot/VERSION", "r") as version_file:
66
version = version_file.read().strip()
77

88
setuptools.setup(

0 commit comments

Comments
 (0)