conda-forge / conda-forge/model-index-feedstock

Package installs `tests` as top-level `tests` package

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
0
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Installing `model-index` installs both the `modelindex` package, as well as the tests (as a `tests`) package.

I noticed this after installing the library broke an unrelated test suite since the `tests` package (from modelindex) was shadowing the pytest tests directory.

Looking at the package json file you can see the following paths are installed that should probably be removed:

```
# model-index-0.1.11-pyhd8ed1ab_1.json, lines 45:56
"lib/python3.12/site-packages/tests/__init__.py",
"lib/python3.12/site-packages/tests/test_check.py",
"lib/python3.12/site-packages/tests/test_cli.py",
"lib/python3.12/site-packages/tests/test_collections.py",
"lib/python3.12/site-packages/tests/test_examples.py",
"lib/python3.12/site-packages/tests/test_images.py",
"lib/python3.12/site-packages/tests/test_import.py",
"lib/python3.12/site-packages/tests/test_library.py",
"lib/python3.12/site-packages/tests/test_markdown.py",
"lib/python3.12/site-packages/tests/test_singlefile.py",
"lib/python3.12/site-packages/tests/test_str.py",
"lib/python3.12/site-packages/tests/test_yml_head.py",
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.