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:
parent
ef30250f30
commit
4a1e94826b
2 changed files with 4 additions and 5 deletions
6
logs.py
6
logs.py
|
@ -1,5 +1,5 @@
|
|||
#!/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 typing import Union
|
||||
|
||||
|
@ -15,8 +15,8 @@ def log(
|
|||
else:
|
||||
stream = stdout
|
||||
if time == "now":
|
||||
dtime = dt.now(UTC)
|
||||
dtime.replace(tzinfo=UTC)
|
||||
dtime = dt.now(tz.utc)
|
||||
dtime.replace(tzinfo=tz.utc)
|
||||
elif type(time) == str:
|
||||
raise ValueError('Only "now" is an accepted string argument for time')
|
||||
elif type(time) == dt:
|
||||
|
|
|
@ -4,10 +4,9 @@ version = "0.0.1"
|
|||
description = "A talk/talkd like program"
|
||||
authors = ["Firepup Sixfifty <firepyp650@gmail.com>"]
|
||||
readme = "README.md"
|
||||
package-mode = false
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.11"
|
||||
python = "^3.10"
|
||||
firepup650 = "^1.0.40"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue