← All tasks
pythonCycloneDX/cyclonedx-python-lib #336Not a task: already works

feat: include tests in `sdist` releases

envgap__CycloneDX__cyclonedx-python-lib-336

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
0b19294e4820f0da5e81decd4d902ef7789ecb61
Manifest
pyproject.toml
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

CycloneDX/cyclonedx-python-lib #336 · read the original issue
As of https://github.com/CycloneDX/cyclonedx-python-lib/issues/334#issuecomment-1377411800



> The _one_ thing that would be useful for downstreams is including the test files in the `sdist` uploaded to pypy: at present, these are [downloaded separately](https://github.com/conda-forge/cyclonedx-python-lib-feedstock/blob/main/recipe/meta.yaml#L11), but sometimes git tags move, github-generated source tarballs change their SHA, etc. Having a single distribution, with a published SHA256, would simplify things a bit, but it's not a huge lift, and worth it to have tests.





`sdist` releases are - as the name says - source releases, in contrast to `egg`/`wheel`/bin releases, so it should be no issue to put the tests next to the sources.



Acceptance criteria: 

- [x] tests are part of the `sdist` bundle

- [x] tests are not installed, when the `sdist` bundle is actually installed via `pip` or something
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]