Hi, I am attempting to python-oslo-reports-1.30.0-1.el7 but Sphinx 1.8.4 is treating warnings as errors and terminating the build:
DEBUG: Warning, treated as error: DEBUG: /builddir/build/BUILD/oslo.reports-1.30.0/oslo_reports/generators/conf.py:docstring of oslo_reports.generators.conf.ConfigReportGenerator:1:duplicate object description of oslo_reports.generators.conf.ConfigReportGenerator, other instance in /builddir/build/BUILD/oslo.reports-1.30.0/doc/source/reference/api/oslo_reports.generators.rst, use :noindex: for one of them
I note from the CentOS build logs Sphinx is encountering the warnings but they are not being treated as errors. How is this behavior being changed?
Neale Ferguson
Hi,
What spec are you using to build it?, we use:
https://github.com/rdo-packages/oslo-reports-distgit/blob/train-rdo/python-o...
can't you just pull the rpms from centos repos?
Best regards,
Alfredo
On Fri, Jan 24, 2020 at 12:12 PM Neale Ferguson neale@sinenomine.net wrote:
Hi,
I am attempting to python-oslo-reports-1.30.0-1.el7 but Sphinx 1.8.4 is treating warnings as errors and terminating the build:
DEBUG: Warning, treated as error:
DEBUG: /builddir/build/BUILD/oslo.reports-1.30.0/oslo_reports/generators/conf.py:docstring of oslo_reports.generators.conf.ConfigReportGenerator:1:duplicate object description of oslo_reports.generators.conf.ConfigReportGenerator, other instance in /builddir/build/BUILD/oslo.reports-1.30.0/doc/source/reference/api/oslo_reports.generators.rst, use :noindex: for one of them
I note from the CentOS build logs Sphinx is encountering the warnings but they are not being treated as errors. How is this behavior being changed?
Neale Ferguson
CentOS-devel mailing list CentOS-devel@centos.org https://lists.centos.org/mailman/listinfo/centos-devel
The source RPM comes from the CentOS vault. I’m building it for a non-supported architecture. Sphinx 1.8.4 was also built from the vault. There was a parameter added to Sphinx to get it to ignore these type of errors but the default is not too so I am assuming there is a conf.py file somewhere in the build environment or some other means of providing that setting.
Neale Ferguson
Hi,
What spec are you using to build it?, we use:
https://github.com/rdo-packages/oslo-reports-distgit/blob/train-rdo/python-o...
can't you just pull the rpms from centos repos
On Fri, Jan 24, 2020 at 12:54 PM Neale Ferguson neale@sinenomine.net wrote:
The source RPM comes from the CentOS vault. I’m building it for a non-supported architecture. Sphinx 1.8.4 was also built from the vault. There was a parameter added to Sphinx to get it to ignore these type of errors but the default is not too so I am assuming there is a conf.py file somewhere in the build environment or some other means of providing that setting.
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/opens...
Are you using the updated version of openstack-macros?, can you check how py_req_cleanup is defined?
Neale Ferguson
Hi,
What spec are you using to build it?, we use:
https://github.com/rdo-packages/oslo-reports-distgit/blob/train-rdo/python-o...
can't you just pull the rpms from centos repos
CentOS-devel mailing list CentOS-devel@centos.org https://lists.centos.org/mailman/listinfo/centos-devel
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.
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/opens...
Are you using the updated version of openstack-macros?, can you check how py_req_cleanup is defined?
On Fri, Jan 24, 2020 at 1:16 PM Neale Ferguson neale@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/opens...
Are you using the updated version of openstack-macros?, can you check how py_req_cleanup is defined?
CentOS-devel mailing list CentOS-devel@centos.org https://lists.centos.org/mailman/listinfo/centos-devel
I built the openstack-macros-2019 RPM and now the others are building cleanly. Thanks Alfredo!
Neale