Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 523180 - dev-python/google-apputils-0.4.0: new package
Summary: dev-python/google-apputils-0.4.0: new package
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 521406
  Show dependency tree
 
Reported: 2014-09-19 02:37 UTC by Paweł Hajdan, Jr. (RETIRED)
Modified: 2014-09-30 05:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
google-apputils-0.4.0.ebuild (google-apputils-0.4.0.ebuild,510 bytes, text/plain)
2014-09-19 02:37 UTC, Paweł Hajdan, Jr. (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2014-09-19 02:37:02 UTC
Created attachment 385086 [details]
google-apputils-0.4.0.ebuild

I created an ebuild for dev-python/google-apputils-0.4.0

Can it be added to the tree as part of python herd?

I'd need that for protobuf-2.6.0 .
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2014-09-29 04:35:33 UTC
PYTHON_COMPAT=( python{2_6,2_7} )

ugh  py2.6 is deprecated and py3 is the hero of the present and future.  Why no py3 support???
Comment 2 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2014-09-29 07:59:41 UTC
(In reply to Ian Delaney from comment #1)
> PYTHON_COMPAT=( python{2_6,2_7} )
> 
> ugh  py2.6 is deprecated and py3 is the hero of the present and future.  Why
> no py3 support???

It seems upstream doesn't support it. I don't mind anyone adding it after the initial version of the package is checked in, it's just this package is a dependency of protobuf-2.6.0.

running install_scripts
  File "/usr/lib64/python3.3/site-packages/google/apputils/file_util.py", line 45
    def Write(filename, contents, overwrite_existing=True, mode=0666, gid=None):
                                                                   ^
SyntaxError: invalid token

  File "/usr/lib64/python3.3/site-packages/google/apputils/app.py", line 95
    print 'Try --helpfull to get a list of all flags.'
                                                     ^
SyntaxError: invalid syntax

  File "/usr/lib64/python3.3/site-packages/google/apputils/basetest.py", line 1045
    0600)
       ^
SyntaxError: invalid token

  File "/usr/lib64/python3.3/site-packages/google/apputils/run_script_module.py", line 122
    print 'Stub script %s (auto-generated). Options:' % sys.argv[0]
                                                    ^
SyntaxError: invalid syntax

  File "/usr/lib64/python3.3/site-packages/google/apputils/appcommands.py", line 290
    except app.UsageError, error:
                         ^
SyntaxError: invalid syntax
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2014-09-30 05:15:01 UTC
phajdan.jr; right seems py2 only. Packages not yet supporting py3 are now the exception. his is one. ebuild required completing.

*google-apputils-0.4.0 (30 Sep 2014)

  30 Sep 2014; Ian Delaney <idella4@gentoo.org> +google-apputils-0.4.0.ebuild,
  +metadata.xml:
  new package requestd by phajdan.jr in Bug #523180, required as a dep to
  support protobuf-2.6.0. test phase

test phase; (e)seteup.py test is unusable. Promptly d'loads everything all over again virtualenv style.  testsuite is a mixrute of .py exes and .sh exes mixed with a data .py file.  Has 2 which are expected failures, in a shell script. If anyone is inclined feel free to have them patched to be removed or skipped. I can't see it myself, but ....
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2014-09-30 05:16:13 UTC
hmm, corrected final msg
google-apputils-0.4.0 (30 Sep 2014)

  30 Sep 2014; Ian Delaney <idella4@gentoo.org> +google-apputils-0.4.0.ebuild,
  +metadata.xml:
  new package requested by phajdan.jr in Bug #523180, required as a dep to
  support protobuf-2.6.0. test phase included