openSUSE / py2pack

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

SyntaxError: invalid syntax #26

Closed toabctl closed 8 years ago

toabctl commented 9 years ago

$ py2pack generate -f python-elasticsearch.spec elasticsearch generating spec file for elasticsearch... Traceback (most recent call last): File "/usr/bin/py2pack", line 22, in main() File "/usr/lib/python2.7/site-packages/py2pack/init.py", line 255, in main args.func(args) File "/usr/lib/python2.7/site-packages/py2pack/init.py", line 155, in generate _augment_data_from_tarball(args, tarball_file[0], data) File "/usr/lib/python2.7/site-packages/py2pack/init.py", line 117, in _augment_data_from_tarball _parse_setup_py(f.extractfile(setup_filename), data) File "/usr/lib/python2.7/site-packages/py2pack/init.py", line 104, in _parse_setup_py data["install_requires"] = eval(match.group(1)) File "", line 4 tests_require = [ ^ SyntaxError: invalid syntax

coogor commented 9 years ago

Why dont you use https://build.opensuse.org/package/view_file/devel:languages:python/elasticsearch/elasticsearch.spec?expand=1 ? Of course that does not fix the error, but gives you a spec...

toabctl commented 9 years ago

Why dont you use https://build.opensuse.org/package/view_file/devel:languages:python/elasticsearch/elasticsearch.spec?expand=1 ? Of course that does not fix the error, but gives you a spec...

I want the python bindings, not the daemon itself.

white-hat commented 9 years ago

BTW latest fpm with latest pip do the trick

aspiers commented 8 years ago

This is almost certainly the same issue as #41; please take a look there and see if the proposed pull request #42 helps you understand what's going wrong.

toabctl commented 8 years ago

Works with latest commit 54e5358560363ee1377f972dcf9a704ffe2efadf