-
-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.6.3: test suite is failing under some (undefined/untested?) environments #576
Comments
This looks suspiciously similar to #485 / #508 / #530... But nobody was able to provide a stable reproducer so far and guess what are the conditions of such behavior. As for pointers, I see you run The test and build processes we have are discoverable @ https://github.com/aio-libs/yarl/blob/master/.github/workflows/ci.yml. I don't have any more pointers without a reproducer, closing. |
I don't see that :/ [tkloczko@barrel SPECS]$ cat /usr/bin/pytest
#!/usr/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'pytest==6.2.4','console_scripts','pytest'
__requires__ = 'pytest==6.2.4'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
load_entry_point('pytest==6.2.4', 'console_scripts', 'pytest')()
) and to be honest I'm using on building my rpm packages
Recently doing yet another iteration of some cleanups of all my python modules packages I fould that there are many python modules which are producin DSO loadable module like yarl and probably oin all those cases pytest is failg because DSO module cannot be found. |
BTW. I think that in yarl it is some small issue in setuptools files. + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s'
**********************
* Accellerated build *
**********************
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/yarl
copying yarl/__init__.py -> build/lib.linux-x86_64-3.8/yarl
copying yarl/_quoting.py -> build/lib.linux-x86_64-3.8/yarl
copying yarl/_quoting_py.py -> build/lib.linux-x86_64-3.8/yarl
copying yarl/_url.py -> build/lib.linux-x86_64-3.8/yarl
running egg_info
creating yarl.egg-info
writing yarl.egg-info/PKG-INFO
writing dependency_links to yarl.egg-info/dependency_links.txt
writing requirements to yarl.egg-info/requires.txt
writing top-level names to yarl.egg-info/top_level.txt
writing manifest file 'yarl.egg-info/SOURCES.txt'
reading manifest file 'yarl.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'yarl/*.c'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.cache' found anywhere in distribution
warning: no previously-included files found matching 'yarl/*.html'
warning: no previously-included files found matching 'yarl/*.so'
warning: no previously-included files found matching 'yarl/*.pyd'
no previously-included directories found matching 'docs/_build'
writing manifest file 'yarl.egg-info/SOURCES.txt'
copying yarl/__init__.pyi -> build/lib.linux-x86_64-3.8/yarl
copying yarl/_quoting_c.pyi -> build/lib.linux-x86_64-3.8/yarl
copying yarl/_quoting_c.pyx -> build/lib.linux-x86_64-3.8/yarl
copying yarl/py.typed -> build/lib.linux-x86_64-3.8/yarl
running build_ext
building 'yarl._quoting_c' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/yarl
/usr/bin/gcc -pthread -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fPIC -I/usr/include/python3.8 -c yarl/_quoting_c.c -o build/temp.linux-x86_64-3.8/yarl/_quoting_c.o
cc1: fatal error: yarl/_quoting_c.c: No such file or directory
compilation terminated.
error: command '/usr/bin/gcc' failed with exit status 1 IIRC yarl is only my package which requires manual cython execution before actual |
^ this script is only used if you invoke
(which includes This sort of invocation makes
This is intentional.
I think aiohttp is now configured similarly too. FWIW. It is strongly recommended to test as installed into site-packages and not rely on some Git checkout structure because some files present there will not be included in the dist and in the install meaning that you'd be testing the wrong thing. |
[..]
Just checked my python-aiohttp.spec and it doesn't: # BUG: test suite is failing https://github.com/aio-libs/aiohttp/issues/5626
%bcond_with check
Summary: Python HTTP client/server for asyncio
Name: python-aiohttp
Version: 3.7.4.post0
Release: 2.2%{?dist}
License: ASL-2.0 (https://www.apache.org/licenses/LICENSE-2.0)
URL: https://github.com/aio-libs/aiohttp/
VCS: https://github.com/aio-libs/aiohttp/
Source0: %{VCS}/archive/v%{version}/%{name}-%{version}.tar.gz
Patch00: %{name}-unbundle-http-parser.patch
Patch01: %{VCS}/commit/942c1b80.patch#/%{name}-Make-pytest-ignore-resource-warnings.patch
BuildRequires: gcc
BuildRequires: http-parser-devel
BuildRequires: python3-devel
BuildRequires: python3dist(cython)
BuildRequires: python3dist(setuptools)
# CheckRequires:
BuildRequires: python3dist(async-timeout)
BuildRequires: python3dist(multidict)
BuildRequires: python3dist(re-assert)
BuildRequires: python3dist(yarl)
Obsoletes: python3-aiohttp
Recommends: python3dist(aiodns)
%define debug_package %{nil}
%description
Python HTTP client/server for asyncio which supports both the client and the
server side of the HTTP protocol, client and server websocket, and webservers
with middlewares and pluggable routing.
%prep
%autosetup -p1 -n aiohttp-%{version}
%build
%py3_build
%install
%py3_install
%check
%{!?with_check:exit 0}
%pytest
%files
%{python3_sitearch}/aiohttp
%{python3_sitearch}/aiohttp-*.egg-info So
I'm not relaying on git checkout. I'm using github tar ball autogenerated from git tag. # BUG: build fails because .c files are not generated https://github.com/aio-libs/yarl/issues/610
Summary: Python module to handle URLs
Name: python-yarl
Version: 1.6.3
Release: 6%{?dist}
License: ASL-2.0 (https://www.apache.org/licenses/LICENSE-2.0)
URL: https://yarl.readthedocs.io/
VCS: https://github.com/aio-libs/yarl/
Source0: %{VCS}/archive/v%{version}/%{name}-%{version}.tar.gz
Patch00: %{name}-man3_level.patch
#Patch01: %{VCS}/commit/47eabc56.patch#/%{name}-Drop-tests-for-semicolon-as-a-separator.patch
BuildRequires: gcc
BuildRequires: python3-devel
BuildRequires: python3dist(cython)
BuildRequires: python3dist(idna)
BuildRequires: python3dist(multidict)
BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(sphinx)
# CheckRequires:
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(pytest-cov)
BuildRequires: python3dist(pytest-runner)
Obsoletes: python3-yarl
%description
The module provides handy URL class for URL parsing and changing.
%prep
%autosetup -p1 -n yarl-%{version}
%build
%__python3 -m cython -3 -o yarl/_quoting_c.c yarl/_quoting_c.pyx -I yarl
%py3_build
%py3_build_sphinx_man
%install
%py3_install
%__install build/sphinx/man/*.3 -Dt %{buildroot}%{_mandir}/man3
%check
%pytest -q
%files
%{_mandir}/man3/*
%{python3_sitearch}/yarl
%{python3_sitearch}/yarl-*.egg-info With 47eabc5 commit test suite is OK (without it fails). [tkloczko@barrel SPECS]$ rpmbuild -ba --with check --with failing_tests python-yarl.spec
warning: Downloading https://github.com/aio-libs/yarl//archive/v1.6.3/python-yarl-1.6.3.tar.gz to /home/tkloczko/rpmbuild/SOURCES/python-yarl-1.6.3.tar.gz
warning: Downloading https://github.com/aio-libs/yarl//commit/47eabc56.patch#/python-yarl-Drop-tests-for-semicolon-as-a-separator.patch to /home/tkloczko/rpmbuild/SOURCES/python-yarl-Drop-tests-for-semicolon-as-a-separator.patch
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.dYjHid
+ umask 022
+ cd /home/tkloczko/rpmbuild/BUILD
+ cd /home/tkloczko/rpmbuild/BUILD
+ rm -rf yarl-1.6.3
+ /usr/bin/gzip -dc /home/tkloczko/rpmbuild/SOURCES/python-yarl-1.6.3.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd yarl-1.6.3
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/cat /home/tkloczko/rpmbuild/SOURCES/python-yarl-man3_level.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
+ /usr/bin/cat /home/tkloczko/rpmbuild/SOURCES/python-yarl-Drop-tests-for-semicolon-as-a-separator.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.85T73S
+ umask 022
+ cd /home/tkloczko/rpmbuild/BUILD
+ cd yarl-1.6.3
+ /usr/bin/python3 -m cython -3 -o yarl/_quoting_c.c yarl/_quoting_c.pyx -I yarl
+ CFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none'
+ CXXFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none'
+ FFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -I/usr/lib64/gfortran/modules'
+ FCFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -I/usr/lib64/gfortran/modules'
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin'
+ CC=/usr/bin/gcc
+ CXX=/usr/bin/g++
+ FC=/usr/bin/gfortran
+ AR=/usr/bin/gcc-ar
+ NM=/usr/bin/gcc-nm
+ RANLIB=/usr/bin/gcc-ranlib
+ export CFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS CC CXX FC AR NM RANLIB
+ PBR_VERSION=1.6.3
+ SETUPTOOLS_SCM_PRETEND_VERSION=1.6.3
+ /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s'
**********************
* Accellerated build *
**********************
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/yarl
copying yarl/__init__.py -> build/lib.linux-x86_64-3.8/yarl
copying yarl/_quoting.py -> build/lib.linux-x86_64-3.8/yarl
copying yarl/_quoting_py.py -> build/lib.linux-x86_64-3.8/yarl
copying yarl/_url.py -> build/lib.linux-x86_64-3.8/yarl
running egg_info
creating yarl.egg-info
writing yarl.egg-info/PKG-INFO
writing dependency_links to yarl.egg-info/dependency_links.txt
writing requirements to yarl.egg-info/requires.txt
writing top-level names to yarl.egg-info/top_level.txt
writing manifest file 'yarl.egg-info/SOURCES.txt'
listing git files failed - pretending there aren't any
reading manifest file 'yarl.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.cache' found anywhere in distribution
warning: no previously-included files found matching 'yarl/*.html'
warning: no previously-included files found matching 'yarl/*.so'
warning: no previously-included files found matching 'yarl/*.pyd'
no previously-included directories found matching 'docs/_build'
adding license file 'LICENSE'
writing manifest file 'yarl.egg-info/SOURCES.txt'
copying yarl/__init__.pyi -> build/lib.linux-x86_64-3.8/yarl
copying yarl/_quoting_c.c -> build/lib.linux-x86_64-3.8/yarl
copying yarl/_quoting_c.pyi -> build/lib.linux-x86_64-3.8/yarl
copying yarl/_quoting_c.pyx -> build/lib.linux-x86_64-3.8/yarl
copying yarl/py.typed -> build/lib.linux-x86_64-3.8/yarl
running build_ext
building 'yarl._quoting_c' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/yarl
/usr/bin/gcc -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fPIC -I/usr/include/python3.8 -c yarl/_quoting_c.c -o build/temp.linux-x86_64-3.8/yarl/_quoting_c.o
/usr/bin/gcc -shared -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none build/temp.linux-x86_64-3.8/yarl/_quoting_c.o -L/usr/lib64 -o build/lib.linux-x86_64-3.8/yarl/_quoting_c.cpython-38-x86_64-linux-gnu.so
+ PBR_VERSION=1.6.3
+ SETUPTOOLS_SCM_PRETEND_VERSION=1.6.3
+ SPHINXOPTS=-j48
+ /usr/bin/python3 setup.py build_sphinx -b man --build-dir build/sphinx
**********************
* Accellerated build *
**********************
running build_sphinx
Running Sphinx v4.2.0
Initializing Spelling Checker 7.2.1
making output directory... done
loading intersphinx inventory from https://docs.python.org/objects.inv...
intersphinx inventory has moved: https://docs.python.org/objects.inv -> https://docs.python.org/3/objects.inv
building [mo]: targets for 0 po files that are out of date
building [man]: all manpages
updating environment: [new config] 2 added, 0 changed, 0 removed
reading sources... [100%] index
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
writing... python-yarl.3 { api } done
build succeeded.
The manual pages are in build/sphinx/man.
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.G6R7BH
+ umask 022
+ cd /home/tkloczko/rpmbuild/BUILD
+ '[' /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64 '!=' / ']'
+ rm -rf /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64
+ /usr/bin/mkdir -p /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64
+ cd yarl-1.6.3
+ CFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none'
+ CXXFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none'
+ FFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -I/usr/lib64/gfortran/modules'
+ FCFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -I/usr/lib64/gfortran/modules'
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin'
+ CC=/usr/bin/gcc
+ CXX=/usr/bin/g++
+ FC=/usr/bin/gfortran
+ AR=/usr/bin/gcc-ar
+ NM=/usr/bin/gcc-nm
+ RANLIB=/usr/bin/gcc-ranlib
+ export CFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS CC CXX FC AR NM RANLIB
+ PBR_VERSION=1.6.3
+ SETUPTOOLS_SCM_PRETEND_VERSION=1.6.3
+ /usr/bin/python3 setup.py install -O1 --skip-build --root /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64
**********************
* Accellerated build *
**********************
running install
running install_lib
creating /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr
creating /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64
creating /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8
creating /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages
creating /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages/yarl
copying build/lib.linux-x86_64-3.8/yarl/__init__.py -> /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages/yarl
copying build/lib.linux-x86_64-3.8/yarl/_quoting.py -> /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages/yarl
copying build/lib.linux-x86_64-3.8/yarl/_quoting_py.py -> /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages/yarl
copying build/lib.linux-x86_64-3.8/yarl/_url.py -> /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages/yarl
copying build/lib.linux-x86_64-3.8/yarl/__init__.pyi -> /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages/yarl
copying build/lib.linux-x86_64-3.8/yarl/_quoting_c.c -> /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages/yarl
copying build/lib.linux-x86_64-3.8/yarl/_quoting_c.pyi -> /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages/yarl
copying build/lib.linux-x86_64-3.8/yarl/_quoting_c.pyx -> /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages/yarl
copying build/lib.linux-x86_64-3.8/yarl/py.typed -> /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages/yarl
copying build/lib.linux-x86_64-3.8/yarl/_quoting_c.cpython-38-x86_64-linux-gnu.so -> /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages/yarl
byte-compiling /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages/yarl/__init__.py to __init__.cpython-38.pyc
byte-compiling /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages/yarl/_quoting.py to _quoting.cpython-38.pyc
byte-compiling /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages/yarl/_quoting_py.py to _quoting_py.cpython-38.pyc
byte-compiling /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages/yarl/_url.py to _url.cpython-38.pyc
writing byte-compilation script '/tmp/tmpsycxu4ut.py'
/usr/bin/python3 /tmp/tmpsycxu4ut.py
removing /tmp/tmpsycxu4ut.py
running install_egg_info
running egg_info
writing yarl.egg-info/PKG-INFO
writing dependency_links to yarl.egg-info/dependency_links.txt
writing requirements to yarl.egg-info/requires.txt
writing top-level names to yarl.egg-info/top_level.txt
listing git files failed - pretending there aren't any
reading manifest file 'yarl.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.cache' found anywhere in distribution
warning: no previously-included files found matching 'yarl/*.html'
warning: no previously-included files found matching 'yarl/*.so'
warning: no previously-included files found matching 'yarl/*.pyd'
no previously-included directories found matching 'docs/_build'
adding license file 'LICENSE'
writing manifest file 'yarl.egg-info/SOURCES.txt'
Copying yarl.egg-info to /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages/yarl-1.6.3-py3.8.egg-info
running install_scripts
+ /usr/bin/rm -rfv /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/bin/__pycache__
+ /usr/bin/install build/sphinx/man/python-yarl.3 -Dt /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/share/man/man3
+ /usr/bin/find-debuginfo -j48 --strict-build-id -m -i --build-id-seed 1.6.3-6.fc35 --unique-debug-suffix -1.6.3-6.fc35.x86_64 --unique-debug-src-base python-yarl-1.6.3-6.fc35.x86_64 --run-dwz --dwz-low-mem-die-limit none --dwz-max-die-limit 110000000 -S debugsourcefiles.list /home/tkloczko/rpmbuild/BUILD/yarl-1.6.3
extracting debug info from /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages/yarl/_quoting_c.cpython-38-x86_64-linux-gnu.so
original debug info size: 412kB, size after compression: 400kB
/usr/bin/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match.
890 blocks
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ '[' -f /usr/bin/python3 ']'
+ PYTHONPATH=/usr/lib/rpm/redhat
+ PYTHONHASHSEED=0
+ /usr/bin/python3 -sBm compileall2 -f -j48 -o 0 -o 1 -o 2 -s /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64 -p / /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib/python3.8/site-packages
Listing '/home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages'...
Listing '/home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages/yarl'...
Compiling '/home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages/yarl/__init__.py'...
Listing '/home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages/yarl-1.6.3-py3.8.egg-info'...
Compiling '/home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages/yarl/_quoting.py'...
Compiling '/home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages/yarl/_url.py'...
Compiling '/home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages/yarl/_quoting_py.py'...
Listing '/home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib/python3.8/site-packages'...
Can't list '/home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib/python3.8/site-packages'
+ /usr/lib/rpm/check-rpaths
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.P8f6Vk
+ umask 022
+ cd /home/tkloczko/rpmbuild/BUILD
+ cd yarl-1.6.3
+ CFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none'
+ CXXFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none'
+ FFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -I/usr/lib64/gfortran/modules'
+ FCFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -I/usr/lib64/gfortran/modules'
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin'
+ CC=/usr/bin/gcc
+ CXX=/usr/bin/g++
+ FC=/usr/bin/gfortran
+ AR=/usr/bin/gcc-ar
+ NM=/usr/bin/gcc-nm
+ RANLIB=/usr/bin/gcc-ranlib
+ export CFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS CC CXX FC AR NM RANLIB
+ PATH=/home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbin
+ PYTHONDONTWRITEBYTECODE=1
+ SETUPTOOLS_SCM_PRETEND_VERSION=1.6.3
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -q
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.12, pytest-6.2.5, py-1.10.0, pluggy-0.13.1
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
Using --randomly-seed=3015261035
rootdir: /home/tkloczko/rpmbuild/BUILD/yarl-1.6.3, configfile: setup.cfg, testpaths: tests/
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, aspectlib-1.5.2, toolbox-0.5, rerunfailures-9.1.1, requests-mock-1.9.3, cov-2.12.1, flaky-3.7.0, benchmark-3.4.1, xdist-2.3.0, pylama-7.7.1, datadir-1.3.1, regressions-2.2.0, xprocess-0.18.1, black-0.3.12, asyncio-0.15.1, subtests-0.5.0, isort-2.0.0, hypothesis-6.14.6, mock-3.6.1, profiling-1.7.0, randomly-3.8.0, nose2pytest-1.0.8, pyfakefs-4.5.1, tornado-0.8.1, twisted-1.13.3, aiohttp-0.3.0, localserver-0.5.0, anyio-3.3.1, trio-0.7.0, cases-3.6.4, yagot-0.5.0, Faker-8.14.0
collected 1006 items
tests/test_url_query.py ......... [ 0%]
tests/test_cached_property.py ... [ 1%]
tests/test_pickle.py .. [ 1%]
tests/test_url_build.py .............................. [ 4%]
tests/test_url_update_netloc.py .................................. [ 7%]
tests/test_url.py .................................................................................................................................................. [ 22%]
................................................................................................... [ 32%]
tests/test_update_query.py ......................................................................... [ 39%]
tests/test_normalize_path.py ............... [ 40%]
tests/test_url_cmp_and_hash.py .............. [ 42%]
tests/test_quoting.py ....................................................x.............................x........................................................... [ 56%]
.................................................................................................................................................................... [ 72%]
.................................................................................................................................................................... [ 88%]
........................................ [ 92%]
tests/test_cache.py ..... [ 93%]
tests/test_url_parsing.py .................................................................. [100%]Coverage.py warning: No data was collected. (no-data-collected)
---------- coverage: platform linux, python 3.8.12-final-0 -----------
Name Stmts Miss Cover
-----------------------------------------
yarl/__init__.py 3 3 0%
yarl/_quoting.py 10 10 0%
yarl/_quoting_py.py 155 155 0%
yarl/_url.py 569 569 0%
-----------------------------------------
TOTAL 737 737 0%
========================================================================= short test summary info ==========================================================================
XFAIL tests/test_quoting.py::test_unquoting_invalid_utf8_sequence[py_unquoter]
XFAIL tests/test_quoting.py::test_unquoting_invalid_utf8_sequence[c_unquoter]
===================================================================== 1004 passed, 2 xfailed in 4.86s ======================================================================
pytest-xprocess reminder::Be sure to terminate the started process by running 'pytest --xkill' if you have not explicitly done so in your fixture with 'xprocess.getinfo(<process_name>).terminate()'.
+ RPM_EC=0
++ jobs -p
+ exit 0
Processing files: python-yarl-1.6.3-6.fc35.x86_64
Provides: python-yarl = 1.6.3-6.fc35 python-yarl(x86-64) = 1.6.3-6.fc35 python3.8dist(yarl) = 1.6.3 python3dist(yarl) = 1.6.3
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.4)(64bit) python(abi) = 3.8 python3.8dist(idna) >= 2 python3.8dist(multidict) >= 4 rtld(GNU_HASH)
Obsoletes: python3-yarl
Processing files: python-yarl-debugsource-1.6.3-6.fc35.x86_64
Provides: python-yarl-debugsource = 1.6.3-6.fc35 python-yarl-debugsource(x86-64) = 1.6.3-6.fc35
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Processing files: python-yarl-debuginfo-1.6.3-6.fc35.x86_64
Provides: debuginfo(build-id) = e05d9e744fdb659c8e4301507dedbc05bc8442e8 python-yarl-debuginfo = 1.6.3-6.fc35 python-yarl-debuginfo(x86-64) = 1.6.3-6.fc35
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Recommends: python-yarl-debugsource(x86-64) = 1.6.3-6.fc35
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64
Wrote: /home/tkloczko/rpmbuild/SRPMS/python-yarl-1.6.3-6.fc35.src.rpm
Wrote: /home/tkloczko/rpmbuild/RPMS/python-yarl-debuginfo-1.6.3-6.fc35.x86_64.rpm
Wrote: /home/tkloczko/rpmbuild/RPMS/python-yarl-debugsource-1.6.3-6.fc35.x86_64.rpm
Wrote: /home/tkloczko/rpmbuild/RPMS/python-yarl-1.6.3-6.fc35.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.9974pX
+ umask 022
+ cd /home/tkloczko/rpmbuild/BUILD
+ cd yarl-1.6.3
+ /usr/bin/rm -rf /home/tkloczko/rpmbuild/BUILDROOT/python-yarl-1.6.3-6.fc35.x86_64
+ RPM_EC=0
++ jobs -p
+ exit 0 |
The library doesn't require Cython for installation from sources. P.S. The next yarl release will publish the proper tarball on both PyPI and GitHub release artifacts. |
I'm trying to package yarl into rpm package ans I found some problem with executilb test suite.
On testting I'm using my
%pytest
macro which is unrolled to:That macro is working in case +200 other python modules however on testing yarl:
All that despite fact that yarl fiels are present in directory on which points $PYTHONPATH`
May I ask fo some hints/advices?
The text was updated successfully, but these errors were encountered: