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

PyPi package lacks ./tests/conftest.py #19

Open
lemenkov opened this issue Aug 14, 2024 · 5 comments
Open

PyPi package lacks ./tests/conftest.py #19

lemenkov opened this issue Aug 14, 2024 · 5 comments

Comments

@lemenkov
Copy link
Contributor

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?

@charles-cooper
Copy link
Member

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?

@lemenkov
Copy link
Contributor Author

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.

@charles-cooper
Copy link
Member

charles-cooper commented Aug 15, 2024

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
Copy link
Member

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!

@lemenkov
Copy link
Contributor Author

Ok, sure!

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