openSUSE / py2pack

Generate distribution packages from PyPI
Apache License 2.0
69 stars 40 forks source link

Stacktrace under Python 2.6 #23

Closed gjb1002 closed 8 years ago

gjb1002 commented 9 years ago

"py2pack generate" says the following under Python 2.6 (it's using syntax introduced in Python 2.7). Either this should be fixed or the supported versions should be changed.

Traceback (most recent call last):
  File "/users/geoff/.local/selenium_test/bin/py2pack", line 22, in <module>
    main()
  File "/users/geoff/.local/selenium_test/lib/python2.6/site-packages/py2pack/__init__.py", line 255, in main
    args.func(args)
  File "/users/geoff/.local/selenium_test/lib/python2.6/site-packages/py2pack/__init__.py", line 155, in generate
    _augment_data_from_tarball(args, tarball_file[0], data)
  File "/users/geoff/.local/selenium_test/lib/python2.6/site-packages/py2pack/__init__.py", line 115, in _augment_data_from_tarball
    with tarfile.open(filename) as f:
AttributeError: 'TarFile' object has no attribute '__exit__'
toabctl commented 8 years ago

py2pack only supports python >= 2.7