[CentOS-devel] Sphinx - Warnings treated as errors

Fri Jan 24 12:24:08 UTC 2020
Alfredo Moralejo Alonso <amoralej at redhat.com>

On Fri, Jan 24, 2020 at 1:16 PM Neale Ferguson <neale at sinenomine.net> wrote:

> Thanks for the pointers.
>
> The most recent openstack-macros we built is
> openstack-macros-2018.1.2-0.el7. It is quite different to the one in the
> URL you provided:
>
>
>
> %py_req_cleanup() \
>
> sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg \
>
> rm -rf *requirements.txt \
>
> %nil
>
>
>
> This appears to be part of openstack-macros-2019. I can’t see this file in
> the vault. I will grab it from elsewhere and give it a go.
>

You can get it from https://cbs.centos.org/koji/buildinfo?buildID=25233



>
>
> Neale
>
>
>
>
>
>
>
> When using "%{pyver_bin} setup.py build_sphinx -b html", warning iserror
> is taken from a parameter in setup.cfg:
>
>
>
> https://github.com/openstack/oslo.reports/blob/stable/train/setup.cfg#L42
>
>
>
> It's enabled there. However, in RDO, we disable it with macro
> py_req_cleanup:
>
>
>
>
> https://github.com/openstack/rpm-packaging/blob/stable/train/openstack/openstack-macros/macros.openstack-rdo#L22
>
>
>
> Are you using the updated version of openstack-macros?, can you check how
> py_req_cleanup is defined?
>
>
>
> _______________________________________________
> CentOS-devel mailing list
> CentOS-devel at centos.org
> https://lists.centos.org/mailman/listinfo/centos-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos-devel/attachments/20200124/5439f782/attachment-0007.html>