Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#47136 closed defect (fixed)

py-sphinx: missing dependency on py-babel

Reported by: cdeil (Christoph Deil) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: jmroot (Joshua Root), michel.sylvan@…
Port: py-sphinx

Description

py-sphinx 1.3 now depends on py-babel:

https://github.com/sphinx-doc/sphinx/blob/master/setup.py#L54

$ python -c 'import sphinx.application'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/sphinx/application.py", line 37, in <module>
    from sphinx.builders import BUILTIN_BUILDERS
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/sphinx/builders/__init__.py", line 23, in <module>
    from sphinx.util import i18n, path_stabilize
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/sphinx/util/i18n.py", line 15, in <module>
    from babel.messages.pofile import read_po
ImportError: No module named 'babel'

I think it must be added as a dependency in Macports.

Change History (3)

comment:1 Changed 10 years ago by cdeil (Christoph Deil)

And it looks like alabaster is a hard dependency now?

$ python -c 'import sphinx.ext.intersphinx'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/sphinx/ext/intersphinx.py", line 41, in <module>
    from sphinx.builders.html import INVENTORY_FILENAME
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/sphinx/builders/html.py", line 37, in <module>
    from sphinx.theming import Theme
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/sphinx/theming.py", line 29, in <module>
    import alabaster
ImportError: No module named 'alabaster'

Now I think this issue is the same (or at least related to #47124) ... more generally, Sphinx has now more dependencies that weren't declared in the Macports update to 1.3:

https://github.com/sphinx-doc/sphinx/blob/master/setup.py#L48

requires = [
    'six>=1.4',
    'Jinja2>=2.3',
    'Pygments>=2.0',
    'docutils>=0.11',
    'snowballstemmer>=1.1',
    'babel>=1.3',
    'alabaster>=0.7,<0.8',
    'sphinx_rtd_theme>=0.1,<0.2',
]

comment:2 Changed 10 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

comment:3 Changed 10 years ago by cdeil (Christoph Deil)

Somehow this change doesn't trigger an update for me ... do you need to increase some revision number?

Note: See TracTickets for help on using tickets.