question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pypa/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:open
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
chrahuntcommented, Dec 20, 2020

The only reason I know of for naming the folder tests is to avoid conflicting with the test standard library module.

0reactions
dicommented, Oct 30, 2021

The directory in this project should probably just change to test so that it aligns with the default setuptools behavior.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found