-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The tests directory is no longer distributed #188
Comments
The github trarball actually includes tests. It's only the PyPI sdist that does not. |
The packaging code has been stable for "a while" ( |
It does not. The package uses the forge macros. So, we are pulling the tarball from GitHub. And it does not contain a tests directory. Tarball used by spec file: https://github.com/thebjorn/pydeps/archive/v1.12.8/pydeps-1.12.8.tar.gz This is for the PR updating the package. The GitHub tarball for 1.11.1 does include it, indeed. However the tarball in the side cache does not. Maybe that was downloaded from PyPI. I don't know. But simple to verify:
|
The Feodora package is in an inconsistent state, I've commented the details in https://src.fedoraproject.org/rpms/pydeps/pull-request/2# because I didn't want to bother upstream with Fedora-specific things. |
The gitlab release .whl and tar.gz contains the same as released on PyPI (i.e. no tests), the Source code (zip) and (tar.gz) do contain the tests. |
I don't see a tests directory listed for the tarball.
Yes, I can work with the GitHub tarball.
Well, what is downloaded and what I checked are the GitHub and PyPI release tarballs. I could probably check to see if we can use the source tarball. But if it's easy to include tests in the GitHub release tarball, I'd prefer that. |
Ok, give me a couple of minutes.. |
Hold on. It seems we are using the source tarball after all. I must have made a mistake when uploading to the side cache. So, we should be good without any modifications. Sorry for all the fuzz. |
Lolz. Well, 1.12.9 is out and it contains the tests :-) |
Thanks for the quick action. It doesn't hurt. I will need to step away from the keyboard for a bit. I must have taken a wrong turn somewhere. My apologies for all the fuzz. But it's all settled now. I've updated to 1.12.9 right away and made sure everything is in place. Feel free to revert your changes again, if you prefer. I did see an error running tests with the 1.12.9 release. I'll look into it and file a new issue if it turns out to be an upstream issue, not a Fedora quirk. |
There is an mf directory containing snapshots of the standard python modulefinder module at various versions (including the 2.7 version which is causing your issue). They're just stored for reference they're not imported anywhere... Looks like your build step is trying to compile everything? |
Excluding files/directories from packaging was a bit more trouble than I anticipated, so I've moved the pydeps/mf directory to docs. Version 1.12.10 will be available on PyPI/github as soon as CI/CD har run. |
With
With Let me know what you prefer and I can provide a patch. |
The problem I was having was that Upon closer inspection, the tar.gz file contains the tests, but the .whl file does not (with Version 1.12.12 is available on PyPI and github with this setup. |
|
Fedora recently updated to Python 3.12 in rawhide (development branch). As part of that all Python packages were rebuild. This brought to light that the tests directory is no longer distributed. Neither the GitHub tarball nor the PyPI tarball contain it.
Since tests are important in order to catch regressions early, e.g. when upgrading to a new Python release, I would like to ask you to include the tests in the tarball either here or on PyPI, preferably both.
Looking at #71 it seems they were included in the past.
The text was updated successfully, but these errors were encountered: