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.

Packages distributed on PyPi don't have tests

See original GitHub issue
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Question

After examining the tarballs from PyPi for packages that use poetry none of them had their tests distributed.

Because of this occurrence I was wondering if that behavior was being enforced somehow here.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
seifertmcommented, Jan 15, 2019

Packages for Gentoo Linux also support a dedicated testing phase for the exact reasons @worldofpeace mentioned above.

2reactions
bertjwregeercommented, Jan 13, 2019

@sdispater certain distributions of Linux, specifically Debian is the main one I am aware of, require that they build debian package using the source tarball, and having tests in that source tarball allows them to run tests to verify the package was installed successfully.

The complaint here isn’t for projects using poetry but that poetry itself does not ship a source tarball with tests and thus it is harder to package.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using TestPyPI - Python Packaging User Guide
Because TestPyPI has a separate database from the live PyPI, you'll need a separate user account specifically for TestPyPI. Go to https://test.pypi.org/account/ ...
Read more >
Including unit tests in (test.)pypi package - Stack Overflow
I have a set of unit tests in my package which run nicely during my development workflow, and automatically when I push to...
Read more >
Help - PyPI
How do I package and publish my code for PyPI? For full instructions on configuring, packaging and distributing your Python project, refer to...
Read more >
Publishing your Python packages on TestPyPi before ...
If you're just creating a package for learning purposes, there's no need (IMO) to pollute the official PyPi index with it.
Read more >
Packaging and Distributing Your Python Project to PyPI for ...
When the package has the __init__.py file, the package can be imported ... The difference is using the package installed from Test PyPI...
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