vvm icon indicating copy to clipboard operation
vvm copied to clipboard

PyPi package lacks ./tests/conftest.py

Open lemenkov opened this issue 1 year ago • 5 comments

Environment information

  • vvm Version: 0.2.1
  • vyper Version: any
  • Python Version: any
  • OS: osx/linux/win

What was wrong?

If the package was downloaded from PyPi then it cannot pass the tests due to lack of ./tests/conftest.py.

How can it be fixed?

It can be fixed by including ./tests/conftest.py file in the PyPi tarball. Cound you please include it starting from the next release?

lemenkov avatar Aug 14 '24 13:08 lemenkov

hmm, it's not really common for production tarballs to include the test suite. is it an issue to pull from the github repo to run the tests?

charles-cooper avatar Aug 14 '24 15:08 charles-cooper

hmm, it's not really common for production tarballs to include the test suite.

I believe it's the other way around. Most of the dependencies of a various crypto-libraries have test-suite published within their PyPi-tarballs. Even if it were true then perhaps you would remove all the tests from PyPi package since they are not useful. :)

is it an issue to pull from the github repo to run the tests?

No, not a big deal. Right now I am using GitHub tarball and back then I was using PyPi one I've just uploaded the ./tests/conftest.py file during my CI-testing.

lemenkov avatar Aug 14 '24 16:08 lemenkov

Even if it were true then perhaps you would remove all the tests from PyPi package since they are not useful. :)

~hmm i see what you are saying. but actually i see that tests/conftest.py is indeed in the source tarball? https://pypi.org/project/vyper/0.4.0/#files~

oops, wrong project!

charles-cooper avatar Aug 15 '24 08:08 charles-cooper

yea, it's a bit weird that it's not being included. i would think it's an issue with setup.py, but i tinkered with it for a few minutes and was not able to convince it to include conftest.py in the build. @lemenkov if you find a solution to this, please open a PR!

charles-cooper avatar Aug 15 '24 08:08 charles-cooper

Ok, sure!

lemenkov avatar Aug 15 '24 08:08 lemenkov