Page MenuHomeSolus

python-babel: update to 2.4.0 and enable py3
ClosedPublic

Authored by joebonrichie on May 28 2017, 1:11 AM.

Details

Summary

This is a required rundep of sphinx. Python 3 support was needed for sphinx py3.

Test Plan

building documentation with sphinx is successful

Diff Detail

Repository
R2556 python-babel
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

joebonrichie created this revision.May 28 2017, 1:11 AM
Justin added a subscriber: Justin.May 31 2017, 2:49 AM
Justin requested changes to this revision.May 31 2017, 2:52 AM

solbuild failed:

running import_cldr
Traceback (most recent call last):

File "/home/build/YPKG/root/python-babel/build/babel-2.3.4/scripts/import_cldr.py", line 33, in <module>
  from babel import dates, numbers
File "/home/build/YPKG/root/python-babel/build/babel-2.3.4/babel/dates.py", line 23, in <module>
  import pytz as _pytz

ImportError: No module named 'pytz'
Traceback (most recent call last):

File "scripts/download_import_cldr.py", line 104, in <module>
  main()
File "scripts/download_import_cldr.py", line 100, in main
  common_path])
File "/usr/lib/python3.5/subprocess.py", line 581, in check_call
  raise CalledProcessError(retcode, cmd)

subprocess.CalledProcessError: Command '['/usr/bin/python3', '/home/build/YPKG/root/python-babel/build/babel-2.3.4/scripts/import_cldr.py', '/home/build/YPKG/root/python-babel/build/babel-2.3.4/cldr/core-28/common']' returned non-zero exit status 1
Traceback (most recent call last):

File "setup.py", line 94, in <module>
  """
File "/usr/lib/python3.5/distutils/core.py", line 148, in setup
  dist.run_commands()
File "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands
  self.run_command(cmd)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
  cmd_obj.run()
File "setup.py", line 27, in run
  subprocess.check_call([sys.executable, 'scripts/download_import_cldr.py'])
File "/usr/lib/python3.5/subprocess.py", line 581, in check_call
  raise CalledProcessError(retcode, cmd)

subprocess.CalledProcessError: Command '['/usr/bin/python3', 'scripts/download_import_cldr.py']' returned non-zero exit status 1
Command '['/bin/bash', '--norc', '--noprofile', '/tmp/ypkg-buildtt3nRM']' returned non-zero exit status 1
[Build] build failed

This revision now requires changes to proceed.May 31 2017, 2:52 AM

Added an updated python-pytz built with py3 to the stack.

joebonrichie updated this revision to Diff 601.May 31 2017, 1:54 PM
joebonrichie edited edge metadata.
joebonrichie retitled this revision from python-babel: enable python3 support to python-babel: update to 2.4.0 and enable py3.

Updated babel to 2.4.0

Should be good to go now, sorry for the inconvenience.

Justin accepted this revision.Jun 15 2017, 3:51 AM

LGTM, thanks.

This revision is now accepted and ready to land.Jun 15 2017, 3:51 AM
Justin requested changes to this revision.Jun 15 2017, 3:57 AM
Justin added inline comments.
package.yml
19

You've removed core.zip from the sources so this is no longer working.

This revision now requires changes to proceed.Jun 15 2017, 3:57 AM
joebonrichie edited edge metadata.

Readded cldr to sources (derp) and updated it to version 29

Justin accepted this revision.Jul 2 2017, 2:37 AM

Looks good thanks.

This revision is now accepted and ready to land.Jul 2 2017, 2:37 AM
This revision was automatically updated to reflect the committed changes.