Skip to content

Commit 26a936c

Browse files
Update to use uv
1 parent 3fa08dc commit 26a936c

File tree

7 files changed

+42
-32
lines changed

7 files changed

+42
-32
lines changed

license.txt

Lines changed: 0 additions & 14 deletions
This file was deleted.

pyproject.toml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
[project]
22
name = "tk-tools"
3-
version = "0.1.0"
3+
version = "0.17.0"
44
description = "Add your description here"
55
readme = "README.md"
66
requires-python = ">=3.11"
7+
8+
classifiers=[
9+
'Development Status :: 4 - Beta',
10+
'Programming Language :: Python :: 3',
11+
'Programming Language :: Python :: 3.11',
12+
'Programming Language :: Python :: 3.12',
13+
'Programming Language :: Python :: 3.13',
14+
'Natural Language :: English'
15+
]
16+
717
dependencies = [
818
"engineering-notation>=0.10.0",
919
"stringify>=0.1.1",
@@ -13,5 +23,16 @@ dependencies = [
1323
dev = [
1424
"flake8>=7.1.1",
1525
"pytest>=8.3.4",
26+
"ruff>=0.9.2",
1627
"sphinx>=8.1.3",
1728
]
29+
30+
[build-system]
31+
requires = ["setuptools > 75.0.0"]
32+
build-backend = "setuptools.build_meta"
33+
34+
[tool.setuptools.packages.find]
35+
where = ["."] # list of folders that contain the packages (["."] by default)
36+
include = ["tk_tools", ] # package names should match these glob patterns (["*"] by default)
37+
exclude = [] # exclude packages matching these glob patterns (empty by default)
38+
namespaces = false # to disable scanning PEP 420 namespaces (true by default)

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ Here are some examples screenshots of the widgets you can create:
6161

6262
![Rotary-Scale](https://tk-tools.readthedocs.io/en/latest/_images/rotary-scale.png)
6363

64-
# Dependencies
64+
# Testing
6565

66-
This package is dependant on [engineering_notation](https://pypi.org/project/engineering-notation/), which is one of my other packages.
66+
## Dev Installation
6767

68-
# Testing
68+
$>uv pip install -e .
6969

7070
Basic testing has been instantiated *however* it is currently limited. To execute style testing:
7171

File renamed without changes.

tk_tools/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import importlib.metadata
2+
13
from tk_tools.canvas import Gauge, Graph, Led, RotaryScale
24

35
from tk_tools.groups import (
@@ -23,7 +25,7 @@
2325

2426
from tk_tools.tooltips import ToolTip
2527

26-
from tk_tools.version import __version__
28+
__version__ = importlib.metadata.version("tk_tools")
2729

2830

2931
__all__ = [

tk_tools/images.py

Lines changed: 13 additions & 12 deletions
Large diffs are not rendered by default.

tk_tools/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.16.0"
1+

0 commit comments

Comments
 (0)