@@ -10,7 +10,7 @@ maintainers = [
1010description = " Python wrapper for interfacing to IntrepidCS Hardware."
1111keywords = [" intrepidcs" , " CAN" , " Ethernet" , " Automotive" , " ICS" ]
1212readme = {file = " README.md" , content-type = " text/markdown" }
13- requires-python = " >=3.8 "
13+ requires-python = " >=3.9 "
1414classifiers =[
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 ]
4667build = " {*-win32,*-win_amd64,*-macosx_universal2,*-manylinux_x86_64,*-manylinux_aarch64}"
4768skip = " cp36-* cp37-* pp* *-manylinux_i686 *-musllinux_*"
0 commit comments