Skip to content

Commit 152ca3b

Browse files
committed
3.1.2
1 parent 94cdf1b commit 152ca3b

File tree

7 files changed

+33
-13
lines changed

7 files changed

+33
-13
lines changed

requirements/sql.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
sqlalchemy[asyncio]>=2.0
2-
aiosqlite==0.19.0
3-
pymssql==2.2.10
4-
asyncpg==0.29.0
5-
asyncmy==0.2.9
1+
sqlalchemy[asyncio]>=2.0,<3.0
2+
aiosqlite>=0.19,<0.20
3+
pymssql>=2.2,<2.3
4+
asyncpg>=0.29,<0.30
5+
asyncmy>=0.2,<0.3

requirements/testing.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
pytest==7.4.3
2-
pytest-asyncio==0.21.1
1+
pytest>=7.4,<7.5
2+
pytest-asyncio>=0.21,<0.22

requirements/voice.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
PyNaCl==1.5.0
1+
PyNaCl>=1.5,<1.6

requirements/web.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
selenium==4.15.2
2-
undetected-chromedriver==3.5.4
3-
webdriver-manager==4.0.1
1+
selenium>=4.15,<4.16
2+
undetected-chromedriver>=3.5,<3.6
3+
webdriver-manager>=4.0,<4.1

src/daf/__init__.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,16 @@
1616
from .convert import *
1717
from .remote import *
1818

19+
import sys
20+
import warnings
1921

20-
VERSION = "3.1.1"
22+
23+
VERSION = "3.1.2"
24+
25+
26+
if sys.version_info.minor == 12 and sys.version_info.major == 3:
27+
warnings.warn(
28+
"DAF's support on Python 3.12 is limited. Web browser features and"
29+
" SQL logging are not supported in Python 3.12. Please install Python 3.11 instead."
30+
" Additional GUI may be unstable on Python 3.12"
31+
)

src/daf/web.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import random as rd
2222
import aiohttp as http
2323

24-
2524
class GLOBALS:
2625
"Global variables of the web module"
2726
selenium_installed = False

src/daf_gui/main.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
import os
4848
import daf
4949
import webbrowser
50+
import warnings
5051

5152

5253
WIN_UPDATE_DELAY = 0.005
@@ -157,6 +158,15 @@ def __init__(self) -> None:
157158
# Connection
158159
self.connection: AbstractConnectionCLIENT = None
159160

161+
162+
if sys.version_info.minor == 12 and sys.version_info.major == 3:
163+
tkdiag.Messagebox.show_warning(
164+
"DAF's support on Python 3.12 is limited. Web browser features and"
165+
" SQL logging are not supported in Python 3.12. Please install Python 3.11 instead.\n"
166+
"Additional GUI can be unstable on Python 3.12",
167+
"Compatibility warning!"
168+
)
169+
160170
def init_event_listeners(self):
161171
"Initializes event listeners."
162172
bootstyle_map = {

0 commit comments

Comments
 (0)