Skip to content

Commit 7653506

Browse files
authored
Merge pull request #8 from robotpy/hatchling
Use hatchling instead of setuptools
2 parents c6b6838 + a8f2867 commit 7653506

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

.github/workflows/dist.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- run: pipx run build
5353

5454
- name: Upload build artifacts
55-
uses: actions/upload-artifact@v3
55+
uses: actions/upload-artifact@v4
5656
with:
5757
name: dist
5858
path: dist
@@ -66,7 +66,7 @@ jobs:
6666

6767
steps:
6868
- name: Download build artifacts
69-
uses: actions/download-artifact@v3
69+
uses: actions/download-artifact@v4
7070
with:
7171
name: dist
7272
path: dist

pyproject.toml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
2-
requires = ["setuptools", "setuptools_scm"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["hatchling", "hatch-vcs"]
3+
build-backend = "hatchling.build"
44

55
[project]
66
name = "robotpy-cli"
@@ -22,4 +22,8 @@ robotpy = "robotpy.main:main"
2222
[project.urls]
2323
repository = "https://github.com/robotpy/robotpy-cli"
2424

25-
[tool.setuptools_scm]
25+
[tool.hatch.build.targets.wheel]
26+
packages = ["robotpy"]
27+
28+
[tool.hatch.version]
29+
source = "vcs"

robotpy/logconfig.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@ def formatException(self, exc_info):
5454
locals_lines = locals_lines[:MAX_VARS_LINES]
5555
locals_lines[-1] = "..."
5656
output_lines.extend(
57-
line[: MAX_LINE_LENGTH - 3] + "..."
58-
if len(line) > MAX_LINE_LENGTH
59-
else line
57+
(
58+
line[: MAX_LINE_LENGTH - 3] + "..."
59+
if len(line) > MAX_LINE_LENGTH
60+
else line
61+
)
6062
for line in locals_lines
6163
)
6264
output_lines.append("\n")

0 commit comments

Comments
 (0)