← All tasks
pythonnucleic/kiwi #169Not a task: not reproduced

`top_level.txt` include a non existing module `src`

envgap__nucleic__kiwi-169

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

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

03 / ORIGINAL ISSUE TEXT

nucleic/kiwi #169 · read the original issue
Current content of `top_level.txt` in dist metadata is:

```

kiwisolver

src

```

This causes [importlib.metadata.packages_distributions()](https://docs.python.org/3.11/library/importlib.metadata.html#mapping-import-to-distribution-packages) to return:

```python

{

  'kiwisolver': ['kiwisolver'],

  'src': ['kiwisolver'],

  ...

}

```

This is confusing, especially in the src-layout project, whose top-level package happens to be `src`.



Please consider this change, though this will add `tests` directory into source distribution (hope this is not important):

```diff

diff --git a/pyproject.toml b/pyproject.toml

index 26dee95..3440a23 100644

--- a/pyproject.toml

+++ b/pyproject.toml

@@ -48,8 +48,7 @@ include-package-data = false

 package-data = {kiwisolver = ["py.typed", "*.pyi"]}



 [tool.setuptools.packages.find]

-where = ["py"]

-exclude = ["tests"]

+include = ["py/kiwisolver"]



 [tool.setuptools_scm]

 write_to = "py/src/version.h"

```
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
[]