repoze / repoze.sphinx.autointerface

Auto-generate Sphinx API docs from Zope interfaces
http://pypi.python.org/pypi/repoze.sphinx.autointerface
Other
8 stars 7 forks source link

update to work with newer sphinx #14

Closed freddrake closed 4 years ago

freddrake commented 4 years ago
icemac commented 4 years ago

Is there something needed for this PR to be merged?

freddrake commented 4 years ago

AFAICT, it just needs someone with write access to the repository to pay attention, and someone with release authority to make a release.

icemac commented 4 years ago

@dataflake According to PyPI you are allowed to release this package do you also have the rights to merge?

dataflake commented 4 years ago

@icemac I'm not allowed to merge, no. Ping @tseaver

freddrake commented 4 years ago

Thanks, @tseaver! I'd have been glad to update, but you were too quick!

tseaver commented 4 years ago

@freddrake Actually, I'm having trouble getting the tests to pass with any 2.x version of Sphinx (after the merge):

Test-module import failures:

Module: repoze.sphinx.tests.test_autointerface

Traceback (most recent call last):
  File "/home/tseaver/projects/repoze/src/repoze.sphinx.autointerface/.tox/py35/lib/python3.5/site-packages/repoze/sphinx/tests/test_autointerface.py", line 3, in <module>
    from .util import TestApp
  File "/home/tseaver/projects/repoze/src/repoze.sphinx.autointerface/.tox/py35/lib/python3.5/site-packages/repoze/sphinx/tests/util.py", line 11, in <module>
    from sphinx.ext.autodoc import AutoDirective
ImportError: cannot import name 'AutoDirective'

Test-modules with import problems:
  repoze.sphinx.tests.test_autointerface
Total: 0 tests, 0 failures, 1 errors and 0 skipped in 0.000 seconds.
freddrake commented 4 years ago

Ouch! I should be able to look at this sometime this week, but doesn't look like it'll be today.

tseaver commented 4 years ago

OK, thanks!

tseaver commented 4 years ago

I was going to push changes dropping Python 3.3, 3.4, and adding 3.6, 3.7, and 3.8, but will hold off until we get things passing on master.

kloczek commented 3 years ago

Is it possible to make new release with that commit?

kloczek commented 3 years ago

Just made the test packaging 0.8 + all git commits and found that pytest is failing and on first look it looks like yet another sphinx 4.0.x issue To eproduce that:

================================================================================== ERRORS ================================================================================== ____ ERROR collecting repoze/sphinx/tests/test_autointerface.py ____ ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/repoze.sphinx.autointerface-0.8/repoze/sphinx/tests/test_autointerface.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib64/python3.8/importlib/init.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) ../../BUILDROOT/python-repoze-sphinx-autointerface-0.8-20.1.fc35.x86_64/usr/lib/python3.8/site-packages/repoze/sphinx/tests/test_autointerface.py:3: in from .util import TestApp ../../BUILDROOT/python-repoze-sphinx-autointerface-0.8-20.1.fc35.x86_64/usr/lib/python3.8/site-packages/repoze/sphinx/tests/util.py:11: in from sphinx.ext.autodoc import AutoDirective E ImportError: cannot import name 'AutoDirective' from 'sphinx.ext.autodoc' (/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/init.py) ========================================================================= short test summary info ========================================================================== ERROR repoze/sphinx/tests/test_autointerface.py !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ============================================================================= 1 error in 0.37s =============================================================================

icemac commented 3 years ago

@kloczek Please see the other PRs in this repository trying to fix the problems with Sphinx 4. Any help is appreciated.