diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml index 9b45298..88ab14d 100644 --- a/.github/workflows/dist.yml +++ b/.github/workflows/dist.yml @@ -52,7 +52,7 @@ jobs: - run: pipx run build - name: Upload build artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: dist path: dist @@ -66,7 +66,7 @@ jobs: steps: - name: Download build artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: dist path: dist diff --git a/pyproject.toml b/pyproject.toml index 498afcc..a87aada 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools", "setuptools_scm"] -build-backend = "setuptools.build_meta" +requires = ["hatchling", "hatch-vcs"] +build-backend = "hatchling.build" [project] name = "robotpy-cli" @@ -22,4 +22,8 @@ robotpy = "robotpy.main:main" [project.urls] repository = "https://github.com/robotpy/robotpy-cli" -[tool.setuptools_scm] +[tool.hatch.build.targets.wheel] +packages = ["robotpy"] + +[tool.hatch.version] +source = "vcs" diff --git a/robotpy/logconfig.py b/robotpy/logconfig.py index 66de5d6..e42b8fb 100644 --- a/robotpy/logconfig.py +++ b/robotpy/logconfig.py @@ -54,9 +54,11 @@ def formatException(self, exc_info): locals_lines = locals_lines[:MAX_VARS_LINES] locals_lines[-1] = "..." output_lines.extend( - line[: MAX_LINE_LENGTH - 3] + "..." - if len(line) > MAX_LINE_LENGTH - else line + ( + line[: MAX_LINE_LENGTH - 3] + "..." + if len(line) > MAX_LINE_LENGTH + else line + ) for line in locals_lines ) output_lines.append("\n")