tests, test?
See original GitHub issuepypa/sampleproject and Python Packaging User Guide’s “Packaging Python Projects” page suggest the unit test folder be named tests
. But by default, all files matching the pattern test/test*.py, not tests/test*.py, are included in the source distribution. Indeed, I renamed tests
to test
in sampleproject, then python setup.py sdist bdist_wheel
will create a dist
package that includes test/test*.py.
Or, did sampleproject intentionally change the name to avoid sdist’s inclusion of the test files? That’d be a weird way to do so. It would be better to rename it back to test
and explicitly put an exclude
line in MANIFEST.in
if you want the exclusion.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Get free at-home COVID-19 tests this winter
15,000+ Free Testing Sites. No-cost antigen and PCR COVID-19 tests are available to everyone in the U.S., including the uninsured, at more than...
Read more >COVID-19 Testing: What You Need to Know - CDC
Viral tests look for a current infection with SARS-CoV-2, the virus that causes COVID-19, by testing specimens from your nose or mouth. There...
Read more >At-Home OTC COVID-19 Diagnostic Tests - FDA
Authorized at-home OTC tests are available without a prescription and are typically available online or at local stores. Testing and other protective steps ......
Read more >COVID-19 Testing and Locations | MinuteClinic - CVS
CVS Health is offering no cost coronavirus testing. Get a rapid COVID test for same day results, or a molecular lab test (PCR/NAAT)...
Read more >Testing.com: Order Lab Tests and Blood Tests Online
Testing.com is a trusted health resource designed to help patients and caregivers easily order and understand the many lab tests that are a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The only reason I know of for naming the folder
tests
is to avoid conflicting with thetest
standard library module.The directory in this project should probably just change to
test
so that it aligns with the defaultsetuptools
behavior.