Skip to content

Instantly share code, notes, and snippets.

@ipmb
Created October 25, 2018 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ipmb/28355a53c93c682e11e3319320894be2 to your computer and use it in GitHub Desktop.
Save ipmb/28355a53c93c682e11e3319320894be2 to your computer and use it in GitHub Desktop.
shiv -o test.pyz -e pytest:main .
./test.pyz --pyargs my_tests
echo $?
def test_test():
assert 1 == 0
from setuptools import setup
setup(name="test", version="0.1", py_modules=["my_tests"], install_requires=["pytest"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment