Skip to content

fix(entry-point): rename hatch entry point 'decorators' to 'reqstool' + add e2e tests#75

Merged
jimisola merged 6 commits intomainfrom
test/add-e2e-tests
Mar 6, 2026
Merged

fix(entry-point): rename hatch entry point 'decorators' to 'reqstool' + add e2e tests#75
jimisola merged 6 commits intomainfrom
test/add-e2e-tests

Conversation

@jimisola
Copy link
Member

@jimisola jimisola commented Mar 4, 2026

Summary

  • Bug fix: The hatch entry point key was decorators but the README and fixture both expect [tool.hatch.build.hooks.reqstool]. This caused UnknownPluginError: Unknown build hook: reqstool for all users. Renamed entry point to reqstool.
  • Fix addopts: remove broken '-m not slow or not integration' (logical error — was always true)
  • Drop unused flaky/slow markers; add integration and e2e markers (consistent with org pattern)
  • Add tests/integration/ and tests/e2e/ directory structure
  • Add e2e test that runs hatchling in an isolated venv to verify the hook generates annotations.yml on disk and bundles reqstool_config.yml into the sdist tarball
  • Fix CI: correct cov package name (reqstool_python_hatch_plugin), add --junitxml=build/junit.xml, build wheel before tests

Test plan

  • E2e test passes locally (1 passed, 1 skipped)
  • build/junit.xml generated
  • CI passes on this PR

jimisola added 4 commits March 4, 2026 11:06
…tool'

The entry point key must match the hook name used in pyproject.toml
([tool.hatch.build.hooks.reqstool]). The previous 'decorators' key caused
'Unknown build hook: reqstool' errors for all users following the README.

Also:
- Fix addopts: remove broken '-m not slow or not integration' filter
- Drop unused 'flaky'/'slow' markers; add 'integration' and 'e2e' markers
- Add tests/integration/ and tests/e2e/ directory structure
- Add e2e test: runs hatchling directly in an isolated venv to verify the
  build hook generates annotations.yml and bundles reqstool_config.yml
- Fix CI: correct cov package name, add --junitxml, build wheel before tests
@jimisola jimisola self-assigned this Mar 4, 2026
@jimisola jimisola changed the title fix(entry-point): rename hatch entry point 'decorators' → 'reqstool' + add e2e tests fix(entry-point): rename hatch entry point 'decorators' to 'reqstool' + add e2e tests Mar 4, 2026
@jimisola jimisola merged commit db4a0d5 into main Mar 6, 2026
9 checks passed
@jimisola jimisola deleted the test/add-e2e-tests branch March 6, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant