Package is accidentally shipping its tests
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- python
- Domain
- build-system
Research direction
Start by inspecting the package exclusion configuration in setup.py, especially the existing tests entry. Build or install the package and run pip show --files azure-functions-durable to verify the result. Done means the installed package no longer includes the top-level tests package or its test files.
Written by the indexing model from the issue text.
Description
🐛 Describe the bug
It looks like this package is accidentally shipping its tests. This can be easily verified with:
pip show --files azure-functions-durable
Which shows that there are 76 tests files shipped by the package into a top-level package called tests. This has a few small issues:
- It bloats the package size.
- It leads to collisions with other packages that accidentally ship their tests as
testsmodule (they just overwrite each other in thesite-packagesdirectory). - It can lead to issues for users if it conflicts with their
testspackage.
🤔 Expected behavior
The shipped package should not include its tests.
Possible cause / solution
It looks like the setup.py already lists tests under exclude:
However if I remember correctly the pattern should be tests/* or tests* or tests.* or so to really affect subfolders. Otherwise the listing of azure itself would lead to the exclusion of the whole code (in this case it is most likely just about the exclusion of the top-level __init__.py).
☕ Steps to reproduce
pip install azure-functions-durable
pip show --files azure-functions-durable
- Dominant language
- Python
- Stars
- 157
- Forks
- 70
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/azure-functions-durable-python
-
Enhancement fixed-in-v2 P3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Azure/azure-functions-durable-python#617 · 1 comment ·
-
bug Debuggability fixed-in-v2 P2
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Azure/azure-functions-durable-python#587 · 2 comments · 1 reaction ·
-
bug fixed-in-v2 P2
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Azure/azure-functions-durable-python#568 · 1 comment ·
-
Enhancement fixed-in-v2 P3
Difficulty 4/5 3-5 days Newbie friendliness 62/100
Azure/azure-functions-durable-python#618 · 1 comment ·
-
blocked bug fixed-in-v2 known-regression
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Azure/azure-functions-durable-python#600 · 3 comments ·
All issues in Azure/azure-functions-durable-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100