Skip to content

Commit 33f5f5d

Browse files
Add support for uv
1 parent f14367f commit 33f5f5d

3 files changed

Lines changed: 33 additions & 3 deletions

File tree

.vscode/extensions.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"charliermarsh.ruff",
55
"mikoz.black-py",
66
"xaver.clang-format",
7-
"webfreak.debug"
7+
"webfreak.debug",
8+
"tamasfe.even-better-toml",
9+
"fill-labs.dependi"
810
]
911
}

pyproject.toml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ maintainers = [
1010
description = "Python wrapper for interfacing to IntrepidCS Hardware."
1111
keywords = ["intrepidcs", "CAN", "Ethernet", "Automotive", "ICS"]
1212
readme = {file = "README.md", content-type = "text/markdown"}
13-
requires-python = ">=3.8"
13+
requires-python = ">=3.9"
1414
classifiers=[
1515
"Development Status :: 5 - Production/Stable",
1616
"Intended Audience :: Developers",
@@ -19,7 +19,6 @@ classifiers=[
1919
"Topic :: Software Development :: Libraries :: Python Modules",
2020
"Programming Language :: Python",
2121
"Programming Language :: Python :: 3",
22-
"Programming Language :: Python :: 3.8",
2322
"Programming Language :: Python :: 3.9",
2423
"Programming Language :: Python :: 3.10",
2524
"Programming Language :: Python :: 3.11",
@@ -41,7 +40,29 @@ requires = [
4140
"setuptools",
4241
"wheel",
4342
"dunamai",
43+
"hatchling",
44+
"uv-dynamic-versioning"
4445
]
46+
build-backend = "hatchling.build"
47+
48+
[tool.hatch.metadata]
49+
allow-direct-references = true
50+
51+
[tool.hatch.version]
52+
source = "uv-dynamic-versioning"
53+
54+
[tool.hatch.build.hooks.version]
55+
path = "gen/_version.py"
56+
template = '''
57+
version = "{version}"
58+
'''
59+
60+
[tool.uv-dynamic-versioning]
61+
metadata = false # I couldn't get pypi to upload with this enabled.
62+
strict = true
63+
style = "pep440"
64+
dirty = true
65+
4566
[tool.cibuildwheel]
4667
build = "{*-win32,*-win_amd64,*-macosx_universal2,*-manylinux_x86_64,*-manylinux_aarch64}"
4768
skip = "cp36-* cp37-* pp* *-manylinux_i686 *-musllinux_*"

uv.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)