-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add script to test packaging #1545
Conversation
@pipermerriam It looks like this script only builds from the wheel that is already in |
cc @carver did you setup the wheel tests for trinity? |
@kclowes The commands=
/bin/rm -rf build dist
python setup.py sdist bdist_wheel
/bin/bash -c 'pip install --upgrade "$(ls dist/*.whl)""[p2p,trinity]" --progress-bar off'
pytest {posargs:tests/integration/ -k 'trinity_cli' --log-cli-level 0} (As you can see, it also runs a small selection of integration tests. Something like It was first added in PR ethereum/trinity#106, and later modified. |
Aha! Thanks for looking into that @veox! |
f4420ef
to
26ec05a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this file might not have type hints enforced. I would recommend doing that ahead of this (or as part of it) so that you can ensure that all new code to the repo has type hints.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks 👍
I'm not seeing anywhere that the test_package.py
script is being invoked in CI am I missing something?
89d9631
to
0c9b4d8
Compare
0c9b4d8
to
c09b417
Compare
Nope, good catch. Instead of adding to CI, I added to the Makefile and the README similar to what Trinity has going on. There is a smoke test in CI that makes sure that the wheel builds and that we can import web3 though. |
What was wrong?
We had a release (5.3.1) that was missing a dependency. Unfortunately, that wasn't caught until after the release.
Related to Issue #1540
How was it fixed?
I stole a script from trinity that installs the release to a temporary virtualenv for testing.
Todo:
Cute Animal Picture