From 2a899368514d5318684fd278fd3d14afd6358761 Mon Sep 17 00:00:00 2001 From: Eric McDonald Date: Wed, 30 Apr 2025 15:57:14 -0700 Subject: [PATCH] Test backslash fix. --- .auxiliary/configuration/copier-answers.yaml | 2 +- .github/workflows/releaser.yaml | 10 ++++---- .github/workflows/tester.yaml | 4 ++-- pyproject.toml | 24 ++++++++++++-------- sources/emcdproj/__/__init__.py | 5 ---- 5 files changed, 22 insertions(+), 23 deletions(-) diff --git a/.auxiliary/configuration/copier-answers.yaml b/.auxiliary/configuration/copier-answers.yaml index e50fc60..c96821d 100644 --- a/.auxiliary/configuration/copier-answers.yaml +++ b/.auxiliary/configuration/copier-answers.yaml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: v1.16 +_commit: v1.17-2-g732474d _src_path: gh:emcd/python-project-common author_email: emcd@users.noreply.github.com author_name: Eric McDonald diff --git a/.github/workflows/releaser.yaml b/.github/workflows/releaser.yaml index 572e1db..f539ae1 100644 --- a/.github/workflows/releaser.yaml +++ b/.github/workflows/releaser.yaml @@ -24,7 +24,7 @@ jobs: test: needs: [initialize] - uses: emcd/python-project-common/.github/workflows/xrepo--tester.yaml@v1.16 + uses: emcd/python-project-common/.github/workflows/xrepo--tester.yaml@release-1.17 with: matrix-exclusions: '${{ needs.initialize.outputs.matrix-exclusions }}' platforms: '${{ needs.initialize.outputs.platforms }}' @@ -33,7 +33,7 @@ jobs: report: needs: [initialize, test] - uses: emcd/python-project-common/.github/workflows/xrepo--reporter.yaml@v1.16 + uses: emcd/python-project-common/.github/workflows/xrepo--reporter.yaml@release-1.17 with: python-version: '${{ fromJSON(needs.initialize.outputs.python-versions)[0] }}' @@ -43,14 +43,14 @@ jobs: contents: write id-token: write pages: write - uses: emcd/python-project-common/.github/workflows/xrepo--documenter.yaml@v1.16 + uses: emcd/python-project-common/.github/workflows/xrepo--documenter.yaml@release-1.17 with: include-reports: true python-version: '${{ fromJSON(needs.initialize.outputs.python-versions)[0] }}' package: needs: [initialize, docsgen] - uses: emcd/python-project-common/.github/workflows/xrepo--packager.yaml@v1.16 + uses: emcd/python-project-common/.github/workflows/xrepo--packager.yaml@release-1.17 with: artifacts-path: '.auxiliary/artifacts/hatch-build' # TODO: Use environment. python-version: '${{ fromJSON(needs.initialize.outputs.python-versions)[0] }}' @@ -95,7 +95,7 @@ jobs: steps: - name: Prepare Python - uses: emcd/python-project-common/.github/actions/python-hatch@v1.16 + uses: emcd/python-project-common/.github/actions/python-hatch@release-1.17 with: python-version: ${{ fromJSON(needs.initialize.outputs.python-versions)[0] }} diff --git a/.github/workflows/tester.yaml b/.github/workflows/tester.yaml index a341490..902bff9 100644 --- a/.github/workflows/tester.yaml +++ b/.github/workflows/tester.yaml @@ -14,7 +14,7 @@ jobs: test: needs: [initialize] - uses: emcd/python-project-common/.github/workflows/xrepo--tester.yaml@v1.16 + uses: emcd/python-project-common/.github/workflows/xrepo--tester.yaml@release-1.17 with: matrix-exclusions: '${{ needs.initialize.outputs.matrix-exclusions }}' platforms: '${{ needs.initialize.outputs.platforms }}' @@ -23,6 +23,6 @@ jobs: report: needs: [initialize, test] - uses: emcd/python-project-common/.github/workflows/xrepo--reporter.yaml@v1.16 + uses: emcd/python-project-common/.github/workflows/xrepo--reporter.yaml@release-1.17 with: python-version: '${{ fromJSON(needs.initialize.outputs.python-versions)[0] }}' diff --git a/pyproject.toml b/pyproject.toml index 7830be9..9bcbfaa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -137,27 +137,31 @@ PYTHONUNBUFFERED = 'TRUE' # TODO: Only for coverage/pytest. # --- END: Injected by Copier --- [tool.hatch.envs.develop.scripts] docsgen = [ - '''sphinx-build -E -b doctest -d .auxiliary/caches/sphinx \ - documentation .auxiliary/artifacts/sphinx-doctest''', - '''sphinx-build -E -b linkcheck -d .auxiliary/caches/sphinx \ - documentation .auxiliary/artifacts/sphinx-linkcheck''', - '''sphinx-build -a -d .auxiliary/caches/sphinx \ - documentation .auxiliary/artifacts/sphinx-html''', + """sphinx-build -E -b linkcheck -d .auxiliary/caches/sphinx \ + documentation .auxiliary/artifacts/sphinx-linkcheck""", + """sphinx-build -a -d .auxiliary/caches/sphinx \ + documentation .auxiliary/artifacts/sphinx-html""", ] linters = [ - '''ruff check --quiet sources documentation tests''', + """ruff check --quiet sources documentation tests""", # --- BEGIN: Injected by Copier --- # --- END: Injected by Copier --- - '''pyright sources''', + """pyright sources""", ] packagers = [ - '''hatch build''', + """hatch build""", # --- BEGIN: Injected by Copier --- # --- END: Injected by Copier --- ] -testers = [ +testers-no-reports = [ 'coverage erase', 'coverage run', + """coverage run -m sphinx.cmd.build \ + -E -b doctest -d .auxiliary/caches/sphinx \ + documentation .auxiliary/artifacts/sphinx-doctest""", +] +testers = [ + 'testers-no-reports', 'coverage combine', 'coverage report --skip-covered', 'coverage html', diff --git a/sources/emcdproj/__/__init__.py b/sources/emcdproj/__/__init__.py index 089e72a..605a240 100644 --- a/sources/emcdproj/__/__init__.py +++ b/sources/emcdproj/__/__init__.py @@ -21,13 +21,8 @@ ''' Common constants, imports, and utilities. ''' -# Expose everything from internal modules. -from .imports import * from .application import Information as ApplicationInformation from .distribution import Information as DistributionInformation from .imports import * from .preparation import * from .state import Globals - - -__all__ = ( )