Bug 1728071 - python-cornice-sphinx fails to build with Python 3.8
Summary: python-cornice-sphinx fails to build with Python 3.8
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python-cornice-sphinx
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Randy Barlow
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON38 1728055
TreeView+ depends on / blocked
 
Reported: 2019-07-08 23:39 UTC by Miro Hrončok
Modified: 2019-08-24 18:23 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-24 18:23:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github Cornices cornice.ext.sphinx issues 22 0 None None None 2019-07-15 09:22:35 UTC

Description Miro Hrončok 2019-07-08 23:39:46 UTC
python-cornice-sphinx fails to build with Python 3.8.0b2.

+ nosetests-3 --exclude test_string_validator_resolved
E..
======================================================================
ERROR: test_dummy (tests.TestServiceDirective)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/cornice.ext.sphinx-0.3/tests/__init__.py", line 39, in test_dummy
    ret = self.directive.run()
  File "/builddir/build/BUILD/cornice.ext.sphinx-0.3/cornice_sphinx/__init__.py", line 101, in run
    return [self._render_service(s) for s in services]
  File "/builddir/build/BUILD/cornice.ext.sphinx-0.3/cornice_sphinx/__init__.py", line 101, in <listcomp>
    return [self._render_service(s) for s in services]
  File "/builddir/build/BUILD/cornice.ext.sphinx-0.3/cornice_sphinx/__init__.py", line 216, in _render_service
    DocFieldTransformer(self).transform_all(node)
  File "/usr/lib/python3.8/site-packages/sphinx/util/docfields.py", line 252, in __init__
    self.typemap = directive.get_field_type_map()
AttributeError: 'ServiceDirective' object has no attribute 'get_field_type_map'

----------------------------------------------------------------------
Ran 3 tests in 0.377s


I'm not sure but I think this is a Sphinx 2.1 related failure.

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.8/fedora-rawhide-x86_64/00964889-python-cornice-sphinx/

For all our attempts to build python-cornice-sphinx with Python 3.8, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.8/package/python-cornice-sphinx/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.8:
https://copr.fedorainfracloud.org/coprs/g/python/python3.8/

Let us know here if you have any questions.

Comment 1 Ben Cotton 2019-08-13 16:52:16 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 2 Ben Cotton 2019-08-13 19:02:35 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 3 Miro Hrončok 2019-08-14 22:24:30 UTC
The coordinated rebuild of Python 3.8 has started in the `f32-python` side tag.

If you figure out how to rebuild this package, please don't rebuild it in regular rawhide, but use the side tag instead:

    on branch master:
    $ fedpkg build --target=f32-python

To wait for a build to show up in the side tag, do:

    $ koji wait-repo f32-python --build=<nvr>

Where <nvr> is name-version-release of the source package, e.g. python-foo-1.1-2.fc32.

An updated mock config is posted at:
http://copr.fedorainfracloud.org/coprs/g/python/python3.8/

Note that it will take a while before the essential packages are rebuilt, so don't expect all your dependencies to be available right away.

Thanks. Let us know if you need up to date info, or if you have any questions.



PS this message is mass posted to all the bugs that block the PYTHON38 bug. If this is also a Fedora 31 FTBFS bug and you manage to fix it, you can do a f31 build as usual:

    on branch f31:
    $ fedpkg build

Comment 4 Miro Hrončok 2019-08-21 16:35:15 UTC
The f32-python side tag has been merged. In order to rebuild the package, do it in regular rawhide, but please wait until python3-3.8 is tagged:

  $ koji wait-repo f32-build --build python3-3.8.0~b3-3.fc32


If your built already started in f32-python, after it is finished, please tag it to rawhide with:

  $ koji tag-build f32-pending <nvr>

For example:

  $ koji tag-build f32-pending libreoffice-6.3.0.4-3.fc32

Thanks!

(This comment is mass posted to all bugzillas blocking the PYTHON38 tracking bug.)

Comment 5 Miro Hrončok 2019-08-21 17:29:18 UTC
(Python 3.8 has landed in the rawhide buildroot.)

Comment 6 Kevin Fenzi 2019-08-24 18:23:19 UTC
This seems to build ok now: 
https://koji.fedoraproject.org/koji/buildinfo?buildID=1359209


Note You need to log in before you can comment on or make changes to this bug.