Make compatible with python 3.10+, remove package-mode key since it is incompatible with older versions of poetry, and it's not a fatal issue in newer ones yet

This commit is contained in:
Firepup Sixfifty 2024-07-16 21:09:58 +00:00
parent ef30250f30
commit 4a1e94826b
Signed by: Firepup650
SSH key fingerprint: SHA256:U0Zp8EhEe3CMqFSrC79CqatzaEiL4sjta80/RSX2XrY
2 changed files with 4 additions and 5 deletions

View file

@ -1,5 +1,5 @@
#!/usr/bin/python3 #!/usr/bin/python3
from datetime import datetime as dt, UTC from datetime import datetime as dt, timezone as tz
from sys import stdout, stderr from sys import stdout, stderr
from typing import Union from typing import Union
@ -15,8 +15,8 @@ def log(
else: else:
stream = stdout stream = stdout
if time == "now": if time == "now":
dtime = dt.now(UTC) dtime = dt.now(tz.utc)
dtime.replace(tzinfo=UTC) dtime.replace(tzinfo=tz.utc)
elif type(time) == str: elif type(time) == str:
raise ValueError('Only "now" is an accepted string argument for time') raise ValueError('Only "now" is an accepted string argument for time')
elif type(time) == dt: elif type(time) == dt:

View file

@ -4,10 +4,9 @@ version = "0.0.1"
description = "A talk/talkd like program" description = "A talk/talkd like program"
authors = ["Firepup Sixfifty <firepyp650@gmail.com>"] authors = ["Firepup Sixfifty <firepyp650@gmail.com>"]
readme = "README.md" readme = "README.md"
package-mode = false
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.11" python = "^3.10"
firepup650 = "^1.0.40" firepup650 = "^1.0.40"