Skip to content

Commit b335801

Browse files
committed
fix build after uv migration, use uv_build
1 parent 7145a36 commit b335801

21 files changed

Lines changed: 11 additions & 15 deletions

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Python library for interfacing with the [RadiaCode-10x](https://www.radiacode.co
1616

1717
## 📸 Demo
1818

19-
Interactive web interface example ([backend](radiacode-examples/webserver.py) | [frontend](radiacode-examples/webserver.html)):
19+
Interactive web interface example ([backend](src/radiacode/examples/webserver.py) | [frontend](src/radiacode/examples/webserver.html)):
2020

2121
![radiacode-webserver-example](./screenshot.png)
2222

@@ -30,15 +30,15 @@ pip install --upgrade 'radiacode[examples]'
3030
Run the web interface shown in the screenshot above:
3131
```bash
3232
# Via Bluetooth (Linux only, replace with your device's address)
33-
$ python3 -m radiacode-examples.webserver --bluetooth-mac 52:43:01:02:03:04
33+
$ python3 -m radiacode.examples.webserver --bluetooth-mac 52:43:01:02:03:04
3434

3535
# Via USB connection (Linux/MacOS/Windows)
36-
$ sudo python3 -m radiacode-examples.webserver
36+
$ sudo python3 -m radiacode.examples.webserver
3737
```
3838

3939
Basic terminal output example (same options as web interface):
4040
```bash
41-
$ python3 -m radiacode-examples.basic
41+
$ python3 -m radiacode.examples.basic
4242
```
4343

4444
### Library Usage Example
@@ -104,7 +104,7 @@ device.set_display_off_time(30) # Auto-off after 30 seconds
104104

105105
3. Run examples:
106106
```bash
107-
uv run python radiacode-examples/basic.py
107+
uv run python radiacode.examples/basic.py
108108
```
109109

110110
## ⚠️ Platform-Specific Notes

pyproject.toml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name = "radiacode"
33
version = "0.3.5"
44
description = "Library for RadiaCode-101"
55
authors = [{ name = "Maxim Andreev", email = "[email protected]" }]
6-
requires-python = "~=3.9"
6+
requires-python = ">=3.9"
77
readme = "README.md"
8-
license = "MIT"
8+
license = { file = "LICENSE" }
99
classifiers = [
1010
"Development Status :: 3 - Alpha",
1111
"License :: OSI Approved :: MIT License",
@@ -26,6 +26,7 @@ examples = [
2626
]
2727

2828
[project.urls]
29+
Homepage = "https://github.com/cdump/radiacode"
2930
Repository = "https://github.com/cdump/radiacode"
3031

3132
[dependency-groups]
@@ -34,15 +35,9 @@ dev = [
3435
"mypy~=1.16",
3536
]
3637

37-
[tool.hatch.build.targets.sdist]
38-
include = ["radiacode-examples/*"]
39-
40-
[tool.hatch.build.targets.wheel]
41-
include = ["radiacode-examples/*"]
42-
4338
[build-system]
44-
requires = ["hatchling"]
45-
build-backend = "hatchling.build"
39+
requires = ["uv_build>=0.9.13,<0.10.0"]
40+
build-backend = "uv_build"
4641

4742
[tool.ruff]
4843
line-length = 130

radiacode-examples

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/radiacode/examples
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)