setup uv package manager

This commit is contained in:
2026-03-18 22:07:21 +01:00
parent 27603536a8
commit 0ff07a6c80
4 changed files with 18 additions and 2 deletions

1
.python-version Normal file
View File

@@ -0,0 +1 @@
3.13

View File

@@ -1,4 +1,4 @@
from datetime import datetime
from datetime import datetime, timedelta
class TimeSlot():
@@ -43,7 +43,7 @@ class TimeSlot():
def end_now(self):
self.end = datetime.now()
def duration(self) -> datetime.timedelta:
def duration(self) -> timedelta:
end = self.end
if not end: end = datetime.now()
return end - self.start

7
pyproject.toml Normal file
View File

@@ -0,0 +1,7 @@
[project]
name = "tt"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
dependencies = []

8
uv.lock generated Normal file
View File

@@ -0,0 +1,8 @@
version = 1
revision = 3
requires-python = ">=3.13"
[[package]]
name = "tt"
version = "0.1.0"
source = { virtual = "." }