File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434
3535 - name : Build distributions with uv
3636 run : uv build
37+ env :
38+ HATCH_BUILD_WHEEL_TAG : build${{ github.run_number }}-${{ github.run_attempt }}
3739
3840 - name : Upload distributions as artifact
3941 uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
Original file line number Diff line number Diff line change 11[project ]
22name = " python-em511"
3- dynamic = [ " version " ]
3+ version = " 0.0.1 "
44description = " Driver for Carlo Gavazzi EM511 Series Single Phase Energy Meters using Modbus RTU"
55readme = " README.md"
66
@@ -36,15 +36,11 @@ classifiers = [
3636]
3737
3838[build-system ]
39- requires = [" setuptools>=64 " , " setuptools-scm " ]
40- build-backend = " setuptools.build_meta "
39+ requires = [" hatchling " ]
40+ build-backend = " hatchling.build "
4141
42- [tool .setuptools .packages .find ]
43- where = [" src" ]
44-
45- [tool .setuptools_scm ]
46- write_to = " src/em511/_version.py"
47- local_scheme = " no-local-version"
42+ [tool .hatch .build .targets .wheel ]
43+ packages = [" src/em511" ]
4844
4945[dependency-groups ]
5046dev = [
You can’t perform that action at this time.
0 commit comments