Skip to content
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

please include tests in pypi source tars #181

Open
sanjayankur31 opened this issue Aug 28, 2020 · 2 comments
Open

please include tests in pypi source tars #181

sanjayankur31 opened this issue Aug 28, 2020 · 2 comments

Comments

@sanjayankur31
Copy link

Hello,

Would it please be possible to include the tests in the pypi tars so that downstream users (like us Linux distributions) can run the tests too?

Because versioneer is used here, a few issues crop up:

So, including the tests in the pypi tars will simplify things quite a bit for those of us who rely on the pypi tar.

Cheers,

@wvangeit
Copy link
Contributor

Until now I've been fairly reluctant to add the test to the package, since the tests contain sample traces, which can be come fairly big. At the moment the test directory is 95% of the size of the repo. If I include them the package will become something like 15 MB big.

About matching the version with git commits. Can you use python to get this info? Because the exact commit hash is actually store in efel/_version.py of the tarball, and can be retrieved using python.

@sanjayankur31
Copy link
Author

Yes, I understand that---it's quite a common setup. It's just that versioneer doesn't work well with non-tag releases.

To download the corresponding commit tar from Github for a pypi release (that is not made from a corresponding git release) one has to:

  • first download the pypi tar
  • untar it, get hash from the version file
  • clone the github repo,
  • checkout that commit
  • generate a tar using git archive.

that's doable, but you can see how it's a lot of extra work for something as simple as getting a corresponding source tar to a released version of code. Otherwise, if one simply downloads from Github, there's no version information. It'll say "unknown+0". Lots of folks are seeing similar issues but no real progress has been made on a workaround/fix:

python-versioneer/python-versioneer#199

I brought this up on the fedora-devel list to see what other folks were doing here. One of the Fedora Python maintainers replied. In short:

For the time being, I'll go through all the steps to generate a github tar and in the future we'll stick to git tagged releases only. That'll mean users don't always get the latest fixes that each patch release includes, but given that each git commit results in a pypi patch release, I don't think that'll be an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants