Warning: Permanently added '2620:52:3:1:dead:beef:cafe:c1da' (ED25519) to the list of known hosts. You can reproduce this build on your computer by running: sudo dnf install copr-rpmbuild /usr/bin/copr-rpmbuild --verbose --drop-resultdir --task-url https://copr.fedorainfracloud.org/backend/get-build-task/6683824-fedora-rawhide-x86_64 --chroot fedora-rawhide-x86_64 Version: 0.69 PID: 16224 Logging PID: 16225 Task: {'appstream': False, 'background': False, 'build_id': 6683824, 'buildroot_pkgs': [], 'chroot': 'fedora-rawhide-x86_64', 'enable_net': False, 'fedora_review': False, 'git_hash': 'f217996e222e8ae56a560698ec1a9ee2444a1296', 'git_repo': 'https://copr-dist-git.fedorainfracloud.org/git/thrnciar/python-requests-5b54aca4/python-gnocchiclient', 'isolation': 'default', 'memory_reqs': 2048, 'package_name': 'python-gnocchiclient', 'package_version': '7.0.8-1', 'project_dirname': 'python-requests-5b54aca4', 'project_name': 'python-requests-5b54aca4', 'project_owner': 'thrnciar', 'repo_priority': None, 'repos': [{'baseurl': 'https://download.copr.fedorainfracloud.org/results/thrnciar/python-requests-5b54aca4/fedora-rawhide-x86_64/', 'id': 'copr_base', 'name': 'Copr repository', 'priority': None}], 'sandbox': 'thrnciar/python-requests-5b54aca4--thrnciar', 'source_json': {}, 'source_type': None, 'submitter': 'thrnciar', 'tags': [], 'task_id': '6683824-fedora-rawhide-x86_64', 'timeout': 18000, 'uses_devel_repo': False, 'with_opts': [], 'without_opts': []} Running: git clone https://copr-dist-git.fedorainfracloud.org/git/thrnciar/python-requests-5b54aca4/python-gnocchiclient /var/lib/copr-rpmbuild/workspace/workdir-tn6zv5_c/python-gnocchiclient --depth 500 --no-single-branch --recursive cmd: ['git', 'clone', 'https://copr-dist-git.fedorainfracloud.org/git/thrnciar/python-requests-5b54aca4/python-gnocchiclient', '/var/lib/copr-rpmbuild/workspace/workdir-tn6zv5_c/python-gnocchiclient', '--depth', '500', '--no-single-branch', '--recursive'] cwd: . rc: 0 stdout: stderr: Cloning into '/var/lib/copr-rpmbuild/workspace/workdir-tn6zv5_c/python-gnocchiclient'... Running: git checkout f217996e222e8ae56a560698ec1a9ee2444a1296 -- cmd: ['git', 'checkout', 'f217996e222e8ae56a560698ec1a9ee2444a1296', '--'] cwd: /var/lib/copr-rpmbuild/workspace/workdir-tn6zv5_c/python-gnocchiclient rc: 0 stdout: stderr: Note: switching to 'f217996e222e8ae56a560698ec1a9ee2444a1296'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false HEAD is now at f217996 automatic import of python-gnocchiclient Running: copr-distgit-client sources /usr/bin/tail: /var/lib/copr-rpmbuild/main.log: file truncated cmd: ['copr-distgit-client', 'sources'] cwd: /var/lib/copr-rpmbuild/workspace/workdir-tn6zv5_c/python-gnocchiclient rc: 0 stdout: stderr: INFO: Reading stdout from command: git rev-parse --abbrev-ref HEAD INFO: Reading stdout from command: git rev-parse HEAD INFO: Reading sources specification file: sources INFO: Downloading gnocchiclient-7.0.8.tar.gz INFO: Reading stdout from command: curl --help all INFO: Calling: curl -H Pragma: -o gnocchiclient-7.0.8.tar.gz --location --connect-timeout 60 --retry 3 --retry-delay 10 --remote-time --show-error --fail --retry-all-errors https://copr-dist-git.fedorainfracloud.org/repo/pkgs/thrnciar/python-requests-5b54aca4/python-gnocchiclient/gnocchiclient-7.0.8.tar.gz/md5/541ac66f731b561673050f4176838a9c/gnocchiclient-7.0.8.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 156k 100 156k 0 0 1000k 0 --:--:-- --:--:-- --:--:-- 1004k INFO: Reading stdout from command: md5sum gnocchiclient-7.0.8.tar.gz Running (timeout=18000): unbuffer mock --spec /var/lib/copr-rpmbuild/workspace/workdir-tn6zv5_c/python-gnocchiclient/python-gnocchiclient.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-tn6zv5_c/python-gnocchiclient --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1700754572.688373 -r /var/lib/copr-rpmbuild/results/configs/child.cfg INFO: mock.py version 5.2 starting (python version = 3.11.3, NVR = mock-5.2-1.fc38), args: /usr/libexec/mock/mock --spec /var/lib/copr-rpmbuild/workspace/workdir-tn6zv5_c/python-gnocchiclient/python-gnocchiclient.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-tn6zv5_c/python-gnocchiclient --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1700754572.688373 -r /var/lib/copr-rpmbuild/results/configs/child.cfg Start(bootstrap): init plugins INFO: tmpfs initialized INFO: selinux enabled INFO: chroot_scan: initialized INFO: compress_logs: initialized Finish(bootstrap): init plugins Start: init plugins INFO: tmpfs initialized INFO: selinux enabled INFO: chroot_scan: initialized INFO: compress_logs: initialized Finish: init plugins INFO: Signal handler active Start: run INFO: Start(/var/lib/copr-rpmbuild/workspace/workdir-tn6zv5_c/python-gnocchiclient/python-gnocchiclient.spec) Config(fedora-rawhide-x86_64) Start: clean chroot Finish: clean chroot Mock Version: 5.2 INFO: Mock Version: 5.2 Start(bootstrap): chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1700754572.688373/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start(bootstrap): cleaning package manager metadata Finish(bootstrap): cleaning package manager metadata INFO: Guessed host environment type: unknown INFO: Using bootstrap image: registry.fedoraproject.org/fedora:rawhide INFO: Pulling image: registry.fedoraproject.org/fedora:rawhide INFO: Copy content of container registry.fedoraproject.org/fedora:rawhide to /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1700754572.688373/root INFO: Checking that registry.fedoraproject.org/fedora:rawhide image matches host's architecture INFO: mounting registry.fedoraproject.org/fedora:rawhide with podman image mount INFO: image registry.fedoraproject.org/fedora:rawhide as /var/lib/containers/storage/overlay/2867afab974f7855400f2f3efe60e26946dde0e813e737eaca38ba651d113485/merged INFO: umounting image registry.fedoraproject.org/fedora:rawhide (/var/lib/containers/storage/overlay/2867afab974f7855400f2f3efe60e26946dde0e813e737eaca38ba651d113485/merged) with podman image umount INFO: Package manager dnf detected and used (fallback) INFO: Bootstrap image not marked ready Start(bootstrap): installing dnf tooling No matches found for the following disable plugin patterns: local, spacewalk, versionlock Copr repository 27 MB/s | 3.9 MB 00:00 fedora 19 MB/s | 72 MB 00:03 Package python3-dnf-4.18.1-2.fc40.noarch is already installed. Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: python3-dnf-plugins-core noarch 4.4.3-1.fc40 copr_base 302 k Installing dependencies: dbus-libs x86_64 1:1.14.10-1.fc40 fedora 155 k python3-dateutil noarch 1:2.8.2-11.fc40 copr_base 345 k python3-dbus x86_64 1.3.2-4.fc39 fedora 157 k python3-distro noarch 1.8.0-6.fc39 fedora 49 k python3-six noarch 1.16.0-12.fc39 fedora 41 k python3-systemd x86_64 235-5.fc39 fedora 107 k Transaction Summary ================================================================================ Install 7 Packages Total download size: 1.1 M Installed size: 3.6 M Downloading Packages: (1/7): python3-dnf-plugins-core-4.4.3-1.fc40.no 5.4 MB/s | 302 kB 00:00 (2/7): python3-dateutil-2.8.2-11.fc40.noarch.rp 4.9 MB/s | 345 kB 00:00 (3/7): dbus-libs-1.14.10-1.fc40.x86_64.rpm 1.1 MB/s | 155 kB 00:00 (4/7): python3-six-1.16.0-12.fc39.noarch.rpm 2.5 MB/s | 41 kB 00:00 (5/7): python3-distro-1.8.0-6.fc39.noarch.rpm 515 kB/s | 49 kB 00:00 (6/7): python3-dbus-1.3.2-4.fc39.x86_64.rpm 1.4 MB/s | 157 kB 00:00 (7/7): python3-systemd-235-5.fc39.x86_64.rpm 3.0 MB/s | 107 kB 00:00 -------------------------------------------------------------------------------- Total 5.1 MB/s | 1.1 MB 00:00 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : python3-systemd-235-5.fc39.x86_64 1/7 Installing : python3-six-1.16.0-12.fc39.noarch 2/7 Installing : python3-dateutil-1:2.8.2-11.fc40.noarch 3/7 Installing : python3-distro-1.8.0-6.fc39.noarch 4/7 Installing : dbus-libs-1:1.14.10-1.fc40.x86_64 5/7 Installing : python3-dbus-1.3.2-4.fc39.x86_64 6/7 Installing : python3-dnf-plugins-core-4.4.3-1.fc40.noarch 7/7 Running scriptlet: python3-dnf-plugins-core-4.4.3-1.fc40.noarch 7/7 Installed: dbus-libs-1:1.14.10-1.fc40.x86_64 python3-dateutil-1:2.8.2-11.fc40.noarch python3-dbus-1.3.2-4.fc39.x86_64 python3-distro-1.8.0-6.fc39.noarch python3-dnf-plugins-core-4.4.3-1.fc40.noarch python3-six-1.16.0-12.fc39.noarch python3-systemd-235-5.fc39.x86_64 Complete! Finish(bootstrap): installing dnf tooling Start(bootstrap): creating root cache Finish(bootstrap): creating root cache Finish(bootstrap): chroot init Start: chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-1700754572.688373/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start: cleaning package manager metadata Finish: cleaning package manager metadata INFO: enabled HW Info plugin INFO: Package manager dnf detected and used (direct choice) Start: installing minimal buildroot with dnf No matches found for the following disable plugin patterns: local, spacewalk, versionlock Copr repository 39 kB/s | 1.5 kB 00:00 Copr repository 29 MB/s | 3.9 MB 00:00 fedora 667 kB/s | 20 kB 00:00 Dependencies resolved. ================================================================================ Package Arch Version Repo Size ================================================================================ Installing group/module packages: bash x86_64 5.2.21-2.fc40 fedora 1.8 M bzip2 x86_64 1.0.8-16.fc39 fedora 52 k coreutils x86_64 9.4-1.fc40 fedora 1.1 M cpio x86_64 2.14-5.fc40 fedora 280 k diffutils x86_64 3.10-3.fc39 fedora 398 k fedora-release-common noarch 40-0.20 fedora 20 k findutils x86_64 1:4.9.0-6.fc40 fedora 492 k gawk x86_64 5.2.2-2.fc39 fedora 1.1 M glibc-minimal-langpack x86_64 2.38.9000-22.fc40 fedora 81 k grep x86_64 3.11-5.fc40 fedora 298 k gzip x86_64 1.12-6.fc39 fedora 166 k info x86_64 7.1-1.fc40 fedora 184 k patch x86_64 2.7.6-22.fc39 fedora 125 k redhat-rpm-config noarch 271-1.fc40 fedora 81 k rpm-build x86_64 4.19.0-2.fc40 fedora 79 k sed x86_64 4.8-14.fc39 fedora 306 k shadow-utils x86_64 2:4.14.0-2.fc40 fedora 1.3 M tar x86_64 2:1.35-2.fc40 fedora 864 k unzip x86_64 6.0-62.fc39 fedora 184 k util-linux x86_64 2.39.2-1.fc40 fedora 1.2 M which x86_64 2.21-40.fc39 fedora 42 k xz x86_64 5.4.5-1.fc40 fedora 557 k Installing dependencies: alternatives x86_64 1.25-1.fc39 fedora 39 k ansible-srpm-macros noarch 1-11.fc39 fedora 21 k audit-libs x86_64 3.1.2-5.fc40 fedora 117 k authselect x86_64 1.4.3-1.fc40 fedora 149 k authselect-libs x86_64 1.4.3-1.fc40 fedora 249 k basesystem noarch 11-18.fc39 fedora 7.2 k binutils x86_64 2.41-14.fc40 fedora 6.3 M binutils-gold x86_64 2.41-14.fc40 fedora 797 k bzip2-libs x86_64 1.0.8-16.fc39 fedora 41 k ca-certificates noarch 2023.2.62_v7.0.401-4.fc40 fedora 863 k coreutils-common x86_64 9.4-1.fc40 fedora 2.1 M cracklib x86_64 2.9.11-2.fc39 fedora 94 k crypto-policies noarch 20231113-1.gitb402e82.fc40 fedora 99 k curl x86_64 8.4.0-1.fc40 fedora 362 k cyrus-sasl-lib x86_64 2.1.28-11.fc39 fedora 793 k debugedit x86_64 5.0-11.fc40 fedora 77 k dwz x86_64 0.15-3.fc39 fedora 134 k ed x86_64 1.19-4.fc39 fedora 79 k efi-srpm-macros noarch 5-9.fc39 fedora 22 k elfutils x86_64 0.190-2.fc40 fedora 551 k elfutils-debuginfod-client x86_64 0.190-2.fc40 fedora 39 k elfutils-default-yama-scope noarch 0.190-2.fc40 fedora 14 k elfutils-libelf x86_64 0.190-2.fc40 fedora 195 k elfutils-libs x86_64 0.190-2.fc40 fedora 260 k fedora-gpg-keys noarch 40-0.2 fedora 130 k fedora-release noarch 40-0.20 fedora 9.3 k fedora-release-identity-basic noarch 40-0.20 fedora 10 k fedora-repos noarch 40-0.2 fedora 9.3 k fedora-repos-rawhide noarch 40-0.2 fedora 8.9 k file x86_64 5.45-1.fc40 fedora 49 k file-libs x86_64 5.45-1.fc40 fedora 763 k filesystem x86_64 3.18-6.fc39 fedora 1.1 M fonts-srpm-macros noarch 1:2.0.5-12.fc39 fedora 26 k forge-srpm-macros noarch 0.1.0-1.fc40 fedora 18 k fpc-srpm-macros noarch 1.3-8.fc39 fedora 7.4 k gdb-minimal x86_64 13.2-11.fc40 fedora 4.2 M gdbm x86_64 1:1.23-4.fc39 fedora 155 k gdbm-libs x86_64 1:1.23-4.fc39 fedora 56 k ghc-srpm-macros noarch 1.6.1-3.fc40 fedora 8.1 k glibc x86_64 2.38.9000-22.fc40 fedora 2.2 M glibc-common x86_64 2.38.9000-22.fc40 fedora 363 k glibc-gconv-extra x86_64 2.38.9000-22.fc40 fedora 1.7 M gmp x86_64 1:6.2.1-5.fc39 fedora 313 k gnat-srpm-macros noarch 6-3.fc39 fedora 8.8 k go-srpm-macros noarch 3.3.1-1.fc40 fedora 28 k jansson x86_64 2.13.1-7.fc40 copr_base 45 k kernel-srpm-macros noarch 1.0-20.fc39 fedora 10 k keyutils-libs x86_64 1.6.1-7.fc39 fedora 31 k krb5-libs x86_64 1.21.2-2.fc40 copr_base 761 k libacl x86_64 2.3.1-10.fc40 fedora 23 k libarchive x86_64 3.7.2-1.fc40 fedora 408 k libattr x86_64 2.5.1-9.fc40 fedora 18 k libblkid x86_64 2.39.2-1.fc40 fedora 116 k libbrotli x86_64 1.1.0-1.fc40 fedora 336 k libcap x86_64 2.69-1.fc40 fedora 83 k libcap-ng x86_64 0.8.3-8.fc40 fedora 32 k libcom_err x86_64 1.47.0-2.fc39 fedora 26 k libcurl x86_64 8.4.0-1.fc40 fedora 343 k libeconf x86_64 0.5.2-1.fc40 fedora 30 k libevent x86_64 2.1.12-9.fc39 fedora 258 k libfdisk x86_64 2.39.2-1.fc40 fedora 162 k libffi x86_64 3.4.4-4.fc39 fedora 40 k libgcc x86_64 13.2.1-5.fc40 fedora 112 k libgomp x86_64 13.2.1-5.fc40 fedora 321 k libidn2 x86_64 2.3.4-3.fc39 fedora 117 k libmount x86_64 2.39.2-1.fc40 fedora 154 k libnghttp2 x86_64 1.58.0-1.fc40 fedora 76 k libnsl2 x86_64 2.0.0-6.fc39 fedora 30 k libpkgconf x86_64 1.9.5-2.fc39 fedora 38 k libpsl x86_64 0.21.2-4.fc39 fedora 63 k libpwquality x86_64 1.4.5-6.fc39 fedora 120 k libselinux x86_64 3.6-0.rc1.1.fc40 fedora 87 k libsemanage x86_64 3.6-0.rc1.1.fc40 fedora 116 k libsepol x86_64 3.6-0.rc1.1.fc40 fedora 340 k libsigsegv x86_64 2.14-5.fc39 fedora 27 k libsmartcols x86_64 2.39.2-1.fc40 fedora 67 k libssh x86_64 0.10.5-2.fc39 fedora 211 k libssh-config noarch 0.10.5-2.fc39 fedora 9.2 k libstdc++ x86_64 13.2.1-5.fc40 fedora 864 k libtasn1 x86_64 4.19.0-3.fc39 fedora 74 k libtirpc x86_64 1.3.4-0.fc40 fedora 94 k libunistring x86_64 1.1-5.fc40 fedora 543 k libutempter x86_64 1.2.1-10.fc39 fedora 26 k libuuid x86_64 2.39.2-1.fc40 fedora 28 k libverto x86_64 0.3.2-6.fc39 fedora 20 k libxcrypt x86_64 4.4.36-2.fc39 fedora 119 k libxml2 x86_64 2.12.0-1.fc40 fedora 698 k libzstd x86_64 1.5.5-4.fc39 fedora 309 k lua-libs x86_64 5.4.6-3.fc39 fedora 133 k lua-srpm-macros noarch 1-9.fc39 fedora 8.6 k lz4-libs x86_64 1.9.4-4.fc39 fedora 67 k mpfr x86_64 4.2.1-1.fc40 fedora 343 k ncurses-base noarch 6.4-8.20231001.fc40 fedora 88 k ncurses-libs x86_64 6.4-8.20231001.fc40 fedora 338 k ocaml-srpm-macros noarch 9-1.fc40 fedora 9.0 k openblas-srpm-macros noarch 2-14.fc39 fedora 7.5 k openldap x86_64 2.6.6-1.fc39 fedora 255 k openssl-libs x86_64 1:3.1.4-1.fc40 fedora 2.2 M p11-kit x86_64 0.25.3-1.fc40 fedora 522 k p11-kit-trust x86_64 0.25.3-1.fc40 fedora 142 k package-notes-srpm-macros noarch 0.5-9.fc39 fedora 11 k pam x86_64 1.5.3-8.fc40 fedora 547 k pam-libs x86_64 1.5.3-8.fc40 fedora 57 k pcre2 x86_64 10.42-2.fc40 fedora 233 k pcre2-syntax noarch 10.42-2.fc40 fedora 143 k perl-srpm-macros noarch 1-51.fc39 fedora 8.0 k pkgconf x86_64 1.9.5-2.fc39 fedora 42 k pkgconf-m4 noarch 1.9.5-2.fc39 fedora 14 k pkgconf-pkg-config x86_64 1.9.5-2.fc39 fedora 9.6 k popt x86_64 1.19-3.fc39 fedora 66 k publicsuffix-list-dafsa noarch 20230812-1.fc40 fedora 57 k pyproject-srpm-macros noarch 1.10.0-1.fc40 fedora 14 k python-srpm-macros noarch 3.12-4.fc40 fedora 25 k qt5-srpm-macros noarch 5.15.11-1.fc40 fedora 8.3 k qt6-srpm-macros noarch 6.6.0-1.fc40 fedora 8.7 k readline x86_64 8.2-4.fc39 fedora 213 k rpm x86_64 4.19.0-2.fc40 fedora 538 k rpm-build-libs x86_64 4.19.0-2.fc40 fedora 96 k rpm-libs x86_64 4.19.0-2.fc40 fedora 312 k rpm-sequoia x86_64 1.5.0-1.fc40 fedora 883 k rust-srpm-macros noarch 25.2-2.fc40 fedora 13 k setup noarch 2.14.4-1.fc39 fedora 154 k sqlite-libs x86_64 3.44.0-1.fc40 fedora 692 k systemd-libs x86_64 255~rc3-1.fc40 fedora 702 k util-linux-core x86_64 2.39.2-1.fc40 fedora 493 k xxhash-libs x86_64 0.8.2-1.fc39 fedora 37 k xz-libs x86_64 5.4.5-1.fc40 fedora 108 k zip x86_64 3.0-39.fc40 fedora 266 k zlib x86_64 1.2.13-5.fc40 fedora 94 k zstd x86_64 1.5.5-4.fc39 fedora 482 k Installing Groups: Buildsystem building group Transaction Summary ================================================================================ Install 152 Packages Total size: 52 M Installed size: 180 M Downloading Packages: [SKIPPED] jansson-2.13.1-7.fc40.x86_64.rpm: Already downloaded [SKIPPED] krb5-libs-1.21.2-2.fc40.x86_64.rpm: Already downloaded [SKIPPED] alternatives-1.25-1.fc39.x86_64.rpm: Already downloaded [SKIPPED] ansible-srpm-macros-1-11.fc39.noarch.rpm: Already downloaded [SKIPPED] audit-libs-3.1.2-5.fc40.x86_64.rpm: Already downloaded [SKIPPED] authselect-1.4.3-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] authselect-libs-1.4.3-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] basesystem-11-18.fc39.noarch.rpm: Already downloaded [SKIPPED] bash-5.2.21-2.fc40.x86_64.rpm: Already downloaded [SKIPPED] binutils-2.41-14.fc40.x86_64.rpm: Already downloaded [SKIPPED] binutils-gold-2.41-14.fc40.x86_64.rpm: Already downloaded [SKIPPED] bzip2-1.0.8-16.fc39.x86_64.rpm: Already downloaded [SKIPPED] bzip2-libs-1.0.8-16.fc39.x86_64.rpm: Already downloaded [SKIPPED] ca-certificates-2023.2.62_v7.0.401-4.fc40.noarch.rpm: Already downloaded [SKIPPED] coreutils-9.4-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] coreutils-common-9.4-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] cpio-2.14-5.fc40.x86_64.rpm: Already downloaded [SKIPPED] cracklib-2.9.11-2.fc39.x86_64.rpm: Already downloaded [SKIPPED] crypto-policies-20231113-1.gitb402e82.fc40.noarch.rpm: Already downloaded [SKIPPED] curl-8.4.0-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] cyrus-sasl-lib-2.1.28-11.fc39.x86_64.rpm: Already downloaded [SKIPPED] debugedit-5.0-11.fc40.x86_64.rpm: Already downloaded [SKIPPED] diffutils-3.10-3.fc39.x86_64.rpm: Already downloaded [SKIPPED] dwz-0.15-3.fc39.x86_64.rpm: Already downloaded [SKIPPED] ed-1.19-4.fc39.x86_64.rpm: Already downloaded [SKIPPED] efi-srpm-macros-5-9.fc39.noarch.rpm: Already downloaded [SKIPPED] elfutils-0.190-2.fc40.x86_64.rpm: Already downloaded [SKIPPED] elfutils-debuginfod-client-0.190-2.fc40.x86_64.rpm: Already downloaded [SKIPPED] elfutils-default-yama-scope-0.190-2.fc40.noarch.rpm: Already downloaded [SKIPPED] elfutils-libelf-0.190-2.fc40.x86_64.rpm: Already downloaded [SKIPPED] elfutils-libs-0.190-2.fc40.x86_64.rpm: Already downloaded [SKIPPED] fedora-gpg-keys-40-0.2.noarch.rpm: Already downloaded [SKIPPED] fedora-release-40-0.20.noarch.rpm: Already downloaded [SKIPPED] fedora-release-common-40-0.20.noarch.rpm: Already downloaded [SKIPPED] fedora-release-identity-basic-40-0.20.noarch.rpm: Already downloaded [SKIPPED] fedora-repos-40-0.2.noarch.rpm: Already downloaded [SKIPPED] fedora-repos-rawhide-40-0.2.noarch.rpm: Already downloaded [SKIPPED] file-5.45-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] file-libs-5.45-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] filesystem-3.18-6.fc39.x86_64.rpm: Already downloaded [SKIPPED] findutils-4.9.0-6.fc40.x86_64.rpm: Already downloaded [SKIPPED] fonts-srpm-macros-2.0.5-12.fc39.noarch.rpm: Already downloaded [SKIPPED] forge-srpm-macros-0.1.0-1.fc40.noarch.rpm: Already downloaded [SKIPPED] fpc-srpm-macros-1.3-8.fc39.noarch.rpm: Already downloaded [SKIPPED] gawk-5.2.2-2.fc39.x86_64.rpm: Already downloaded [SKIPPED] gdb-minimal-13.2-11.fc40.x86_64.rpm: Already downloaded [SKIPPED] gdbm-1.23-4.fc39.x86_64.rpm: Already downloaded [SKIPPED] gdbm-libs-1.23-4.fc39.x86_64.rpm: Already downloaded [SKIPPED] ghc-srpm-macros-1.6.1-3.fc40.noarch.rpm: Already downloaded [SKIPPED] glibc-2.38.9000-22.fc40.x86_64.rpm: Already downloaded [SKIPPED] glibc-common-2.38.9000-22.fc40.x86_64.rpm: Already downloaded [SKIPPED] glibc-gconv-extra-2.38.9000-22.fc40.x86_64.rpm: Already downloaded [SKIPPED] glibc-minimal-langpack-2.38.9000-22.fc40.x86_64.rpm: Already downloaded [SKIPPED] gmp-6.2.1-5.fc39.x86_64.rpm: Already downloaded [SKIPPED] gnat-srpm-macros-6-3.fc39.noarch.rpm: Already downloaded [SKIPPED] go-srpm-macros-3.3.1-1.fc40.noarch.rpm: Already downloaded [SKIPPED] grep-3.11-5.fc40.x86_64.rpm: Already downloaded [SKIPPED] gzip-1.12-6.fc39.x86_64.rpm: Already downloaded [SKIPPED] info-7.1-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] kernel-srpm-macros-1.0-20.fc39.noarch.rpm: Already downloaded [SKIPPED] keyutils-libs-1.6.1-7.fc39.x86_64.rpm: Already downloaded [SKIPPED] libacl-2.3.1-10.fc40.x86_64.rpm: Already downloaded [SKIPPED] libarchive-3.7.2-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] libattr-2.5.1-9.fc40.x86_64.rpm: Already downloaded [SKIPPED] libblkid-2.39.2-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] libbrotli-1.1.0-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] libcap-2.69-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] libcap-ng-0.8.3-8.fc40.x86_64.rpm: Already downloaded [SKIPPED] libcom_err-1.47.0-2.fc39.x86_64.rpm: Already downloaded [SKIPPED] libcurl-8.4.0-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] libeconf-0.5.2-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] libevent-2.1.12-9.fc39.x86_64.rpm: Already downloaded [SKIPPED] libfdisk-2.39.2-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] libffi-3.4.4-4.fc39.x86_64.rpm: Already downloaded [SKIPPED] libgcc-13.2.1-5.fc40.x86_64.rpm: Already downloaded [SKIPPED] libgomp-13.2.1-5.fc40.x86_64.rpm: Already downloaded [SKIPPED] libidn2-2.3.4-3.fc39.x86_64.rpm: Already downloaded [SKIPPED] libmount-2.39.2-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] libnghttp2-1.58.0-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] libnsl2-2.0.0-6.fc39.x86_64.rpm: Already downloaded [SKIPPED] libpkgconf-1.9.5-2.fc39.x86_64.rpm: Already downloaded [SKIPPED] libpsl-0.21.2-4.fc39.x86_64.rpm: Already downloaded [SKIPPED] libpwquality-1.4.5-6.fc39.x86_64.rpm: Already downloaded [SKIPPED] libselinux-3.6-0.rc1.1.fc40.x86_64.rpm: Already downloaded [SKIPPED] libsemanage-3.6-0.rc1.1.fc40.x86_64.rpm: Already downloaded [SKIPPED] libsepol-3.6-0.rc1.1.fc40.x86_64.rpm: Already downloaded [SKIPPED] libsigsegv-2.14-5.fc39.x86_64.rpm: Already downloaded [SKIPPED] libsmartcols-2.39.2-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] libssh-0.10.5-2.fc39.x86_64.rpm: Already downloaded [SKIPPED] libssh-config-0.10.5-2.fc39.noarch.rpm: Already downloaded [SKIPPED] libstdc++-13.2.1-5.fc40.x86_64.rpm: Already downloaded [SKIPPED] libtasn1-4.19.0-3.fc39.x86_64.rpm: Already downloaded [SKIPPED] libtirpc-1.3.4-0.fc40.x86_64.rpm: Already downloaded [SKIPPED] libunistring-1.1-5.fc40.x86_64.rpm: Already downloaded [SKIPPED] libutempter-1.2.1-10.fc39.x86_64.rpm: Already downloaded [SKIPPED] libuuid-2.39.2-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] libverto-0.3.2-6.fc39.x86_64.rpm: Already downloaded [SKIPPED] libxcrypt-4.4.36-2.fc39.x86_64.rpm: Already downloaded [SKIPPED] libxml2-2.12.0-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] libzstd-1.5.5-4.fc39.x86_64.rpm: Already downloaded [SKIPPED] lua-libs-5.4.6-3.fc39.x86_64.rpm: Already downloaded [SKIPPED] lua-srpm-macros-1-9.fc39.noarch.rpm: Already downloaded [SKIPPED] lz4-libs-1.9.4-4.fc39.x86_64.rpm: Already downloaded [SKIPPED] mpfr-4.2.1-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] ncurses-base-6.4-8.20231001.fc40.noarch.rpm: Already downloaded [SKIPPED] ncurses-libs-6.4-8.20231001.fc40.x86_64.rpm: Already downloaded [SKIPPED] ocaml-srpm-macros-9-1.fc40.noarch.rpm: Already downloaded [SKIPPED] openblas-srpm-macros-2-14.fc39.noarch.rpm: Already downloaded [SKIPPED] openldap-2.6.6-1.fc39.x86_64.rpm: Already downloaded [SKIPPED] openssl-libs-3.1.4-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] p11-kit-0.25.3-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] p11-kit-trust-0.25.3-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] package-notes-srpm-macros-0.5-9.fc39.noarch.rpm: Already downloaded [SKIPPED] pam-1.5.3-8.fc40.x86_64.rpm: Already downloaded [SKIPPED] pam-libs-1.5.3-8.fc40.x86_64.rpm: Already downloaded [SKIPPED] patch-2.7.6-22.fc39.x86_64.rpm: Already downloaded [SKIPPED] pcre2-10.42-2.fc40.x86_64.rpm: Already downloaded [SKIPPED] pcre2-syntax-10.42-2.fc40.noarch.rpm: Already downloaded [SKIPPED] perl-srpm-macros-1-51.fc39.noarch.rpm: Already downloaded [SKIPPED] pkgconf-1.9.5-2.fc39.x86_64.rpm: Already downloaded [SKIPPED] pkgconf-m4-1.9.5-2.fc39.noarch.rpm: Already downloaded [SKIPPED] pkgconf-pkg-config-1.9.5-2.fc39.x86_64.rpm: Already downloaded [SKIPPED] popt-1.19-3.fc39.x86_64.rpm: Already downloaded [SKIPPED] publicsuffix-list-dafsa-20230812-1.fc40.noarch.rpm: Already downloaded [SKIPPED] pyproject-srpm-macros-1.10.0-1.fc40.noarch.rpm: Already downloaded [SKIPPED] python-srpm-macros-3.12-4.fc40.noarch.rpm: Already downloaded [SKIPPED] qt5-srpm-macros-5.15.11-1.fc40.noarch.rpm: Already downloaded [SKIPPED] qt6-srpm-macros-6.6.0-1.fc40.noarch.rpm: Already downloaded [SKIPPED] readline-8.2-4.fc39.x86_64.rpm: Already downloaded [SKIPPED] redhat-rpm-config-271-1.fc40.noarch.rpm: Already downloaded [SKIPPED] rpm-4.19.0-2.fc40.x86_64.rpm: Already downloaded [SKIPPED] rpm-build-4.19.0-2.fc40.x86_64.rpm: Already downloaded [SKIPPED] rpm-build-libs-4.19.0-2.fc40.x86_64.rpm: Already downloaded [SKIPPED] rpm-libs-4.19.0-2.fc40.x86_64.rpm: Already downloaded [SKIPPED] rpm-sequoia-1.5.0-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] rust-srpm-macros-25.2-2.fc40.noarch.rpm: Already downloaded [SKIPPED] sed-4.8-14.fc39.x86_64.rpm: Already downloaded [SKIPPED] setup-2.14.4-1.fc39.noarch.rpm: Already downloaded [SKIPPED] shadow-utils-4.14.0-2.fc40.x86_64.rpm: Already downloaded [SKIPPED] sqlite-libs-3.44.0-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] systemd-libs-255~rc3-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] tar-1.35-2.fc40.x86_64.rpm: Already downloaded [SKIPPED] unzip-6.0-62.fc39.x86_64.rpm: Already downloaded [SKIPPED] util-linux-2.39.2-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] util-linux-core-2.39.2-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] which-2.21-40.fc39.x86_64.rpm: Already downloaded [SKIPPED] xxhash-libs-0.8.2-1.fc39.x86_64.rpm: Already downloaded [SKIPPED] xz-5.4.5-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] xz-libs-5.4.5-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] zip-3.0-39.fc40.x86_64.rpm: Already downloaded [SKIPPED] zlib-1.2.13-5.fc40.x86_64.rpm: Already downloaded [SKIPPED] zstd-1.5.5-4.fc39.x86_64.rpm: Already downloaded fedora 1.6 MB/s | 1.6 kB 00:00 Importing GPG key 0xA15B79CC: Userid : "Fedora (40) " Fingerprint: 115D F9AE F857 853E E844 5D0A 0727 707E A15B 79CC From : /usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-40-primary Key imported successfully fedora 1.6 MB/s | 1.6 kB 00:00 GPG key at file:///usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-40-primary (0xA15B79CC) is already installed fedora 1.6 MB/s | 1.6 kB 00:00 Importing GPG key 0x18B8E74C: Userid : "Fedora (39) " Fingerprint: E8F2 3996 F232 1864 0CB4 4CBE 75CF 5AC4 18B8 E74C From : /usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-39-primary Key imported successfully Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Running scriptlet: filesystem-3.18-6.fc39.x86_64 1/1 Preparing : 1/1 Installing : libgcc-13.2.1-5.fc40.x86_64 1/152 Running scriptlet: libgcc-13.2.1-5.fc40.x86_64 1/152 Installing : crypto-policies-20231113-1.gitb402e82.fc40.noarc 2/152 Running scriptlet: crypto-policies-20231113-1.gitb402e82.fc40.noarc 2/152 Installing : fedora-release-identity-basic-40-0.20.noarch 3/152 Installing : fedora-repos-rawhide-40-0.2.noarch 4/152 Installing : fedora-gpg-keys-40-0.2.noarch 5/152 Installing : fedora-repos-40-0.2.noarch 6/152 Installing : fedora-release-common-40-0.20.noarch 7/152 Installing : fedora-release-40-0.20.noarch 8/152 Installing : setup-2.14.4-1.fc39.noarch 9/152 warning: /etc/hosts created as /etc/hosts.rpmnew Running scriptlet: setup-2.14.4-1.fc39.noarch 9/152 Installing : filesystem-3.18-6.fc39.x86_64 10/152 Installing : basesystem-11-18.fc39.noarch 11/152 Installing : rust-srpm-macros-25.2-2.fc40.noarch 12/152 Installing : qt6-srpm-macros-6.6.0-1.fc40.noarch 13/152 Installing : qt5-srpm-macros-5.15.11-1.fc40.noarch 14/152 Installing : publicsuffix-list-dafsa-20230812-1.fc40.noarch 15/152 Installing : pkgconf-m4-1.9.5-2.fc39.noarch 16/152 Installing : perl-srpm-macros-1-51.fc39.noarch 17/152 Installing : pcre2-syntax-10.42-2.fc40.noarch 18/152 Installing : package-notes-srpm-macros-0.5-9.fc39.noarch 19/152 Installing : openblas-srpm-macros-2-14.fc39.noarch 20/152 Installing : ocaml-srpm-macros-9-1.fc40.noarch 21/152 Installing : ncurses-base-6.4-8.20231001.fc40.noarch 22/152 Installing : glibc-gconv-extra-2.38.9000-22.fc40.x86_64 23/152 Running scriptlet: glibc-gconv-extra-2.38.9000-22.fc40.x86_64 23/152 Installing : glibc-minimal-langpack-2.38.9000-22.fc40.x86_64 24/152 Installing : glibc-common-2.38.9000-22.fc40.x86_64 25/152 Running scriptlet: glibc-2.38.9000-22.fc40.x86_64 26/152 Installing : glibc-2.38.9000-22.fc40.x86_64 26/152 Running scriptlet: glibc-2.38.9000-22.fc40.x86_64 26/152 Installing : ncurses-libs-6.4-8.20231001.fc40.x86_64 27/152 Installing : bash-5.2.21-2.fc40.x86_64 28/152 Running scriptlet: bash-5.2.21-2.fc40.x86_64 28/152 Installing : zlib-1.2.13-5.fc40.x86_64 29/152 Installing : xz-libs-5.4.5-1.fc40.x86_64 30/152 Installing : bzip2-libs-1.0.8-16.fc39.x86_64 31/152 Installing : readline-8.2-4.fc39.x86_64 32/152 Installing : libstdc++-13.2.1-5.fc40.x86_64 33/152 Installing : libuuid-2.39.2-1.fc40.x86_64 34/152 Installing : libzstd-1.5.5-4.fc39.x86_64 35/152 Installing : elfutils-libelf-0.190-2.fc40.x86_64 36/152 Installing : popt-1.19-3.fc39.x86_64 37/152 Installing : libblkid-2.39.2-1.fc40.x86_64 38/152 Installing : gmp-1:6.2.1-5.fc39.x86_64 39/152 Installing : libattr-2.5.1-9.fc40.x86_64 40/152 Installing : libacl-2.3.1-10.fc40.x86_64 41/152 Installing : libxcrypt-4.4.36-2.fc39.x86_64 42/152 Installing : gdbm-libs-1:1.23-4.fc39.x86_64 43/152 Installing : libeconf-0.5.2-1.fc40.x86_64 44/152 Installing : lz4-libs-1.9.4-4.fc39.x86_64 45/152 Installing : mpfr-4.2.1-1.fc40.x86_64 46/152 Installing : dwz-0.15-3.fc39.x86_64 47/152 Installing : unzip-6.0-62.fc39.x86_64 48/152 Installing : file-libs-5.45-1.fc40.x86_64 49/152 Installing : file-5.45-1.fc40.x86_64 50/152 Installing : jansson-2.13.1-7.fc40.x86_64 51/152 Installing : alternatives-1.25-1.fc39.x86_64 52/152 Installing : libcap-ng-0.8.3-8.fc40.x86_64 53/152 Installing : audit-libs-3.1.2-5.fc40.x86_64 54/152 Installing : pam-libs-1.5.3-8.fc40.x86_64 55/152 Installing : libcap-2.69-1.fc40.x86_64 56/152 Installing : systemd-libs-255~rc3-1.fc40.x86_64 57/152 Installing : libcom_err-1.47.0-2.fc39.x86_64 58/152 Installing : libsepol-3.6-0.rc1.1.fc40.x86_64 59/152 Installing : libsmartcols-2.39.2-1.fc40.x86_64 60/152 Installing : libtasn1-4.19.0-3.fc39.x86_64 61/152 Installing : libunistring-1.1-5.fc40.x86_64 62/152 Installing : libidn2-2.3.4-3.fc39.x86_64 63/152 Installing : lua-libs-5.4.6-3.fc39.x86_64 64/152 Installing : pcre2-10.42-2.fc40.x86_64 65/152 Installing : libselinux-3.6-0.rc1.1.fc40.x86_64 66/152 Installing : sed-4.8-14.fc39.x86_64 67/152 Installing : grep-3.11-5.fc40.x86_64 68/152 Installing : findutils-1:4.9.0-6.fc40.x86_64 69/152 Installing : xz-5.4.5-1.fc40.x86_64 70/152 Installing : libmount-2.39.2-1.fc40.x86_64 71/152 Installing : util-linux-core-2.39.2-1.fc40.x86_64 72/152 Installing : libsemanage-3.6-0.rc1.1.fc40.x86_64 73/152 Installing : shadow-utils-2:4.14.0-2.fc40.x86_64 74/152 Running scriptlet: libutempter-1.2.1-10.fc39.x86_64 75/152 Installing : libutempter-1.2.1-10.fc39.x86_64 75/152 Installing : tar-2:1.35-2.fc40.x86_64 76/152 Installing : libpsl-0.21.2-4.fc39.x86_64 77/152 Installing : zip-3.0-39.fc40.x86_64 78/152 Installing : zstd-1.5.5-4.fc39.x86_64 79/152 Installing : cyrus-sasl-lib-2.1.28-11.fc39.x86_64 80/152 Installing : gdbm-1:1.23-4.fc39.x86_64 81/152 Installing : libfdisk-2.39.2-1.fc40.x86_64 82/152 Installing : bzip2-1.0.8-16.fc39.x86_64 83/152 Installing : libxml2-2.12.0-1.fc40.x86_64 84/152 Installing : sqlite-libs-3.44.0-1.fc40.x86_64 85/152 Installing : ed-1.19-4.fc39.x86_64 86/152 Installing : patch-2.7.6-22.fc39.x86_64 87/152 Installing : elfutils-default-yama-scope-0.190-2.fc40.noarch 88/152 Running scriptlet: elfutils-default-yama-scope-0.190-2.fc40.noarch 88/152 Installing : cpio-2.14-5.fc40.x86_64 89/152 Installing : diffutils-3.10-3.fc39.x86_64 90/152 Installing : keyutils-libs-1.6.1-7.fc39.x86_64 91/152 Installing : libbrotli-1.1.0-1.fc40.x86_64 92/152 Installing : libffi-3.4.4-4.fc39.x86_64 93/152 Installing : p11-kit-0.25.3-1.fc40.x86_64 94/152 Installing : p11-kit-trust-0.25.3-1.fc40.x86_64 95/152 Running scriptlet: p11-kit-trust-0.25.3-1.fc40.x86_64 95/152 Installing : libgomp-13.2.1-5.fc40.x86_64 96/152 Installing : libnghttp2-1.58.0-1.fc40.x86_64 97/152 Installing : libpkgconf-1.9.5-2.fc39.x86_64 98/152 Installing : pkgconf-1.9.5-2.fc39.x86_64 99/152 Installing : pkgconf-pkg-config-1.9.5-2.fc39.x86_64 100/152 Installing : libsigsegv-2.14-5.fc39.x86_64 101/152 Installing : gawk-5.2.2-2.fc39.x86_64 102/152 Installing : libverto-0.3.2-6.fc39.x86_64 103/152 Installing : xxhash-libs-0.8.2-1.fc39.x86_64 104/152 Installing : libssh-config-0.10.5-2.fc39.noarch 105/152 Installing : kernel-srpm-macros-1.0-20.fc39.noarch 106/152 Installing : gnat-srpm-macros-6-3.fc39.noarch 107/152 Installing : ghc-srpm-macros-1.6.1-3.fc40.noarch 108/152 Installing : fpc-srpm-macros-1.3-8.fc39.noarch 109/152 Installing : coreutils-common-9.4-1.fc40.x86_64 110/152 Installing : openssl-libs-1:3.1.4-1.fc40.x86_64 111/152 Installing : coreutils-9.4-1.fc40.x86_64 112/152 Running scriptlet: ca-certificates-2023.2.62_v7.0.401-4.fc40.noarch 113/152 Installing : ca-certificates-2023.2.62_v7.0.401-4.fc40.noarch 113/152 Running scriptlet: ca-certificates-2023.2.62_v7.0.401-4.fc40.noarch 113/152 Installing : krb5-libs-1.21.2-2.fc40.x86_64 114/152 Installing : libtirpc-1.3.4-0.fc40.x86_64 115/152 Running scriptlet: authselect-libs-1.4.3-1.fc40.x86_64 116/152 Installing : authselect-libs-1.4.3-1.fc40.x86_64 116/152 Installing : gzip-1.12-6.fc39.x86_64 117/152 Installing : cracklib-2.9.11-2.fc39.x86_64 118/152 Installing : libpwquality-1.4.5-6.fc39.x86_64 119/152 Installing : authselect-1.4.3-1.fc40.x86_64 120/152 Installing : libnsl2-2.0.0-6.fc39.x86_64 121/152 Installing : pam-1.5.3-8.fc40.x86_64 122/152 Installing : libssh-0.10.5-2.fc39.x86_64 123/152 Installing : libarchive-3.7.2-1.fc40.x86_64 124/152 Installing : libevent-2.1.12-9.fc39.x86_64 125/152 Installing : openldap-2.6.6-1.fc39.x86_64 126/152 Installing : libcurl-8.4.0-1.fc40.x86_64 127/152 Installing : elfutils-libs-0.190-2.fc40.x86_64 128/152 Installing : elfutils-debuginfod-client-0.190-2.fc40.x86_64 129/152 Installing : binutils-2.41-14.fc40.x86_64 130/152 Running scriptlet: binutils-2.41-14.fc40.x86_64 130/152 Installing : binutils-gold-2.41-14.fc40.x86_64 131/152 Running scriptlet: binutils-gold-2.41-14.fc40.x86_64 131/152 Installing : elfutils-0.190-2.fc40.x86_64 132/152 Installing : gdb-minimal-13.2-11.fc40.x86_64 133/152 Installing : debugedit-5.0-11.fc40.x86_64 134/152 Installing : curl-8.4.0-1.fc40.x86_64 135/152 Installing : rpm-sequoia-1.5.0-1.fc40.x86_64 136/152 Installing : rpm-libs-4.19.0-2.fc40.x86_64 137/152 Running scriptlet: rpm-4.19.0-2.fc40.x86_64 138/152 Installing : rpm-4.19.0-2.fc40.x86_64 138/152 Installing : efi-srpm-macros-5-9.fc39.noarch 139/152 Installing : lua-srpm-macros-1-9.fc39.noarch 140/152 Installing : rpm-build-libs-4.19.0-2.fc40.x86_64 141/152 Installing : ansible-srpm-macros-1-11.fc39.noarch 142/152 Installing : fonts-srpm-macros-1:2.0.5-12.fc39.noarch 143/152 Installing : forge-srpm-macros-0.1.0-1.fc40.noarch 144/152 Installing : go-srpm-macros-3.3.1-1.fc40.noarch 145/152 Installing : python-srpm-macros-3.12-4.fc40.noarch 146/152 Installing : redhat-rpm-config-271-1.fc40.noarch 147/152 Installing : rpm-build-4.19.0-2.fc40.x86_64 148/152 Installing : pyproject-srpm-macros-1.10.0-1.fc40.noarch 149/152 Installing : util-linux-2.39.2-1.fc40.x86_64 150/152 Installing : which-2.21-40.fc39.x86_64 151/152 Installing : info-7.1-1.fc40.x86_64 152/152 Running scriptlet: filesystem-3.18-6.fc39.x86_64 152/152 Running scriptlet: ca-certificates-2023.2.62_v7.0.401-4.fc40.noarch 152/152 Running scriptlet: authselect-libs-1.4.3-1.fc40.x86_64 152/152 Running scriptlet: rpm-4.19.0-2.fc40.x86_64 152/152 Running scriptlet: info-7.1-1.fc40.x86_64 152/152 Installed: alternatives-1.25-1.fc39.x86_64 ansible-srpm-macros-1-11.fc39.noarch audit-libs-3.1.2-5.fc40.x86_64 authselect-1.4.3-1.fc40.x86_64 authselect-libs-1.4.3-1.fc40.x86_64 basesystem-11-18.fc39.noarch bash-5.2.21-2.fc40.x86_64 binutils-2.41-14.fc40.x86_64 binutils-gold-2.41-14.fc40.x86_64 bzip2-1.0.8-16.fc39.x86_64 bzip2-libs-1.0.8-16.fc39.x86_64 ca-certificates-2023.2.62_v7.0.401-4.fc40.noarch coreutils-9.4-1.fc40.x86_64 coreutils-common-9.4-1.fc40.x86_64 cpio-2.14-5.fc40.x86_64 cracklib-2.9.11-2.fc39.x86_64 crypto-policies-20231113-1.gitb402e82.fc40.noarch curl-8.4.0-1.fc40.x86_64 cyrus-sasl-lib-2.1.28-11.fc39.x86_64 debugedit-5.0-11.fc40.x86_64 diffutils-3.10-3.fc39.x86_64 dwz-0.15-3.fc39.x86_64 ed-1.19-4.fc39.x86_64 efi-srpm-macros-5-9.fc39.noarch elfutils-0.190-2.fc40.x86_64 elfutils-debuginfod-client-0.190-2.fc40.x86_64 elfutils-default-yama-scope-0.190-2.fc40.noarch elfutils-libelf-0.190-2.fc40.x86_64 elfutils-libs-0.190-2.fc40.x86_64 fedora-gpg-keys-40-0.2.noarch fedora-release-40-0.20.noarch fedora-release-common-40-0.20.noarch fedora-release-identity-basic-40-0.20.noarch fedora-repos-40-0.2.noarch fedora-repos-rawhide-40-0.2.noarch file-5.45-1.fc40.x86_64 file-libs-5.45-1.fc40.x86_64 filesystem-3.18-6.fc39.x86_64 findutils-1:4.9.0-6.fc40.x86_64 fonts-srpm-macros-1:2.0.5-12.fc39.noarch forge-srpm-macros-0.1.0-1.fc40.noarch fpc-srpm-macros-1.3-8.fc39.noarch gawk-5.2.2-2.fc39.x86_64 gdb-minimal-13.2-11.fc40.x86_64 gdbm-1:1.23-4.fc39.x86_64 gdbm-libs-1:1.23-4.fc39.x86_64 ghc-srpm-macros-1.6.1-3.fc40.noarch glibc-2.38.9000-22.fc40.x86_64 glibc-common-2.38.9000-22.fc40.x86_64 glibc-gconv-extra-2.38.9000-22.fc40.x86_64 glibc-minimal-langpack-2.38.9000-22.fc40.x86_64 gmp-1:6.2.1-5.fc39.x86_64 gnat-srpm-macros-6-3.fc39.noarch go-srpm-macros-3.3.1-1.fc40.noarch grep-3.11-5.fc40.x86_64 gzip-1.12-6.fc39.x86_64 info-7.1-1.fc40.x86_64 jansson-2.13.1-7.fc40.x86_64 kernel-srpm-macros-1.0-20.fc39.noarch keyutils-libs-1.6.1-7.fc39.x86_64 krb5-libs-1.21.2-2.fc40.x86_64 libacl-2.3.1-10.fc40.x86_64 libarchive-3.7.2-1.fc40.x86_64 libattr-2.5.1-9.fc40.x86_64 libblkid-2.39.2-1.fc40.x86_64 libbrotli-1.1.0-1.fc40.x86_64 libcap-2.69-1.fc40.x86_64 libcap-ng-0.8.3-8.fc40.x86_64 libcom_err-1.47.0-2.fc39.x86_64 libcurl-8.4.0-1.fc40.x86_64 libeconf-0.5.2-1.fc40.x86_64 libevent-2.1.12-9.fc39.x86_64 libfdisk-2.39.2-1.fc40.x86_64 libffi-3.4.4-4.fc39.x86_64 libgcc-13.2.1-5.fc40.x86_64 libgomp-13.2.1-5.fc40.x86_64 libidn2-2.3.4-3.fc39.x86_64 libmount-2.39.2-1.fc40.x86_64 libnghttp2-1.58.0-1.fc40.x86_64 libnsl2-2.0.0-6.fc39.x86_64 libpkgconf-1.9.5-2.fc39.x86_64 libpsl-0.21.2-4.fc39.x86_64 libpwquality-1.4.5-6.fc39.x86_64 libselinux-3.6-0.rc1.1.fc40.x86_64 libsemanage-3.6-0.rc1.1.fc40.x86_64 libsepol-3.6-0.rc1.1.fc40.x86_64 libsigsegv-2.14-5.fc39.x86_64 libsmartcols-2.39.2-1.fc40.x86_64 libssh-0.10.5-2.fc39.x86_64 libssh-config-0.10.5-2.fc39.noarch libstdc++-13.2.1-5.fc40.x86_64 libtasn1-4.19.0-3.fc39.x86_64 libtirpc-1.3.4-0.fc40.x86_64 libunistring-1.1-5.fc40.x86_64 libutempter-1.2.1-10.fc39.x86_64 libuuid-2.39.2-1.fc40.x86_64 libverto-0.3.2-6.fc39.x86_64 libxcrypt-4.4.36-2.fc39.x86_64 libxml2-2.12.0-1.fc40.x86_64 libzstd-1.5.5-4.fc39.x86_64 lua-libs-5.4.6-3.fc39.x86_64 lua-srpm-macros-1-9.fc39.noarch lz4-libs-1.9.4-4.fc39.x86_64 mpfr-4.2.1-1.fc40.x86_64 ncurses-base-6.4-8.20231001.fc40.noarch ncurses-libs-6.4-8.20231001.fc40.x86_64 ocaml-srpm-macros-9-1.fc40.noarch openblas-srpm-macros-2-14.fc39.noarch openldap-2.6.6-1.fc39.x86_64 openssl-libs-1:3.1.4-1.fc40.x86_64 p11-kit-0.25.3-1.fc40.x86_64 p11-kit-trust-0.25.3-1.fc40.x86_64 package-notes-srpm-macros-0.5-9.fc39.noarch pam-1.5.3-8.fc40.x86_64 pam-libs-1.5.3-8.fc40.x86_64 patch-2.7.6-22.fc39.x86_64 pcre2-10.42-2.fc40.x86_64 pcre2-syntax-10.42-2.fc40.noarch perl-srpm-macros-1-51.fc39.noarch pkgconf-1.9.5-2.fc39.x86_64 pkgconf-m4-1.9.5-2.fc39.noarch pkgconf-pkg-config-1.9.5-2.fc39.x86_64 popt-1.19-3.fc39.x86_64 publicsuffix-list-dafsa-20230812-1.fc40.noarch pyproject-srpm-macros-1.10.0-1.fc40.noarch python-srpm-macros-3.12-4.fc40.noarch qt5-srpm-macros-5.15.11-1.fc40.noarch qt6-srpm-macros-6.6.0-1.fc40.noarch readline-8.2-4.fc39.x86_64 redhat-rpm-config-271-1.fc40.noarch rpm-4.19.0-2.fc40.x86_64 rpm-build-4.19.0-2.fc40.x86_64 rpm-build-libs-4.19.0-2.fc40.x86_64 rpm-libs-4.19.0-2.fc40.x86_64 rpm-sequoia-1.5.0-1.fc40.x86_64 rust-srpm-macros-25.2-2.fc40.noarch sed-4.8-14.fc39.x86_64 setup-2.14.4-1.fc39.noarch shadow-utils-2:4.14.0-2.fc40.x86_64 sqlite-libs-3.44.0-1.fc40.x86_64 systemd-libs-255~rc3-1.fc40.x86_64 tar-2:1.35-2.fc40.x86_64 unzip-6.0-62.fc39.x86_64 util-linux-2.39.2-1.fc40.x86_64 util-linux-core-2.39.2-1.fc40.x86_64 which-2.21-40.fc39.x86_64 xxhash-libs-0.8.2-1.fc39.x86_64 xz-5.4.5-1.fc40.x86_64 xz-libs-5.4.5-1.fc40.x86_64 zip-3.0-39.fc40.x86_64 zlib-1.2.13-5.fc40.x86_64 zstd-1.5.5-4.fc39.x86_64 Complete! Finish: installing minimal buildroot with dnf Start: creating root cache Finish: creating root cache Finish: chroot init INFO: Installed packages: INFO: alternatives-1.25-1.fc39.x86_64 ansible-srpm-macros-1-11.fc39.noarch audit-libs-3.1.2-5.fc40.x86_64 authselect-1.4.3-1.fc40.x86_64 authselect-libs-1.4.3-1.fc40.x86_64 basesystem-11-18.fc39.noarch bash-5.2.21-2.fc40.x86_64 binutils-2.41-14.fc40.x86_64 binutils-gold-2.41-14.fc40.x86_64 bzip2-1.0.8-16.fc39.x86_64 bzip2-libs-1.0.8-16.fc39.x86_64 ca-certificates-2023.2.62_v7.0.401-4.fc40.noarch coreutils-9.4-1.fc40.x86_64 coreutils-common-9.4-1.fc40.x86_64 cpio-2.14-5.fc40.x86_64 cracklib-2.9.11-2.fc39.x86_64 crypto-policies-20231113-1.gitb402e82.fc40.noarch curl-8.4.0-1.fc40.x86_64 cyrus-sasl-lib-2.1.28-11.fc39.x86_64 debugedit-5.0-11.fc40.x86_64 diffutils-3.10-3.fc39.x86_64 dwz-0.15-3.fc39.x86_64 ed-1.19-4.fc39.x86_64 efi-srpm-macros-5-9.fc39.noarch elfutils-0.190-2.fc40.x86_64 elfutils-debuginfod-client-0.190-2.fc40.x86_64 elfutils-default-yama-scope-0.190-2.fc40.noarch elfutils-libelf-0.190-2.fc40.x86_64 elfutils-libs-0.190-2.fc40.x86_64 fedora-gpg-keys-40-0.2.noarch fedora-release-40-0.20.noarch fedora-release-common-40-0.20.noarch fedora-release-identity-basic-40-0.20.noarch fedora-repos-40-0.2.noarch fedora-repos-rawhide-40-0.2.noarch file-5.45-1.fc40.x86_64 file-libs-5.45-1.fc40.x86_64 filesystem-3.18-6.fc39.x86_64 findutils-4.9.0-6.fc40.x86_64 fonts-srpm-macros-2.0.5-12.fc39.noarch forge-srpm-macros-0.1.0-1.fc40.noarch fpc-srpm-macros-1.3-8.fc39.noarch gawk-5.2.2-2.fc39.x86_64 gdb-minimal-13.2-11.fc40.x86_64 gdbm-1.23-4.fc39.x86_64 gdbm-libs-1.23-4.fc39.x86_64 ghc-srpm-macros-1.6.1-3.fc40.noarch glibc-2.38.9000-22.fc40.x86_64 glibc-common-2.38.9000-22.fc40.x86_64 glibc-gconv-extra-2.38.9000-22.fc40.x86_64 glibc-minimal-langpack-2.38.9000-22.fc40.x86_64 gmp-6.2.1-5.fc39.x86_64 gnat-srpm-macros-6-3.fc39.noarch go-srpm-macros-3.3.1-1.fc40.noarch gpg-pubkey-18b8e74c-62f2920f gpg-pubkey-a15b79cc-63d04c2c grep-3.11-5.fc40.x86_64 gzip-1.12-6.fc39.x86_64 info-7.1-1.fc40.x86_64 jansson-2.13.1-7.fc40.x86_64 kernel-srpm-macros-1.0-20.fc39.noarch keyutils-libs-1.6.1-7.fc39.x86_64 krb5-libs-1.21.2-2.fc40.x86_64 libacl-2.3.1-10.fc40.x86_64 libarchive-3.7.2-1.fc40.x86_64 libattr-2.5.1-9.fc40.x86_64 libblkid-2.39.2-1.fc40.x86_64 libbrotli-1.1.0-1.fc40.x86_64 libcap-2.69-1.fc40.x86_64 libcap-ng-0.8.3-8.fc40.x86_64 libcom_err-1.47.0-2.fc39.x86_64 libcurl-8.4.0-1.fc40.x86_64 libeconf-0.5.2-1.fc40.x86_64 libevent-2.1.12-9.fc39.x86_64 libfdisk-2.39.2-1.fc40.x86_64 libffi-3.4.4-4.fc39.x86_64 libgcc-13.2.1-5.fc40.x86_64 libgomp-13.2.1-5.fc40.x86_64 libidn2-2.3.4-3.fc39.x86_64 libmount-2.39.2-1.fc40.x86_64 libnghttp2-1.58.0-1.fc40.x86_64 libnsl2-2.0.0-6.fc39.x86_64 libpkgconf-1.9.5-2.fc39.x86_64 libpsl-0.21.2-4.fc39.x86_64 libpwquality-1.4.5-6.fc39.x86_64 libselinux-3.6-0.rc1.1.fc40.x86_64 libsemanage-3.6-0.rc1.1.fc40.x86_64 libsepol-3.6-0.rc1.1.fc40.x86_64 libsigsegv-2.14-5.fc39.x86_64 libsmartcols-2.39.2-1.fc40.x86_64 libssh-0.10.5-2.fc39.x86_64 libssh-config-0.10.5-2.fc39.noarch libstdc++-13.2.1-5.fc40.x86_64 libtasn1-4.19.0-3.fc39.x86_64 libtirpc-1.3.4-0.fc40.x86_64 libunistring-1.1-5.fc40.x86_64 libutempter-1.2.1-10.fc39.x86_64 libuuid-2.39.2-1.fc40.x86_64 libverto-0.3.2-6.fc39.x86_64 libxcrypt-4.4.36-2.fc39.x86_64 libxml2-2.12.0-1.fc40.x86_64 libzstd-1.5.5-4.fc39.x86_64 lua-libs-5.4.6-3.fc39.x86_64 lua-srpm-macros-1-9.fc39.noarch lz4-libs-1.9.4-4.fc39.x86_64 mpfr-4.2.1-1.fc40.x86_64 ncurses-base-6.4-8.20231001.fc40.noarch ncurses-libs-6.4-8.20231001.fc40.x86_64 ocaml-srpm-macros-9-1.fc40.noarch openblas-srpm-macros-2-14.fc39.noarch openldap-2.6.6-1.fc39.x86_64 openssl-libs-3.1.4-1.fc40.x86_64 p11-kit-0.25.3-1.fc40.x86_64 p11-kit-trust-0.25.3-1.fc40.x86_64 package-notes-srpm-macros-0.5-9.fc39.noarch pam-1.5.3-8.fc40.x86_64 pam-libs-1.5.3-8.fc40.x86_64 patch-2.7.6-22.fc39.x86_64 pcre2-10.42-2.fc40.x86_64 pcre2-syntax-10.42-2.fc40.noarch perl-srpm-macros-1-51.fc39.noarch pkgconf-1.9.5-2.fc39.x86_64 pkgconf-m4-1.9.5-2.fc39.noarch pkgconf-pkg-config-1.9.5-2.fc39.x86_64 popt-1.19-3.fc39.x86_64 publicsuffix-list-dafsa-20230812-1.fc40.noarch pyproject-srpm-macros-1.10.0-1.fc40.noarch python-srpm-macros-3.12-4.fc40.noarch qt5-srpm-macros-5.15.11-1.fc40.noarch qt6-srpm-macros-6.6.0-1.fc40.noarch readline-8.2-4.fc39.x86_64 redhat-rpm-config-271-1.fc40.noarch rpm-4.19.0-2.fc40.x86_64 rpm-build-4.19.0-2.fc40.x86_64 rpm-build-libs-4.19.0-2.fc40.x86_64 rpm-libs-4.19.0-2.fc40.x86_64 rpm-sequoia-1.5.0-1.fc40.x86_64 rust-srpm-macros-25.2-2.fc40.noarch sed-4.8-14.fc39.x86_64 setup-2.14.4-1.fc39.noarch shadow-utils-4.14.0-2.fc40.x86_64 sqlite-libs-3.44.0-1.fc40.x86_64 systemd-libs-255~rc3-1.fc40.x86_64 tar-1.35-2.fc40.x86_64 unzip-6.0-62.fc39.x86_64 util-linux-2.39.2-1.fc40.x86_64 util-linux-core-2.39.2-1.fc40.x86_64 which-2.21-40.fc39.x86_64 xxhash-libs-0.8.2-1.fc39.x86_64 xz-5.4.5-1.fc40.x86_64 xz-libs-5.4.5-1.fc40.x86_64 zip-3.0-39.fc40.x86_64 zlib-1.2.13-5.fc40.x86_64 zstd-1.5.5-4.fc39.x86_64 Start: buildsrpm Start: rpmbuild -bs Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1698192000 Wrote: /builddir/build/SRPMS/python-gnocchiclient-7.0.8-1.fc40.src.rpm Finish: rpmbuild -bs INFO: chroot_scan: 3 files copied to /var/lib/copr-rpmbuild/results/chroot_scan INFO: /var/lib/mock/fedora-rawhide-x86_64-1700754572.688373/root/var/log/dnf.rpm.log /var/lib/mock/fedora-rawhide-x86_64-1700754572.688373/root/var/log/dnf.librepo.log /var/lib/mock/fedora-rawhide-x86_64-1700754572.688373/root/var/log/dnf.log Finish: buildsrpm INFO: Done(/var/lib/copr-rpmbuild/workspace/workdir-tn6zv5_c/python-gnocchiclient/python-gnocchiclient.spec) Config(child) 0 minutes 46 seconds INFO: Results and/or logs in: /var/lib/copr-rpmbuild/results INFO: Cleaning up build root ('cleanup_on_success=True') Start: clean chroot INFO: unmounting tmpfs. Finish: clean chroot INFO: Start(/var/lib/copr-rpmbuild/results/python-gnocchiclient-7.0.8-1.fc40.src.rpm) Config(fedora-rawhide-x86_64) Start(bootstrap): chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1700754572.688373/root. INFO: reusing tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1700754572.688373/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start(bootstrap): cleaning package manager metadata Finish(bootstrap): cleaning package manager metadata Finish(bootstrap): chroot init Start: chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-1700754572.688373/root. INFO: calling preinit hooks INFO: enabled root cache Start: unpacking root cache Finish: unpacking root cache INFO: enabled package manager cache Start: cleaning package manager metadata Finish: cleaning package manager metadata INFO: enabled HW Info plugin Finish: chroot init INFO: Buildroot is handled by package management downloaded with a bootstrap image: rpm-4.19.0-2.fc40.x86_64 rpm-sequoia-1.5.0-1.fc40.x86_64 python3-dnf-4.18.1-2.fc40.noarch python3-dnf-plugins-core-4.4.3-1.fc40.noarch yum-4.18.1-2.fc40.noarch Start: build phase for python-gnocchiclient-7.0.8-1.fc40.src.rpm Start: build setup for python-gnocchiclient-7.0.8-1.fc40.src.rpm Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1698192000 Wrote: /builddir/build/SRPMS/python-gnocchiclient-7.0.8-1.fc40.src.rpm No matches found for the following disable plugin patterns: local, spacewalk, versionlock Copr repository 23 kB/s | 1.5 kB 00:00 Copr repository 19 MB/s | 3.9 MB 00:00 fedora 646 kB/s | 20 kB 00:00 Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: pyproject-rpm-macros noarch 1.10.0-1.fc40 fedora 41 k python3-devel x86_64 3.12.0-2.fc40 fedora 311 k Installing dependencies: expat x86_64 2.5.0-3.fc39 fedora 110 k libb2 x86_64 0.98.1-9.fc39 fedora 25 k mpdecimal x86_64 2.5.1-7.fc39 fedora 89 k python-pip-wheel noarch 23.2.1-1.fc39 fedora 1.5 M python-rpm-macros noarch 3.12-4.fc40 fedora 19 k python3 x86_64 3.12.0-2.fc40 fedora 26 k python3-libs x86_64 3.12.0-2.fc40 fedora 9.2 M python3-packaging noarch 23.2-2.fc40 fedora 125 k python3-rpm-generators noarch 14-8.fc40 fedora 30 k python3-rpm-macros noarch 3.12-4.fc40 fedora 14 k tzdata noarch 2023c-4.fc40 fedora 717 k Transaction Summary ================================================================================ Install 13 Packages Total size: 12 M Installed size: 47 M Downloading Packages: [SKIPPED] expat-2.5.0-3.fc39.x86_64.rpm: Already downloaded [SKIPPED] libb2-0.98.1-9.fc39.x86_64.rpm: Already downloaded [SKIPPED] mpdecimal-2.5.1-7.fc39.x86_64.rpm: Already downloaded [SKIPPED] pyproject-rpm-macros-1.10.0-1.fc40.noarch.rpm: Already downloaded [SKIPPED] python-pip-wheel-23.2.1-1.fc39.noarch.rpm: Already downloaded [SKIPPED] python-rpm-macros-3.12-4.fc40.noarch.rpm: Already downloaded [SKIPPED] python3-3.12.0-2.fc40.x86_64.rpm: Already downloaded [SKIPPED] python3-devel-3.12.0-2.fc40.x86_64.rpm: Already downloaded [SKIPPED] python3-libs-3.12.0-2.fc40.x86_64.rpm: Already downloaded [SKIPPED] python3-packaging-23.2-2.fc40.noarch.rpm: Already downloaded [SKIPPED] python3-rpm-generators-14-8.fc40.noarch.rpm: Already downloaded [SKIPPED] python3-rpm-macros-3.12-4.fc40.noarch.rpm: Already downloaded [SKIPPED] tzdata-2023c-4.fc40.noarch.rpm: Already downloaded Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : python-rpm-macros-3.12-4.fc40.noarch 1/13 Installing : python3-rpm-macros-3.12-4.fc40.noarch 2/13 Installing : pyproject-rpm-macros-1.10.0-1.fc40.noarch 3/13 Installing : tzdata-2023c-4.fc40.noarch 4/13 Installing : python-pip-wheel-23.2.1-1.fc39.noarch 5/13 Installing : mpdecimal-2.5.1-7.fc39.x86_64 6/13 Installing : libb2-0.98.1-9.fc39.x86_64 7/13 Installing : expat-2.5.0-3.fc39.x86_64 8/13 Installing : python3-3.12.0-2.fc40.x86_64 9/13 Installing : python3-libs-3.12.0-2.fc40.x86_64 10/13 Installing : python3-packaging-23.2-2.fc40.noarch 11/13 Installing : python3-rpm-generators-14-8.fc40.noarch 12/13 Installing : python3-devel-3.12.0-2.fc40.x86_64 13/13 Running scriptlet: python3-devel-3.12.0-2.fc40.x86_64 13/13 Installed: expat-2.5.0-3.fc39.x86_64 libb2-0.98.1-9.fc39.x86_64 mpdecimal-2.5.1-7.fc39.x86_64 pyproject-rpm-macros-1.10.0-1.fc40.noarch python-pip-wheel-23.2.1-1.fc39.noarch python-rpm-macros-3.12-4.fc40.noarch python3-3.12.0-2.fc40.x86_64 python3-devel-3.12.0-2.fc40.x86_64 python3-libs-3.12.0-2.fc40.x86_64 python3-packaging-23.2-2.fc40.noarch python3-rpm-generators-14-8.fc40.noarch python3-rpm-macros-3.12-4.fc40.noarch tzdata-2023c-4.fc40.noarch Complete! Finish: build setup for python-gnocchiclient-7.0.8-1.fc40.src.rpm Start: rpmbuild python-gnocchiclient-7.0.8-1.fc40.src.rpm Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1698192000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.43VQJA + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf gnocchiclient-7.0.8 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/gnocchiclient-7.0.8.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd gnocchiclient-7.0.8 + rm -rf /builddir/build/BUILD/gnocchiclient-7.0.8-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/gnocchiclient-7.0.8-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + 2to3 --write --nobackups . /usr/bin/2to3:3: DeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+ from lib2to3.main import main RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: No changes to ./setup.py RefactoringTool: Refactored ./doc/source/conf.py RefactoringTool: No changes to ./gnocchiclient/auth.py RefactoringTool: Refactored ./gnocchiclient/benchmark.py RefactoringTool: No changes to ./gnocchiclient/client.py RefactoringTool: No changes to ./gnocchiclient/exceptions.py RefactoringTool: Refactored ./gnocchiclient/gendoc.py RefactoringTool: No changes to ./gnocchiclient/osc.py RefactoringTool: Refactored ./gnocchiclient/shell.py RefactoringTool: Refactored ./gnocchiclient/utils.py RefactoringTool: No changes to ./gnocchiclient/version.py RefactoringTool: No changes to ./gnocchiclient/tests/functional/base.py RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_aggregates.py RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_archive_policy.py --- ./doc/source/conf.py (original) +++ ./doc/source/conf.py (refactored) @@ -43,8 +43,8 @@ master_doc = 'index' # General information about the project. -project = u'Gnocchiclient' -copyright = u'%s, The Gnocchi Developers' % datetime.date.today().year +project = 'Gnocchiclient' +copyright = '%s, The Gnocchi Developers' % datetime.date.today().year # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the --- ./gnocchiclient/benchmark.py (original) +++ ./gnocchiclient/benchmark.py (refactored) @@ -37,10 +37,10 @@ def _pickle_method(m): - if m.im_self is None: - return getattr, (m.im_class, m.im_func.func_name) + if m.__self__ is None: + return getattr, (m.__self__.__class__, m.__func__.__name__) else: - return getattr, (m.im_self, m.im_func.func_name) + return getattr, (m.__self__, m.__func__.__name__) six.moves.copyreg.pickle(types.MethodType, _pickle_method) --- ./gnocchiclient/gendoc.py (original) +++ ./gnocchiclient/gendoc.py (refactored) @@ -12,7 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. -from __future__ import absolute_import + import fnmatch @@ -24,7 +24,7 @@ class GnocchiAutoDocDirective(sphinxext.AutoprogramCliffDirective): def _load_commands(self): command_pattern = self.options.get('command') - full_cmd_list = shell.GnocchiCommandManager.SHELL_COMMANDS.keys() + full_cmd_list = list(shell.GnocchiCommandManager.SHELL_COMMANDS.keys()) if command_pattern: commands = [x for x in full_cmd_list if fnmatch.fnmatch(x, command_pattern)] --- ./gnocchiclient/shell.py (original) +++ ./gnocchiclient/shell.py (refactored) @@ -86,7 +86,7 @@ } def load_commands(self, namespace): - for name, command_class in self.SHELL_COMMANDS.items(): + for name, command_class in list(self.SHELL_COMMANDS.items()): self.add_command(name, command_class) @@ -199,10 +199,10 @@ else: if 'description' in error: # Gnocchi format - print(error['description']) + print((error['description'])) elif 'error' in error and 'message' in error['error']: # Keystone format - print(error['error']['message']) + print((error['error']['message'])) def configure_logging(self): if self.options.debug: --- ./gnocchiclient/utils.py (original) +++ ./gnocchiclient/utils.py (refactored) @@ -22,14 +22,14 @@ def add_query_argument(cmd, parser, *args, **kwargs): return parser.add_argument( cmd, - help=u"A query to filter resource. " - u"The syntax is a combination of attribute, operator and value. " - u"For example: id=90d58eea-70d7-4294-a49a-170dcdf44c3c would filter " - u"resource with a certain id. More complex queries can be built, " - u"e.g.: not (flavor_id!=\"1\" and memory>=24). " - u"Use \"\" to force data to be interpreted as string. " - u"Supported operators are: not, and, ∧ or, ∨, >=, <=, !=, >, <, =, " - u"==, eq, ne, lt, gt, ge, le, in, like, ≠, ≥, ≤, like, in.", + help="A query to filter resource. " + "The syntax is a combination of attribute, operator and value. " + "For example: id=90d58eea-70d7-4294-a49a-170dcdf44c3c would filter " + "resource with a certain id. More complex queries can be built, " + "e.g.: not (flavor_id!=\"1\" and memory>=24). " + "Use \"\" to force data to be interpreted as string. " + "Supported operators are: not, and, ∧ or, ∨, >=, <=, !=, >, <, =, " + "==, eq, ne, lt, gt, ge, le, in, like, ≠, ≥, ≤, like, in.", *args, **kwargs) @@ -45,15 +45,15 @@ def format_dict_list(li): return "\n".join( "- " + ", ".join("%s: %s" % (k, v) - for k, v in elem.items()) + for k, v in list(elem.items())) for elem in li) def format_dict_dict(value): return "\n".join( "- %s: " % name + " , ".join("%s: %s" % (k, v) - for k, v in elem.items()) - for name, elem in value.items()) + for k, v in list(elem.items())) + for name, elem in list(value.items())) def format_move_dict_to_root(obj, field): @@ -105,7 +105,7 @@ strings.append("&".join( ("%s=%s" % (k, v) for v in map(urllib_parse.quote, - map(six.text_type, values))))) + list(map(six.text_type, values)))))) return "&".join(strings) --- ./gnocchiclient/tests/functional/test_aggregates.py (original) +++ ./gnocchiclient/tests/functional/test_aggregates.py (refactored) @@ -25,9 +25,9 @@ # CREATE A METRIC result = self.gnocchi( - u'metric', params=u"create" - u' -r metric-res1' - u" --archive-policy-name agg-fetch-test metric-name") + 'metric', params="create" + ' -r metric-res1' + " --archive-policy-name agg-fetch-test metric-name") metric1 = json.loads(result) self.assertIsNotNone(metric1["id"]) self.assertEqual("admin", metric1["creator"]) @@ -38,10 +38,10 @@ # CREATE ANOTHER METRIC result = self.gnocchi( - u'metric', params=u"create" - u' -r metric-res2' - u" --archive-policy-name agg-fetch-test" - u" --unit some-unit metric-name") + 'metric', params="create" + ' -r metric-res2' + " --archive-policy-name agg-fetch-test" + " --unit some-unit metric-name") metric2 = json.loads(result) self.assertIsNotNone(metric2["id"]) self.assertEqual("admin", metric2["creator"]) @@ -113,22 +113,22 @@ measures = json.loads(result) self.assertEqual(4, len(measures)) self.assertIn({'granularity': 1.0, - 'group': u'project_id: None, user_id: None', - 'name': u'%s/metric-name/mean' % r1["id"], - 'timestamp': u'2015-03-06T14:33:57+00:00', + 'group': 'project_id: None, user_id: None', + 'name': '%s/metric-name/mean' % r1["id"], + 'timestamp': '2015-03-06T14:33:57+00:00', 'value': 45.11}, measures) self.assertIn({'granularity': 1.0, - 'group': u'project_id: None, user_id: None', - 'name': u'%s/metric-name/mean' % r1["id"], - 'timestamp': u'2015-03-06T14:34:12+00:00', + 'group': 'project_id: None, user_id: None', + 'name': '%s/metric-name/mean' % r1["id"], + 'timestamp': '2015-03-06T14:34:12+00:00', 'value': 14.0}, measures) self.assertIn({'granularity': 1.0, - 'group': u'project_id: None, user_id: None', - 'name': u'%s/metric-name/mean' % r2["id"], - 'timestamp': u'2015-03-06T14:33:57+00:00', + 'group': 'project_id: None, user_id: None', + 'name': '%s/metric-name/mean' % r2["id"], + 'timestamp': '2015-03-06T14:33:57+00:00', 'value': 45.11}, measures) self.assertIn({'granularity': 1.0, - 'group': u'project_id: None, user_id: None', - 'name': u'%s/metric-name/mean' % r2["id"], - 'timestamp': u'2015-03-06T14:34:12+00:00', + 'group': 'project_id: None, user_id: None', + 'name': '%s/metric-name/mean' % r2["id"], + 'timestamp': '2015-03-06T14:34:12+00:00', 'value': 14.0}, measures) RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_archive_policy_rule.py RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_benchmark.py RefactoringTool: No changes to ./gnocchiclient/tests/functional/test_capabilities.py RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_metric.py --- ./gnocchiclient/tests/functional/test_archive_policy.py (original) +++ ./gnocchiclient/tests/functional/test_archive_policy.py (refactored) @@ -20,17 +20,17 @@ # CREATE apname = str(uuid.uuid4()) result = self.gnocchi( - u'archive-policy', params=u"create %s" - u" --back-window 0" - u" -d granularity:1s,points:86400" % apname) + 'archive-policy', params="create %s" + " --back-window 0" + " -d granularity:1s,points:86400" % apname) policy = json.loads(result) self.assertEqual(apname, policy["name"]) # CREATE FAIL result = self.gnocchi( - u'archive-policy', params=u"create %s" - u" --back-window 0" - u" -d granularity:1s,points:86400" % apname, + 'archive-policy', params="create %s" + " --back-window 0" + " -d granularity:1s,points:86400" % apname, fail_ok=True, merge_stderr=True) self.assertEqual( "Archive policy %s already exists (HTTP 409)\n" % apname, --- ./gnocchiclient/tests/functional/test_archive_policy_rule.py (original) +++ ./gnocchiclient/tests/functional/test_archive_policy_rule.py (refactored) @@ -20,22 +20,22 @@ apname = str(uuid.uuid4()) # Create an archive policy self.gnocchi( - u'archive-policy', params=u"create %s" - u" -d granularity:1s,points:86400" % apname) + 'archive-policy', params="create %s" + " -d granularity:1s,points:86400" % apname) # CREATE result = self.gnocchi( - u'archive-policy-rule', params=u"create test" - u" --archive-policy-name %s" - u" --metric-pattern 'disk.io.*'" % apname) + 'archive-policy-rule', params="create test" + " --archive-policy-name %s" + " --metric-pattern 'disk.io.*'" % apname) policy_rule = json.loads(result) self.assertEqual('test', policy_rule["name"]) # CREATE FAIL result = self.gnocchi( - u'archive-policy-rule', params=u"create test" - u" --archive-policy-name high" - u" --metric-pattern 'disk.io.*'", + 'archive-policy-rule', params="create test" + " --archive-policy-name high" + " --metric-pattern 'disk.io.*'", fail_ok=True, merge_stderr=True) self.assertEqual( "Archive policy rule test already exists (HTTP 409)\n", @@ -56,12 +56,12 @@ # CREATE - RENAME - GET self.gnocchi( - u'archive-policy-rule', params=u"create to_rename" - u" --archive-policy-name %s" - u" --metric-pattern 'disk.io.*'" % apname) + 'archive-policy-rule', params="create to_rename" + " --archive-policy-name %s" + " --metric-pattern 'disk.io.*'" % apname) result = self.gnocchi( - u'archive-policy-rule', params=u'update to_rename' - u' --name renamed') + 'archive-policy-rule', params='update to_rename' + ' --name renamed') policy_rule = json.loads(result) self.assertEqual('renamed', policy_rule["name"]) --- ./gnocchiclient/tests/functional/test_benchmark.py (original) +++ ./gnocchiclient/tests/functional/test_benchmark.py (refactored) @@ -18,7 +18,7 @@ class BenchmarkMetricTest(base.ClientTestBase): def test_benchmark_metric_create_wrong_workers(self): result = self.gnocchi( - u'benchmark', params=u"metric create -n 0", + 'benchmark', params="metric create -n 0", fail_ok=True, merge_stderr=True) self.assertIn("0 must be greater than 0", result) @@ -29,7 +29,7 @@ "--back-window 0 -d granularity:1s,points:86400" % apname) result = self.gnocchi( - u'benchmark', params=u"metric create -n 10 -a %s" % apname) + 'benchmark', params="metric create -n 10 -a %s" % apname) result = json.loads(result) self.assertEqual(10, int(result['create executed'])) self.assertLessEqual(int(result['create failures']), 10) @@ -37,7 +37,7 @@ int(result['create executed'])) result = self.gnocchi( - u'benchmark', params=u"metric create -k -n 10 -a %s" % apname) + 'benchmark', params="metric create -k -n 10 -a %s" % apname) result = json.loads(result) self.assertEqual(10, int(result['create executed'])) self.assertLessEqual(int(result['create failures']), 10) @@ -50,11 +50,11 @@ "--back-window 0 -d granularity:1s,points:86400" % apname) result = self.gnocchi( - u'metric', params=u"create -a %s" % apname) + 'metric', params="create -a %s" % apname) metric = json.loads(result) result = self.gnocchi( - u'benchmark', params=u"metric show -n 10 %s" % metric['id']) + 'benchmark', params="metric show -n 10 %s" % metric['id']) result = json.loads(result) self.assertEqual(10, int(result['show executed'])) self.assertLessEqual(int(result['show failures']), 10) @@ -66,26 +66,26 @@ "--back-window 0 -d granularity:1s,points:86400" % apname) result = self.gnocchi( - u'metric', params=u"create -a %s" % apname) + 'metric', params="create -a %s" % apname) metric = json.loads(result) result = self.gnocchi( - u'benchmark', params=u"measures add -n 10 -b 4 %s" % metric['id']) + 'benchmark', params="measures add -n 10 -b 4 %s" % metric['id']) result = json.loads(result) self.assertEqual(2, int(result['push executed'])) self.assertLessEqual(int(result['push failures']), 2) result = self.gnocchi( - u'benchmark', - params=u"measures add -s 2010-01-01 -n 10 -b 4 %s" + 'benchmark', + params="measures add -s 2010-01-01 -n 10 -b 4 %s" % metric['id']) result = json.loads(result) self.assertEqual(2, int(result['push executed'])) self.assertLessEqual(int(result['push failures']), 2) result = self.gnocchi( - u'benchmark', - params=u"measures add --wait -s 2010-01-01 -n 10 -b 4 %s" + 'benchmark', + params="measures add --wait -s 2010-01-01 -n 10 -b 4 %s" % metric['id']) result = json.loads(result) self.assertEqual(2, int(result['push executed'])) @@ -99,12 +99,12 @@ "--back-window 0 -d granularity:1s,points:86400" % apname) result = self.gnocchi( - u'metric', params=u"create -a %s" % apname) + 'metric', params="create -a %s" % apname) metric = json.loads(result) result = self.gnocchi( - u'benchmark', - params=u"measures show -n 2 %s" + 'benchmark', + params="measures show -n 2 %s" % metric['id']) result = json.loads(result) self.assertEqual(2, int(result['show executed'])) --- ./gnocchiclient/tests/functional/test_metric.py (original) +++ ./gnocchiclient/tests/functional/test_metric.py (refactored) @@ -28,13 +28,13 @@ "--back-window 0 -d granularity:1s,points:86400" % apname) # Create 2 metrics result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name %s" % apname) + 'metric', params="create" + " --archive-policy-name %s" % apname) metric1 = json.loads(result) result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name %s" % apname) + 'metric', params="create" + " --archive-policy-name %s" % apname) metric2 = json.loads(result) # DELETE @@ -68,11 +68,11 @@ for i in range(1005): c.metric.create({"archive_policy_name": apname}) RefactoringTool: No changes to ./gnocchiclient/tests/functional/test_osc.py RefactoringTool: No changes to ./gnocchiclient/tests/functional/test_others.py RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_resource.py RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_resource_type.py - result = self.gnocchi(u'metric', params=u"list") + result = self.gnocchi('metric', params="list") self.assertGreaterEqual(len(json.loads(result)), 1005) - result = self.gnocchi(u'metric', params=u"list" - u" --limit 2") + result = self.gnocchi('metric', params="list" + " --limit 2") self.assertEqual(2, len(json.loads(result))) def test_metric_measures_exhautic_format(self): @@ -83,8 +83,8 @@ # CREATE METRIC metric_name = str(uuid.uuid4()) result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name " + ap_name + " " + metric_name) + 'metric', params="create" + " --archive-policy-name " + ap_name + " " + metric_name) metric = json.loads(result) # MEASURES ADD @@ -108,8 +108,8 @@ # CREATE METRIC metric_name = str(uuid.uuid4()) result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name " + ap_name + " " + metric_name) + 'metric', params="create" + " --archive-policy-name " + ap_name + " " + metric_name) metric = json.loads(result) # MEASURES ADD @@ -145,8 +145,8 @@ # CREATE WITH NAME AND WITHOUT UNIT result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name metric-test some-name") + 'metric', params="create" + " --archive-policy-name metric-test some-name") metric = json.loads(result) self.assertIsNotNone(metric["id"]) self.assertEqual("admin", metric["creator"]) @@ -157,9 +157,9 @@ # CREATE WITH UNIT result = self.gnocchi( - u'metric', params=u"create another-name" - u" --archive-policy-name metric-test" - u" --unit some-unit") + 'metric', params="create another-name" + " --archive-policy-name metric-test" + " --unit some-unit") metric = json.loads(result) self.assertIsNotNone(metric["id"]) self.assertEqual("admin", metric["creator"]) @@ -238,7 +238,7 @@ self.assertEqual([ {'granularity': 3600.0, 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:00:00+00:00')).isoformat(), + utils.parse_date('2015-03-06T14:00:00+00:00')).isoformat(), 'value': 27.555} ], measures) @@ -327,9 +327,9 @@ metric_name = str(uuid.uuid4()) # CREATE result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name metric-test2 -r metric-res %s" - u" --unit some-unit" % metric_name) + 'metric', params="create" + " --archive-policy-name metric-test2 -r metric-res %s" + " --unit some-unit" % metric_name) metric = json.loads(result) self.assertIsNotNone(metric["id"]) self.assertEqual("admin", metric['creator']) @@ -340,8 +340,8 @@ # CREATE FAIL result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name metric-test2 " + 'metric', params="create" + " --archive-policy-name metric-test2 " "-r metric-res %s" % metric_name, fail_ok=True, merge_stderr=True) self.assertEqual( @@ -403,11 +403,11 @@ self.assertEqual([ {'granularity': 1.0, 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:33:57+00:00')).isoformat(), - 'value': 43.11}, - {'granularity': 1.0, - 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:34:12+00:00')).isoformat(), + utils.parse_date('2015-03-06T14:33:57+00:00')).isoformat(), + 'value': 43.11}, + {'granularity': 1.0, + 'timestamp': utils.dt_to_localtz( + utils.parse_date('2015-03-06T14:34:12+00:00')).isoformat(), 'value': 12.0} ], measures) @@ -425,11 +425,11 @@ self.assertEqual([ {'granularity': 1.0, 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:33:57+00:00')).isoformat(), - 'value': 43.11}, - {'granularity': 1.0, - 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:34:12+00:00')).isoformat(), + utils.parse_date('2015-03-06T14:33:57+00:00')).isoformat(), + 'value': 43.11}, + {'granularity': 1.0, + 'timestamp': utils.dt_to_localtz( + utils.parse_date('2015-03-06T14:34:12+00:00')).isoformat(), 'value': 12.0} ], measures) @@ -469,12 +469,12 @@ {'group': 'project_id: None, user_id: None', 'granularity': 1.0, 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:33:57+00:00')).isoformat(), + utils.parse_date('2015-03-06T14:33:57+00:00')).isoformat(), 'value': 43.11}, {'group': 'project_id: None, user_id: None', 'granularity': 1.0, 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:34:12+00:00')).isoformat(), + utils.parse_date('2015-03-06T14:34:12+00:00')).isoformat(), 'value': 12.0}, ], measures) @@ -489,11 +489,11 @@ self.assertEqual([ {'granularity': 1.0, 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:33:57+00:00')).isoformat(), - 'value': 43.11}, - {'granularity': 1.0, - 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:34:12+00:00')).isoformat(), + utils.parse_date('2015-03-06T14:33:57+00:00')).isoformat(), + 'value': 43.11}, + {'granularity': 1.0, + 'timestamp': utils.dt_to_localtz( + utils.parse_date('2015-03-06T14:34:12+00:00')).isoformat(), 'value': 12.0}, ], measures) --- ./gnocchiclient/tests/functional/test_resource.py (original) +++ ./gnocchiclient/tests/functional/test_resource.py (refactored) @@ -29,12 +29,12 @@ apname = str(uuid.uuid4()) # Create an archive policy self.gnocchi( - u'archive-policy', params=u"create %s" - u" -d granularity:1s,points:86400" % apname) + 'archive-policy', params="create %s" + " -d granularity:1s,points:86400" % apname) # CREATE result = self.gnocchi( - u'resource', params=u"create %s --type generic" % + 'resource', params="create %s --type generic" % self.RESOURCE_ID) resource = json.loads(result) self.assertEqual(self.RESOURCE_ID, resource["id"]) @@ -170,10 +170,10 @@ # Create and Batch Delete result1 = self.gnocchi( - u'resource', params=u"create %s --type generic" % + 'resource', params="create %s --type generic" % self.RESOURCE_ID) result2 = self.gnocchi( - u'resource', params=u"create %s --type generic" % + 'resource', params="create %s --type generic" % self.RESOURCE_ID2) resource1 = json.loads(result1) resource2 = json.loads(result2) --- ./gnocchiclient/tests/functional/test_resource_type.py (original) +++ ./gnocchiclient/tests/functional/test_resource_type.py (refactored) @@ -30,8 +30,8 @@ # CREATE result = self.gnocchi( - u'resource-type', - params=u"create -a foo:string:true:max_length=16 " + 'resource-type', + params="create -a foo:string:true:max_length=16 " "-a bar:number:no:max=32 %s" % self.RESOURCE_TYPE) resource = json.loads(result) RefactoringTool: No changes to ./gnocchiclient/tests/unit/test_auth.py RefactoringTool: No changes to ./gnocchiclient/tests/unit/test_exceptions.py RefactoringTool: No changes to ./gnocchiclient/v1/aggregates.py RefactoringTool: No changes to ./gnocchiclient/v1/aggregates_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/archive_policy.py RefactoringTool: No changes to ./gnocchiclient/v1/archive_policy_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/archive_policy_rule.py RefactoringTool: No changes to ./gnocchiclient/v1/archive_policy_rule_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/base.py RefactoringTool: No changes to ./gnocchiclient/v1/build.py RefactoringTool: No changes to ./gnocchiclient/v1/build_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/capabilities.py RefactoringTool: No changes to ./gnocchiclient/v1/capabilities_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/client.py RefactoringTool: No changes to ./gnocchiclient/v1/metric.py RefactoringTool: No changes to ./gnocchiclient/v1/metric_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/resource.py RefactoringTool: Refactored ./gnocchiclient/v1/resource_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/resource_type.py RefactoringTool: Refactored ./gnocchiclient/v1/resource_type_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/status.py RefactoringTool: No changes to ./gnocchiclient/v1/status_cli.py RefactoringTool: Files that were modified: RefactoringTool: ./setup.py RefactoringTool: ./doc/source/conf.py RefactoringTool: ./gnocchiclient/auth.py RefactoringTool: ./gnocchiclient/benchmark.py RefactoringTool: ./gnocchiclient/client.py RefactoringTool: ./gnocchiclient/exceptions.py RefactoringTool: ./gnocchiclient/gendoc.py RefactoringTool: ./gnocchiclient/osc.py RefactoringTool: ./gnocchiclient/shell.py RefactoringTool: ./gnocchiclient/utils.py RefactoringTool: ./gnocchiclient/version.py RefactoringTool: ./gnocchiclient/tests/functional/base.py RefactoringTool: ./gnocchiclient/tests/functional/test_aggregates.py RefactoringTool: ./gnocchiclient/tests/functional/test_archive_policy.py RefactoringTool: ./gnocchiclient/tests/functional/test_archive_policy_rule.py RefactoringTool: ./gnocchiclient/tests/functional/test_benchmark.py RefactoringTool: ./gnocchiclient/tests/functional/test_capabilities.py RefactoringTool: ./gnocchiclient/tests/functional/test_metric.py RefactoringTool: ./gnocchiclient/tests/functional/test_osc.py RefactoringTool: ./gnocchiclient/tests/functional/test_others.py RefactoringTool: ./gnocchiclient/tests/functional/test_resource.py RefactoringTool: ./gnocchiclient/tests/functional/test_resource_type.py RefactoringTool: ./gnocchiclient/tests/unit/test_auth.py RefactoringTool: ./gnocchiclient/tests/unit/test_exceptions.py RefactoringTool: ./gnocchiclient/v1/aggregates.py RefactoringTool: ./gnocchiclient/v1/aggregates_cli.py RefactoringTool: ./gnocchiclient/v1/archive_policy.py RefactoringTool: ./gnocchiclient/v1/archive_policy_cli.py RefactoringTool: ./gnocchiclient/v1/archive_policy_rule.py RefactoringTool: ./gnocchiclient/v1/archive_policy_rule_cli.py RefactoringTool: ./gnocchiclient/v1/base.py RefactoringTool: ./gnocchiclient/v1/build.py RefactoringTool: ./gnocchiclient/v1/build_cli.py RefactoringTool: ./gnocchiclient/v1/capabilities.py RefactoringTool: ./gnocchiclient/v1/capabilities_cli.py RefactoringTool: ./gnocchiclient/v1/client.py RefactoringTool: ./gnocchiclient/v1/metric.py RefactoringTool: ./gnocchiclient/v1/metric_cli.py RefactoringTool: ./gnocchiclient/v1/resource.py RefactoringTool: ./gnocchiclient/v1/resource_cli.py RefactoringTool: ./gnocchiclient/v1/resource_type.py RefactoringTool: ./gnocchiclient/v1/resource_type_cli.py RefactoringTool: ./gnocchiclient/v1/status.py self.assertEqual(self.RESOURCE_TYPE, resource["name"]) @@ -41,7 +41,7 @@ # SHOW result = self.gnocchi( - u'resource-type', params=u"show %s" % self.RESOURCE_TYPE) + 'resource-type', params="show %s" % self.RESOURCE_TYPE) resource = json.loads(result) self.assertEqual(self.RESOURCE_TYPE, resource["name"]) self.assertEqual( @@ -50,8 +50,8 @@ # PATCH result = self.gnocchi( - u'resource-type', - params=u"update -r foo " + 'resource-type', + params="update -r foo " "-a new:number:yes:max=16:fill=8 %s" % self.RESOURCE_TYPE) resource = json.loads(result) self.assertEqual(self.RESOURCE_TYPE, resource["name"]) @@ -62,7 +62,7 @@ # SHOW result = self.gnocchi( - u'resource-type', params=u"show %s" % self.RESOURCE_TYPE) + 'resource-type', params="show %s" % self.RESOURCE_TYPE) resource = json.loads(result) self.assertEqual(self.RESOURCE_TYPE, resource["name"]) self.assertNotIn("attributes/foo", resource) @@ -72,7 +72,7 @@ # Create a resource for this type result = self.gnocchi( - u'resource', params=(u"create %s -t %s -a new:5") % + 'resource', params=("create %s -t %s -a new:5") % (self.RESOURCE_ID, self.RESOURCE_TYPE)) resource = json.loads(result) self.assertEqual(self.RESOURCE_ID, resource["id"]) @@ -98,8 +98,8 @@ result) # SHOW AGAIN - result = self.gnocchi(u'resource-type', - params=u"show %s" % self.RESOURCE_TYPE, + result = self.gnocchi('resource-type', + params="show %s" % self.RESOURCE_TYPE, fail_ok=True, merge_stderr=True) self.assertEqual( "Resource type %s does not exist (HTTP 404)\n" --- ./gnocchiclient/v1/resource_cli.py (original) +++ ./gnocchiclient/v1/resource_cli.py (refactored) @@ -115,7 +115,7 @@ def normalize_metrics(res): res['metrics'] = "\n".join(sorted( ["%s: %s" % (name, _id) - for name, _id in res['metrics'].items()])) + for name, _id in list(res['metrics'].items())])) return res --- ./gnocchiclient/v1/resource_type_cli.py (original) +++ ./gnocchiclient/v1/resource_type_cli.py (refactored) @@ -42,14 +42,14 @@ parser.add_argument("-a", "--attribute", action='append', type=self._resource_attribute, default=[], - help=(u"attribute definition, " - u"attribute_name:" - u"attribute_type:" - u"attribute_is_required:" - u"attribute_type_option_name=" - u"attribute_type_option_value:... " - u"For example: " - u"display_name:string:true:max_length=255")) + help=("attribute definition, " + "attribute_name:" + "attribute_type:" + "attribute_is_required:" + "attribute_type_option_name=" + "attribute_type_option_value:... " + "For example: " + "display_name:string:true:max_length=255")) return parser @classmethod @@ -90,7 +90,7 @@ parser = super(CliResourceTypeUpdate, self).get_parser(prog_name) parser.add_argument("-r", "--remove-attribute", action='append', default=[], - help=u"attribute name") + help="attribute name") return parser RefactoringTool: ./gnocchiclient/v1/status_cli.py + sed -i '/^[[:space:]]*-c{env:.*_CONSTRAINTS_FILE.*/d' tox.ini + sed -i 's/^deps = -c{env:.*_CONSTRAINTS_FILE.*/deps =/' tox.ini + sed -i '/^minversion.*/d' tox.ini + sed -i '/^requires.*virtualenv.*/d' tox.ini + sed -i '/\.\[test,openstack\]/,+2d' tox.ini + sed -i '/\.*\[testenv\]deps/,+1d' tox.ini + sed -i '/\.\[test,doc\]/d' tox.ini + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.79sk2c + umask 022 + cd /builddir/build/BUILD + cd gnocchiclient-7.0.8 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/gnocchiclient-7.0.8/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/gnocchiclient-7.0.8/.pyproject-builddir + RPM_TOXENV=py312 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/gnocchiclient-7.0.8/pyproject-wheeldir --output /builddir/build/BUILD/python-gnocchiclient-7.0.8-1.fc40.x86_64-pyproject-buildrequires -t -e py312 Handling setuptools from build-system.requires Requirement not satisfied: setuptools Handling setuptools_scm from build-system.requires Requirement not satisfied: setuptools_scm Handling wheel from build-system.requires Requirement not satisfied: wheel Exiting dependency generation pass: build backend + cat /builddir/build/BUILD/python-gnocchiclient-7.0.8-1.fc40.x86_64-pyproject-buildrequires + rm -rfv '*.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-gnocchiclient-7.0.8-1.fc40.buildreqs.nosrc.rpm INFO: Going to install missing dynamic buildrequires No matches found for the following disable plugin patterns: local, spacewalk, versionlock Copr repository 37 kB/s | 1.5 kB 00:00 fedora 627 kB/s | 20 kB 00:00 Package pyproject-rpm-macros-1.10.0-1.fc40.noarch is already installed. Package pyproject-rpm-macros-1.10.0-1.fc40.noarch is already installed. Package python3-devel-3.12.0-2.fc40.x86_64 is already installed. Package python3-devel-3.12.0-2.fc40.x86_64 is already installed. Package python3-packaging-23.2-2.fc40.noarch is already installed. Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: python3-pip noarch 23.2.1-1.fc39 fedora 3.1 M python3-setuptools noarch 68.2.2-1.fc40 fedora 1.5 M python3-setuptools_scm noarch 8.0.4-1.fc40 fedora 114 k python3-wheel noarch 1:0.41.2-1.fc40 fedora 163 k Installing dependencies: python3-typing-extensions noarch 4.8.0-1.fc40 fedora 75 k Transaction Summary ================================================================================ Install 5 Packages Total size: 5.0 M Total download size: 189 k Installed size: 22 M Downloading Packages: [SKIPPED] python3-pip-23.2.1-1.fc39.noarch.rpm: Already downloaded [SKIPPED] python3-setuptools-68.2.2-1.fc40.noarch.rpm: Already downloaded [SKIPPED] python3-wheel-0.41.2-1.fc40.noarch.rpm: Already downloaded (4/5): python3-typing-extensions-4.8.0-1.fc40.n 143 kB/s | 75 kB 00:00 (5/5): python3-setuptools_scm-8.0.4-1.fc40.noar 189 kB/s | 114 kB 00:00 -------------------------------------------------------------------------------- Total 294 kB/s | 189 kB 00:00 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : python3-setuptools-68.2.2-1.fc40.noarch 1/5 Installing : python3-typing-extensions-4.8.0-1.fc40.noarch 2/5 Installing : python3-setuptools_scm-8.0.4-1.fc40.noarch 3/5 Installing : python3-pip-23.2.1-1.fc39.noarch 4/5 Installing : python3-wheel-1:0.41.2-1.fc40.noarch 5/5 Running scriptlet: python3-wheel-1:0.41.2-1.fc40.noarch 5/5 Installed: python3-pip-23.2.1-1.fc39.noarch python3-setuptools-68.2.2-1.fc40.noarch python3-setuptools_scm-8.0.4-1.fc40.noarch python3-typing-extensions-4.8.0-1.fc40.noarch python3-wheel-1:0.41.2-1.fc40.noarch Complete! Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1698192000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ReD9OV + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf gnocchiclient-7.0.8 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/gnocchiclient-7.0.8.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd gnocchiclient-7.0.8 + rm -rf /builddir/build/BUILD/gnocchiclient-7.0.8-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/gnocchiclient-7.0.8-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + 2to3 --write --nobackups . /usr/bin/2to3:3: DeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+ from lib2to3.main import main RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: No changes to ./setup.py RefactoringTool: Refactored ./doc/source/conf.py RefactoringTool: No changes to ./gnocchiclient/auth.py RefactoringTool: Refactored ./gnocchiclient/benchmark.py RefactoringTool: No changes to ./gnocchiclient/client.py RefactoringTool: No changes to ./gnocchiclient/exceptions.py RefactoringTool: Refactored ./gnocchiclient/gendoc.py RefactoringTool: No changes to ./gnocchiclient/osc.py RefactoringTool: Refactored ./gnocchiclient/shell.py RefactoringTool: Refactored ./gnocchiclient/utils.py RefactoringTool: No changes to ./gnocchiclient/version.py RefactoringTool: No changes to ./gnocchiclient/tests/functional/base.py RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_aggregates.py RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_archive_policy.py --- ./doc/source/conf.py (original) +++ ./doc/source/conf.py (refactored) @@ -43,8 +43,8 @@ master_doc = 'index' # General information about the project. -project = u'Gnocchiclient' -copyright = u'%s, The Gnocchi Developers' % datetime.date.today().year +project = 'Gnocchiclient' +copyright = '%s, The Gnocchi Developers' % datetime.date.today().year # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the --- ./gnocchiclient/benchmark.py (original) +++ ./gnocchiclient/benchmark.py (refactored) @@ -37,10 +37,10 @@ def _pickle_method(m): - if m.im_self is None: - return getattr, (m.im_class, m.im_func.func_name) + if m.__self__ is None: + return getattr, (m.__self__.__class__, m.__func__.__name__) else: - return getattr, (m.im_self, m.im_func.func_name) + return getattr, (m.__self__, m.__func__.__name__) six.moves.copyreg.pickle(types.MethodType, _pickle_method) --- ./gnocchiclient/gendoc.py (original) +++ ./gnocchiclient/gendoc.py (refactored) @@ -12,7 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. -from __future__ import absolute_import + import fnmatch @@ -24,7 +24,7 @@ class GnocchiAutoDocDirective(sphinxext.AutoprogramCliffDirective): def _load_commands(self): command_pattern = self.options.get('command') - full_cmd_list = shell.GnocchiCommandManager.SHELL_COMMANDS.keys() + full_cmd_list = list(shell.GnocchiCommandManager.SHELL_COMMANDS.keys()) if command_pattern: commands = [x for x in full_cmd_list if fnmatch.fnmatch(x, command_pattern)] --- ./gnocchiclient/shell.py (original) +++ ./gnocchiclient/shell.py (refactored) @@ -86,7 +86,7 @@ } def load_commands(self, namespace): - for name, command_class in self.SHELL_COMMANDS.items(): + for name, command_class in list(self.SHELL_COMMANDS.items()): self.add_command(name, command_class) @@ -199,10 +199,10 @@ else: if 'description' in error: # Gnocchi format - print(error['description']) + print((error['description'])) elif 'error' in error and 'message' in error['error']: # Keystone format - print(error['error']['message']) + print((error['error']['message'])) def configure_logging(self): if self.options.debug: --- ./gnocchiclient/utils.py (original) +++ ./gnocchiclient/utils.py (refactored) @@ -22,14 +22,14 @@ def add_query_argument(cmd, parser, *args, **kwargs): return parser.add_argument( cmd, - help=u"A query to filter resource. " - u"The syntax is a combination of attribute, operator and value. " - u"For example: id=90d58eea-70d7-4294-a49a-170dcdf44c3c would filter " - u"resource with a certain id. More complex queries can be built, " - u"e.g.: not (flavor_id!=\"1\" and memory>=24). " - u"Use \"\" to force data to be interpreted as string. " - u"Supported operators are: not, and, ∧ or, ∨, >=, <=, !=, >, <, =, " - u"==, eq, ne, lt, gt, ge, le, in, like, ≠, ≥, ≤, like, in.", + help="A query to filter resource. " + "The syntax is a combination of attribute, operator and value. " + "For example: id=90d58eea-70d7-4294-a49a-170dcdf44c3c would filter " + "resource with a certain id. More complex queries can be built, " + "e.g.: not (flavor_id!=\"1\" and memory>=24). " + "Use \"\" to force data to be interpreted as string. " + "Supported operators are: not, and, ∧ or, ∨, >=, <=, !=, >, <, =, " + "==, eq, ne, lt, gt, ge, le, in, like, ≠, ≥, ≤, like, in.", *args, **kwargs) @@ -45,15 +45,15 @@ def format_dict_list(li): return "\n".join( "- " + ", ".join("%s: %s" % (k, v) - for k, v in elem.items()) + for k, v in list(elem.items())) for elem in li) def format_dict_dict(value): return "\n".join( "- %s: " % name + " , ".join("%s: %s" % (k, v) - for k, v in elem.items()) - for name, elem in value.items()) + for k, v in list(elem.items())) + for name, elem in list(value.items())) def format_move_dict_to_root(obj, field): @@ -105,7 +105,7 @@ strings.append("&".join( ("%s=%s" % (k, v) for v in map(urllib_parse.quote, - map(six.text_type, values))))) + list(map(six.text_type, values)))))) return "&".join(strings) --- ./gnocchiclient/tests/functional/test_aggregates.py (original) +++ ./gnocchiclient/tests/functional/test_aggregates.py (refactored) @@ -25,9 +25,9 @@ # CREATE A METRIC result = self.gnocchi( - u'metric', params=u"create" - u' -r metric-res1' - u" --archive-policy-name agg-fetch-test metric-name") + 'metric', params="create" + ' -r metric-res1' + " --archive-policy-name agg-fetch-test metric-name") metric1 = json.loads(result) self.assertIsNotNone(metric1["id"]) self.assertEqual("admin", metric1["creator"]) @@ -38,10 +38,10 @@ # CREATE ANOTHER METRIC result = self.gnocchi( - u'metric', params=u"create" - u' -r metric-res2' - u" --archive-policy-name agg-fetch-test" - u" --unit some-unit metric-name") + 'metric', params="create" + ' -r metric-res2' + " --archive-policy-name agg-fetch-test" + " --unit some-unit metric-name") metric2 = json.loads(result) self.assertIsNotNone(metric2["id"]) self.assertEqual("admin", metric2["creator"]) @@ -113,22 +113,22 @@ measures = json.loads(result) self.assertEqual(4, len(measures)) self.assertIn({'granularity': 1.0, - 'group': u'project_id: None, user_id: None', - 'name': u'%s/metric-name/mean' % r1["id"], - 'timestamp': u'2015-03-06T14:33:57+00:00', + 'group': 'project_id: None, user_id: None', + 'name': '%s/metric-name/mean' % r1["id"], + 'timestamp': '2015-03-06T14:33:57+00:00', 'value': 45.11}, measures) self.assertIn({'granularity': 1.0, - 'group': u'project_id: None, user_id: None', - 'name': u'%s/metric-name/mean' % r1["id"], - 'timestamp': u'2015-03-06T14:34:12+00:00', + 'group': 'project_id: None, user_id: None', + 'name': '%s/metric-name/mean' % r1["id"], + 'timestamp': '2015-03-06T14:34:12+00:00', 'value': 14.0}, measures) self.assertIn({'granularity': 1.0, - 'group': u'project_id: None, user_id: None', - 'name': u'%s/metric-name/mean' % r2["id"], - 'timestamp': u'2015-03-06T14:33:57+00:00', + 'group': 'project_id: None, user_id: None', + 'name': '%s/metric-name/mean' % r2["id"], + 'timestamp': '2015-03-06T14:33:57+00:00', 'value': 45.11}, measures) self.assertIn({'granularity': 1.0, - 'group': u'project_id: None, user_id: None', - 'name': u'%s/metric-name/mean' % r2["id"], - 'timestamp': u'2015-03-06T14:34:12+00:00', + 'group': 'project_id: None, user_id: None', + 'name': '%s/metric-name/mean' % r2["id"], + 'timestamp': '2015-03-06T14:34:12+00:00', 'value': 14.0}, measures) RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_archive_policy_rule.py RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_benchmark.py RefactoringTool: No changes to ./gnocchiclient/tests/functional/test_capabilities.py RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_metric.py --- ./gnocchiclient/tests/functional/test_archive_policy.py (original) +++ ./gnocchiclient/tests/functional/test_archive_policy.py (refactored) @@ -20,17 +20,17 @@ # CREATE apname = str(uuid.uuid4()) result = self.gnocchi( - u'archive-policy', params=u"create %s" - u" --back-window 0" - u" -d granularity:1s,points:86400" % apname) + 'archive-policy', params="create %s" + " --back-window 0" + " -d granularity:1s,points:86400" % apname) policy = json.loads(result) self.assertEqual(apname, policy["name"]) # CREATE FAIL result = self.gnocchi( - u'archive-policy', params=u"create %s" - u" --back-window 0" - u" -d granularity:1s,points:86400" % apname, + 'archive-policy', params="create %s" + " --back-window 0" + " -d granularity:1s,points:86400" % apname, fail_ok=True, merge_stderr=True) self.assertEqual( "Archive policy %s already exists (HTTP 409)\n" % apname, --- ./gnocchiclient/tests/functional/test_archive_policy_rule.py (original) +++ ./gnocchiclient/tests/functional/test_archive_policy_rule.py (refactored) @@ -20,22 +20,22 @@ apname = str(uuid.uuid4()) # Create an archive policy self.gnocchi( - u'archive-policy', params=u"create %s" - u" -d granularity:1s,points:86400" % apname) + 'archive-policy', params="create %s" + " -d granularity:1s,points:86400" % apname) # CREATE result = self.gnocchi( - u'archive-policy-rule', params=u"create test" - u" --archive-policy-name %s" - u" --metric-pattern 'disk.io.*'" % apname) + 'archive-policy-rule', params="create test" + " --archive-policy-name %s" + " --metric-pattern 'disk.io.*'" % apname) policy_rule = json.loads(result) self.assertEqual('test', policy_rule["name"]) # CREATE FAIL result = self.gnocchi( - u'archive-policy-rule', params=u"create test" - u" --archive-policy-name high" - u" --metric-pattern 'disk.io.*'", + 'archive-policy-rule', params="create test" + " --archive-policy-name high" + " --metric-pattern 'disk.io.*'", fail_ok=True, merge_stderr=True) self.assertEqual( "Archive policy rule test already exists (HTTP 409)\n", @@ -56,12 +56,12 @@ # CREATE - RENAME - GET self.gnocchi( - u'archive-policy-rule', params=u"create to_rename" - u" --archive-policy-name %s" - u" --metric-pattern 'disk.io.*'" % apname) + 'archive-policy-rule', params="create to_rename" + " --archive-policy-name %s" + " --metric-pattern 'disk.io.*'" % apname) result = self.gnocchi( - u'archive-policy-rule', params=u'update to_rename' - u' --name renamed') + 'archive-policy-rule', params='update to_rename' + ' --name renamed') policy_rule = json.loads(result) self.assertEqual('renamed', policy_rule["name"]) --- ./gnocchiclient/tests/functional/test_benchmark.py (original) +++ ./gnocchiclient/tests/functional/test_benchmark.py (refactored) @@ -18,7 +18,7 @@ class BenchmarkMetricTest(base.ClientTestBase): def test_benchmark_metric_create_wrong_workers(self): result = self.gnocchi( - u'benchmark', params=u"metric create -n 0", + 'benchmark', params="metric create -n 0", fail_ok=True, merge_stderr=True) self.assertIn("0 must be greater than 0", result) @@ -29,7 +29,7 @@ "--back-window 0 -d granularity:1s,points:86400" % apname) result = self.gnocchi( - u'benchmark', params=u"metric create -n 10 -a %s" % apname) + 'benchmark', params="metric create -n 10 -a %s" % apname) result = json.loads(result) self.assertEqual(10, int(result['create executed'])) self.assertLessEqual(int(result['create failures']), 10) @@ -37,7 +37,7 @@ int(result['create executed'])) result = self.gnocchi( - u'benchmark', params=u"metric create -k -n 10 -a %s" % apname) + 'benchmark', params="metric create -k -n 10 -a %s" % apname) result = json.loads(result) self.assertEqual(10, int(result['create executed'])) self.assertLessEqual(int(result['create failures']), 10) @@ -50,11 +50,11 @@ "--back-window 0 -d granularity:1s,points:86400" % apname) result = self.gnocchi( - u'metric', params=u"create -a %s" % apname) + 'metric', params="create -a %s" % apname) metric = json.loads(result) result = self.gnocchi( - u'benchmark', params=u"metric show -n 10 %s" % metric['id']) + 'benchmark', params="metric show -n 10 %s" % metric['id']) result = json.loads(result) self.assertEqual(10, int(result['show executed'])) self.assertLessEqual(int(result['show failures']), 10) @@ -66,26 +66,26 @@ "--back-window 0 -d granularity:1s,points:86400" % apname) result = self.gnocchi( - u'metric', params=u"create -a %s" % apname) + 'metric', params="create -a %s" % apname) metric = json.loads(result) result = self.gnocchi( - u'benchmark', params=u"measures add -n 10 -b 4 %s" % metric['id']) + 'benchmark', params="measures add -n 10 -b 4 %s" % metric['id']) result = json.loads(result) self.assertEqual(2, int(result['push executed'])) self.assertLessEqual(int(result['push failures']), 2) result = self.gnocchi( - u'benchmark', - params=u"measures add -s 2010-01-01 -n 10 -b 4 %s" + 'benchmark', + params="measures add -s 2010-01-01 -n 10 -b 4 %s" % metric['id']) result = json.loads(result) self.assertEqual(2, int(result['push executed'])) self.assertLessEqual(int(result['push failures']), 2) result = self.gnocchi( - u'benchmark', - params=u"measures add --wait -s 2010-01-01 -n 10 -b 4 %s" + 'benchmark', + params="measures add --wait -s 2010-01-01 -n 10 -b 4 %s" % metric['id']) result = json.loads(result) self.assertEqual(2, int(result['push executed'])) @@ -99,12 +99,12 @@ "--back-window 0 -d granularity:1s,points:86400" % apname) result = self.gnocchi( - u'metric', params=u"create -a %s" % apname) + 'metric', params="create -a %s" % apname) metric = json.loads(result) result = self.gnocchi( - u'benchmark', - params=u"measures show -n 2 %s" + 'benchmark', + params="measures show -n 2 %s" % metric['id']) result = json.loads(result) self.assertEqual(2, int(result['show executed'])) --- ./gnocchiclient/tests/functional/test_metric.py (original) +++ ./gnocchiclient/tests/functional/test_metric.py (refactored) @@ -28,13 +28,13 @@ "--back-window 0 -d granularity:1s,points:86400" % apname) # Create 2 metrics result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name %s" % apname) + 'metric', params="create" + " --archive-policy-name %s" % apname) metric1 = json.loads(result) result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name %s" % apname) + 'metric', params="create" + " --archive-policy-name %s" % apname) metric2 = json.loads(result) # DELETE @@ -68,11 +68,11 @@ for i in range(1005): c.metric.create({"archive_policy_name": apname}) RefactoringTool: No changes to ./gnocchiclient/tests/functional/test_osc.py RefactoringTool: No changes to ./gnocchiclient/tests/functional/test_others.py RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_resource.py RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_resource_type.py - result = self.gnocchi(u'metric', params=u"list") + result = self.gnocchi('metric', params="list") self.assertGreaterEqual(len(json.loads(result)), 1005) - result = self.gnocchi(u'metric', params=u"list" - u" --limit 2") + result = self.gnocchi('metric', params="list" + " --limit 2") self.assertEqual(2, len(json.loads(result))) def test_metric_measures_exhautic_format(self): @@ -83,8 +83,8 @@ # CREATE METRIC metric_name = str(uuid.uuid4()) result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name " + ap_name + " " + metric_name) + 'metric', params="create" + " --archive-policy-name " + ap_name + " " + metric_name) metric = json.loads(result) # MEASURES ADD @@ -108,8 +108,8 @@ # CREATE METRIC metric_name = str(uuid.uuid4()) result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name " + ap_name + " " + metric_name) + 'metric', params="create" + " --archive-policy-name " + ap_name + " " + metric_name) metric = json.loads(result) # MEASURES ADD @@ -145,8 +145,8 @@ # CREATE WITH NAME AND WITHOUT UNIT result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name metric-test some-name") + 'metric', params="create" + " --archive-policy-name metric-test some-name") metric = json.loads(result) self.assertIsNotNone(metric["id"]) self.assertEqual("admin", metric["creator"]) @@ -157,9 +157,9 @@ # CREATE WITH UNIT result = self.gnocchi( - u'metric', params=u"create another-name" - u" --archive-policy-name metric-test" - u" --unit some-unit") + 'metric', params="create another-name" + " --archive-policy-name metric-test" + " --unit some-unit") metric = json.loads(result) self.assertIsNotNone(metric["id"]) self.assertEqual("admin", metric["creator"]) @@ -238,7 +238,7 @@ self.assertEqual([ {'granularity': 3600.0, 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:00:00+00:00')).isoformat(), + utils.parse_date('2015-03-06T14:00:00+00:00')).isoformat(), 'value': 27.555} ], measures) @@ -327,9 +327,9 @@ metric_name = str(uuid.uuid4()) # CREATE result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name metric-test2 -r metric-res %s" - u" --unit some-unit" % metric_name) + 'metric', params="create" + " --archive-policy-name metric-test2 -r metric-res %s" + " --unit some-unit" % metric_name) metric = json.loads(result) self.assertIsNotNone(metric["id"]) self.assertEqual("admin", metric['creator']) @@ -340,8 +340,8 @@ # CREATE FAIL result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name metric-test2 " + 'metric', params="create" + " --archive-policy-name metric-test2 " "-r metric-res %s" % metric_name, fail_ok=True, merge_stderr=True) self.assertEqual( @@ -403,11 +403,11 @@ self.assertEqual([ {'granularity': 1.0, 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:33:57+00:00')).isoformat(), - 'value': 43.11}, - {'granularity': 1.0, - 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:34:12+00:00')).isoformat(), + utils.parse_date('2015-03-06T14:33:57+00:00')).isoformat(), + 'value': 43.11}, + {'granularity': 1.0, + 'timestamp': utils.dt_to_localtz( + utils.parse_date('2015-03-06T14:34:12+00:00')).isoformat(), 'value': 12.0} ], measures) @@ -425,11 +425,11 @@ self.assertEqual([ {'granularity': 1.0, 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:33:57+00:00')).isoformat(), - 'value': 43.11}, - {'granularity': 1.0, - 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:34:12+00:00')).isoformat(), + utils.parse_date('2015-03-06T14:33:57+00:00')).isoformat(), + 'value': 43.11}, + {'granularity': 1.0, + 'timestamp': utils.dt_to_localtz( + utils.parse_date('2015-03-06T14:34:12+00:00')).isoformat(), 'value': 12.0} ], measures) @@ -469,12 +469,12 @@ {'group': 'project_id: None, user_id: None', 'granularity': 1.0, 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:33:57+00:00')).isoformat(), + utils.parse_date('2015-03-06T14:33:57+00:00')).isoformat(), 'value': 43.11}, {'group': 'project_id: None, user_id: None', 'granularity': 1.0, 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:34:12+00:00')).isoformat(), + utils.parse_date('2015-03-06T14:34:12+00:00')).isoformat(), 'value': 12.0}, ], measures) @@ -489,11 +489,11 @@ self.assertEqual([ {'granularity': 1.0, 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:33:57+00:00')).isoformat(), - 'value': 43.11}, - {'granularity': 1.0, - 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:34:12+00:00')).isoformat(), + utils.parse_date('2015-03-06T14:33:57+00:00')).isoformat(), + 'value': 43.11}, + {'granularity': 1.0, + 'timestamp': utils.dt_to_localtz( + utils.parse_date('2015-03-06T14:34:12+00:00')).isoformat(), 'value': 12.0}, ], measures) --- ./gnocchiclient/tests/functional/test_resource.py (original) +++ ./gnocchiclient/tests/functional/test_resource.py (refactored) @@ -29,12 +29,12 @@ apname = str(uuid.uuid4()) # Create an archive policy self.gnocchi( - u'archive-policy', params=u"create %s" - u" -d granularity:1s,points:86400" % apname) + 'archive-policy', params="create %s" + " -d granularity:1s,points:86400" % apname) # CREATE result = self.gnocchi( - u'resource', params=u"create %s --type generic" % + 'resource', params="create %s --type generic" % self.RESOURCE_ID) resource = json.loads(result) self.assertEqual(self.RESOURCE_ID, resource["id"]) @@ -170,10 +170,10 @@ # Create and Batch Delete result1 = self.gnocchi( - u'resource', params=u"create %s --type generic" % + 'resource', params="create %s --type generic" % self.RESOURCE_ID) result2 = self.gnocchi( - u'resource', params=u"create %s --type generic" % + 'resource', params="create %s --type generic" % self.RESOURCE_ID2) resource1 = json.loads(result1) resource2 = json.loads(result2) --- ./gnocchiclient/tests/functional/test_resource_type.py (original) +++ ./gnocchiclient/tests/functional/test_resource_type.py (refactored) @@ -30,8 +30,8 @@ # CREATE result = self.gnocchi( - u'resource-type', - params=u"create -a foo:string:true:max_length=16 " + 'resource-type', + params="create -a foo:string:true:max_length=16 " "-a bar:number:no:max=32 %s" % self.RESOURCE_TYPE) resource = json.loads(result) RefactoringTool: No changes to ./gnocchiclient/tests/unit/test_auth.py RefactoringTool: No changes to ./gnocchiclient/tests/unit/test_exceptions.py RefactoringTool: No changes to ./gnocchiclient/v1/aggregates.py RefactoringTool: No changes to ./gnocchiclient/v1/aggregates_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/archive_policy.py RefactoringTool: No changes to ./gnocchiclient/v1/archive_policy_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/archive_policy_rule.py RefactoringTool: No changes to ./gnocchiclient/v1/archive_policy_rule_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/base.py RefactoringTool: No changes to ./gnocchiclient/v1/build.py RefactoringTool: No changes to ./gnocchiclient/v1/build_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/capabilities.py RefactoringTool: No changes to ./gnocchiclient/v1/capabilities_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/client.py RefactoringTool: No changes to ./gnocchiclient/v1/metric.py RefactoringTool: No changes to ./gnocchiclient/v1/metric_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/resource.py RefactoringTool: Refactored ./gnocchiclient/v1/resource_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/resource_type.py RefactoringTool: Refactored ./gnocchiclient/v1/resource_type_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/status.py RefactoringTool: No changes to ./gnocchiclient/v1/status_cli.py RefactoringTool: Files that were modified: RefactoringTool: ./setup.py RefactoringTool: ./doc/source/conf.py RefactoringTool: ./gnocchiclient/auth.py RefactoringTool: ./gnocchiclient/benchmark.py RefactoringTool: ./gnocchiclient/client.py RefactoringTool: ./gnocchiclient/exceptions.py RefactoringTool: ./gnocchiclient/gendoc.py RefactoringTool: ./gnocchiclient/osc.py RefactoringTool: ./gnocchiclient/shell.py RefactoringTool: ./gnocchiclient/utils.py RefactoringTool: ./gnocchiclient/version.py RefactoringTool: ./gnocchiclient/tests/functional/base.py RefactoringTool: ./gnocchiclient/tests/functional/test_aggregates.py RefactoringTool: ./gnocchiclient/tests/functional/test_archive_policy.py RefactoringTool: ./gnocchiclient/tests/functional/test_archive_policy_rule.py RefactoringTool: ./gnocchiclient/tests/functional/test_benchmark.py RefactoringTool: ./gnocchiclient/tests/functional/test_capabilities.py RefactoringTool: ./gnocchiclient/tests/functional/test_metric.py RefactoringTool: ./gnocchiclient/tests/functional/test_osc.py RefactoringTool: ./gnocchiclient/tests/functional/test_others.py RefactoringTool: ./gnocchiclient/tests/functional/test_resource.py RefactoringTool: ./gnocchiclient/tests/functional/test_resource_type.py RefactoringTool: ./gnocchiclient/tests/unit/test_auth.py RefactoringTool: ./gnocchiclient/tests/unit/test_exceptions.py RefactoringTool: ./gnocchiclient/v1/aggregates.py RefactoringTool: ./gnocchiclient/v1/aggregates_cli.py self.assertEqual(self.RESOURCE_TYPE, resource["name"]) @@ -41,7 +41,7 @@ # SHOW result = self.gnocchi( - u'resource-type', params=u"show %s" % self.RESOURCE_TYPE) + 'resource-type', params="show %s" % self.RESOURCE_TYPE) resource = json.loads(result) self.assertEqual(self.RESOURCE_TYPE, resource["name"]) self.assertEqual( @@ -50,8 +50,8 @@ # PATCH result = self.gnocchi( - u'resource-type', - params=u"update -r foo " + 'resource-type', + params="update -r foo " "-a new:number:yes:max=16:fill=8 %s" % self.RESOURCE_TYPE) resource = json.loads(result) self.assertEqual(self.RESOURCE_TYPE, resource["name"]) @@ -62,7 +62,7 @@ # SHOW result = self.gnocchi( - u'resource-type', params=u"show %s" % self.RESOURCE_TYPE) + 'resource-type', params="show %s" % self.RESOURCE_TYPE) resource = json.loads(result) self.assertEqual(self.RESOURCE_TYPE, resource["name"]) self.assertNotIn("attributes/foo", resource) @@ -72,7 +72,7 @@ # Create a resource for this type result = self.gnocchi( - u'resource', params=(u"create %s -t %s -a new:5") % + 'resource', params=("create %s -t %s -a new:5") % (self.RESOURCE_ID, self.RESOURCE_TYPE)) resource = json.loads(result) self.assertEqual(self.RESOURCE_ID, resource["id"]) @@ -98,8 +98,8 @@ result) # SHOW AGAIN - result = self.gnocchi(u'resource-type', - params=u"show %s" % self.RESOURCE_TYPE, + result = self.gnocchi('resource-type', + params="show %s" % self.RESOURCE_TYPE, fail_ok=True, merge_stderr=True) self.assertEqual( "Resource type %s does not exist (HTTP 404)\n" --- ./gnocchiclient/v1/resource_cli.py (original) +++ ./gnocchiclient/v1/resource_cli.py (refactored) @@ -115,7 +115,7 @@ def normalize_metrics(res): res['metrics'] = "\n".join(sorted( ["%s: %s" % (name, _id) - for name, _id in res['metrics'].items()])) + for name, _id in list(res['metrics'].items())])) return res --- ./gnocchiclient/v1/resource_type_cli.py (original) +++ ./gnocchiclient/v1/resource_type_cli.py (refactored) @@ -42,14 +42,14 @@ parser.add_argument("-a", "--attribute", action='append', type=self._resource_attribute, default=[], - help=(u"attribute definition, " - u"attribute_name:" - u"attribute_type:" - u"attribute_is_required:" - u"attribute_type_option_name=" - u"attribute_type_option_value:... " - u"For example: " - u"display_name:string:true:max_length=255")) + help=("attribute definition, " + "attribute_name:" + "attribute_type:" + "attribute_is_required:" + "attribute_type_option_name=" + "attribute_type_option_value:... " + "For example: " + "display_name:string:true:max_length=255")) return parser @classmethod @@ -90,7 +90,7 @@ parser = super(CliResourceTypeUpdate, self).get_parser(prog_name) parser.add_argument("-r", "--remove-attribute", action='append', default=[], - help=u"attribute name") + help="attribute name") return parser RefactoringTool: ./gnocchiclient/v1/archive_policy.py RefactoringTool: ./gnocchiclient/v1/archive_policy_cli.py RefactoringTool: ./gnocchiclient/v1/archive_policy_rule.py RefactoringTool: ./gnocchiclient/v1/archive_policy_rule_cli.py RefactoringTool: ./gnocchiclient/v1/base.py RefactoringTool: ./gnocchiclient/v1/build.py RefactoringTool: ./gnocchiclient/v1/build_cli.py RefactoringTool: ./gnocchiclient/v1/capabilities.py RefactoringTool: ./gnocchiclient/v1/capabilities_cli.py RefactoringTool: ./gnocchiclient/v1/client.py RefactoringTool: ./gnocchiclient/v1/metric.py RefactoringTool: ./gnocchiclient/v1/metric_cli.py RefactoringTool: ./gnocchiclient/v1/resource.py RefactoringTool: ./gnocchiclient/v1/resource_cli.py RefactoringTool: ./gnocchiclient/v1/resource_type.py RefactoringTool: ./gnocchiclient/v1/resource_type_cli.py RefactoringTool: ./gnocchiclient/v1/status.py RefactoringTool: ./gnocchiclient/v1/status_cli.py + sed -i '/^[[:space:]]*-c{env:.*_CONSTRAINTS_FILE.*/d' tox.ini + sed -i 's/^deps = -c{env:.*_CONSTRAINTS_FILE.*/deps =/' tox.ini + sed -i '/^minversion.*/d' tox.ini + sed -i '/^requires.*virtualenv.*/d' tox.ini + sed -i '/\.\[test,openstack\]/,+2d' tox.ini + sed -i '/\.*\[testenv\]deps/,+1d' tox.ini + sed -i '/\.\[test,doc\]/d' tox.ini + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.efkkoJ + umask 022 + cd /builddir/build/BUILD + cd gnocchiclient-7.0.8 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/gnocchiclient-7.0.8/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/gnocchiclient-7.0.8/.pyproject-builddir + RPM_TOXENV=py312 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/gnocchiclient-7.0.8/pyproject-wheeldir --output /builddir/build/BUILD/python-gnocchiclient-7.0.8-1.fc40.x86_64-pyproject-buildrequires -t -e py312 Handling setuptools from build-system.requires Requirement satisfied: setuptools (installed: setuptools 68.2.2) Handling setuptools_scm from build-system.requires Requirement satisfied: setuptools_scm (installed: setuptools_scm 8.0.4) Handling wheel from build-system.requires Requirement satisfied: wheel (installed: wheel 0.41.2) running egg_info writing gnocchiclient.egg-info/PKG-INFO writing dependency_links to gnocchiclient.egg-info/dependency_links.txt writing entry points to gnocchiclient.egg-info/entry_points.txt writing requirements to gnocchiclient.egg-info/requires.txt writing top-level names to gnocchiclient.egg-info/top_level.txt reading manifest file 'gnocchiclient.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'gnocchiclient.egg-info/SOURCES.txt' Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.41.2) Handling tox-current-env >= 0.0.6 from tox itself Requirement not satisfied: tox-current-env >= 0.0.6 Exiting dependency generation pass: tox itself + cat /builddir/build/BUILD/python-gnocchiclient-7.0.8-1.fc40.x86_64-pyproject-buildrequires + rm -rfv '*.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-gnocchiclient-7.0.8-1.fc40.buildreqs.nosrc.rpm INFO: Going to install missing dynamic buildrequires No matches found for the following disable plugin patterns: local, spacewalk, versionlock Copr repository 23 kB/s | 1.5 kB 00:00 fedora 682 kB/s | 20 kB 00:00 Package pyproject-rpm-macros-1.10.0-1.fc40.noarch is already installed. Package pyproject-rpm-macros-1.10.0-1.fc40.noarch is already installed. Package python3-devel-3.12.0-2.fc40.x86_64 is already installed. Package python3-devel-3.12.0-2.fc40.x86_64 is already installed. Package python3-packaging-23.2-2.fc40.noarch is already installed. Package python3-pip-23.2.1-1.fc39.noarch is already installed. Package python3-setuptools-68.2.2-1.fc40.noarch is already installed. Package python3-setuptools_scm-8.0.4-1.fc40.noarch is already installed. Package python3-wheel-1:0.41.2-1.fc40.noarch is already installed. Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: python3-tox-current-env noarch 0.0.11-5.fc39 fedora 34 k Installing dependencies: python-setuptools-wheel noarch 68.2.2-1.fc40 fedora 670 k python-wheel-wheel noarch 1:0.41.2-1.fc40 fedora 70 k python3-cachetools noarch 5.3.2-1.fc40 fedora 37 k python3-chardet noarch 5.2.0-1.fc40 copr_base 274 k python3-colorama noarch 0.4.6-5.fc40 fedora 71 k python3-distlib noarch 0.3.7-1.fc40 fedora 262 k python3-filelock noarch 3.12.2-1.fc40 copr_base 30 k python3-platformdirs noarch 3.9.1-2.fc39 fedora 45 k python3-pluggy noarch 1.3.0-1.fc40 fedora 56 k python3-pyproject-api noarch 1.6.1-1.fc40 fedora 42 k python3-virtualenv noarch 20.21.1-5.fc40 fedora 304 k tox noarch 4.11.1-1.fc40 fedora 393 k Transaction Summary ================================================================================ Install 13 Packages Total size: 2.2 M Total download size: 2.2 M Installed size: 6.6 M Downloading Packages: [SKIPPED] python3-pluggy-1.3.0-1.fc40.noarch.rpm: Already downloaded (2/13): python3-filelock-3.12.2-1.fc40.noarch.r 923 kB/s | 30 kB 00:00 (3/13): python3-chardet-5.2.0-1.fc40.noarch.rpm 4.2 MB/s | 274 kB 00:00 (4/13): python-wheel-wheel-0.41.2-1.fc40.noarch 376 kB/s | 70 kB 00:00 (5/13): python3-cachetools-5.3.2-1.fc40.noarch. 231 kB/s | 37 kB 00:00 (6/13): python3-colorama-0.4.6-5.fc40.noarch.rp 1.4 MB/s | 71 kB 00:00 (7/13): python-setuptools-wheel-68.2.2-1.fc40.n 2.1 MB/s | 670 kB 00:00 (8/13): python3-platformdirs-3.9.1-2.fc39.noarc 1.1 MB/s | 45 kB 00:00 (9/13): python3-pyproject-api-1.6.1-1.fc40.noar 1.3 MB/s | 42 kB 00:00 (10/13): python3-distlib-0.3.7-1.fc40.noarch.rp 2.1 MB/s | 262 kB 00:00 (11/13): python3-tox-current-env-0.0.11-5.fc39. 884 kB/s | 34 kB 00:00 (12/13): python3-virtualenv-20.21.1-5.fc40.noar 7.3 MB/s | 304 kB 00:00 (13/13): tox-4.11.1-1.fc40.noarch.rpm 5.7 MB/s | 393 kB 00:00 -------------------------------------------------------------------------------- Total 4.8 MB/s | 2.2 MB 00:00 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : python3-platformdirs-3.9.1-2.fc39.noarch 1/13 Installing : python3-filelock-3.12.2-1.fc40.noarch 2/13 Installing : python3-pyproject-api-1.6.1-1.fc40.noarch 3/13 Installing : python3-pluggy-1.3.0-1.fc40.noarch 4/13 Installing : python3-distlib-0.3.7-1.fc40.noarch 5/13 Installing : python3-colorama-0.4.6-5.fc40.noarch 6/13 Installing : python3-cachetools-5.3.2-1.fc40.noarch 7/13 Installing : python-wheel-wheel-1:0.41.2-1.fc40.noarch 8/13 Installing : python-setuptools-wheel-68.2.2-1.fc40.noarch 9/13 Installing : python3-virtualenv-20.21.1-5.fc40.noarch 10/13 Installing : python3-chardet-5.2.0-1.fc40.noarch 11/13 Installing : tox-4.11.1-1.fc40.noarch 12/13 Installing : python3-tox-current-env-0.0.11-5.fc39.noarch 13/13 Running scriptlet: python3-tox-current-env-0.0.11-5.fc39.noarch 13/13 Installed: python-setuptools-wheel-68.2.2-1.fc40.noarch python-wheel-wheel-1:0.41.2-1.fc40.noarch python3-cachetools-5.3.2-1.fc40.noarch python3-chardet-5.2.0-1.fc40.noarch python3-colorama-0.4.6-5.fc40.noarch python3-distlib-0.3.7-1.fc40.noarch python3-filelock-3.12.2-1.fc40.noarch python3-platformdirs-3.9.1-2.fc39.noarch python3-pluggy-1.3.0-1.fc40.noarch python3-pyproject-api-1.6.1-1.fc40.noarch python3-tox-current-env-0.0.11-5.fc39.noarch python3-virtualenv-20.21.1-5.fc40.noarch tox-4.11.1-1.fc40.noarch Complete! Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1698192000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.82Jve8 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf gnocchiclient-7.0.8 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/gnocchiclient-7.0.8.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd gnocchiclient-7.0.8 + rm -rf /builddir/build/BUILD/gnocchiclient-7.0.8-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/gnocchiclient-7.0.8-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + 2to3 --write --nobackups . /usr/bin/2to3:3: DeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+ from lib2to3.main import main RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: No changes to ./setup.py RefactoringTool: Refactored ./doc/source/conf.py RefactoringTool: No changes to ./gnocchiclient/auth.py RefactoringTool: Refactored ./gnocchiclient/benchmark.py RefactoringTool: No changes to ./gnocchiclient/client.py RefactoringTool: No changes to ./gnocchiclient/exceptions.py RefactoringTool: Refactored ./gnocchiclient/gendoc.py RefactoringTool: No changes to ./gnocchiclient/osc.py RefactoringTool: Refactored ./gnocchiclient/shell.py RefactoringTool: Refactored ./gnocchiclient/utils.py RefactoringTool: No changes to ./gnocchiclient/version.py RefactoringTool: No changes to ./gnocchiclient/tests/functional/base.py RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_aggregates.py RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_archive_policy.py --- ./doc/source/conf.py (original) +++ ./doc/source/conf.py (refactored) @@ -43,8 +43,8 @@ master_doc = 'index' # General information about the project. -project = u'Gnocchiclient' -copyright = u'%s, The Gnocchi Developers' % datetime.date.today().year +project = 'Gnocchiclient' +copyright = '%s, The Gnocchi Developers' % datetime.date.today().year # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the --- ./gnocchiclient/benchmark.py (original) +++ ./gnocchiclient/benchmark.py (refactored) @@ -37,10 +37,10 @@ def _pickle_method(m): - if m.im_self is None: - return getattr, (m.im_class, m.im_func.func_name) + if m.__self__ is None: + return getattr, (m.__self__.__class__, m.__func__.__name__) else: - return getattr, (m.im_self, m.im_func.func_name) + return getattr, (m.__self__, m.__func__.__name__) six.moves.copyreg.pickle(types.MethodType, _pickle_method) --- ./gnocchiclient/gendoc.py (original) +++ ./gnocchiclient/gendoc.py (refactored) @@ -12,7 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. -from __future__ import absolute_import + import fnmatch @@ -24,7 +24,7 @@ class GnocchiAutoDocDirective(sphinxext.AutoprogramCliffDirective): def _load_commands(self): command_pattern = self.options.get('command') - full_cmd_list = shell.GnocchiCommandManager.SHELL_COMMANDS.keys() + full_cmd_list = list(shell.GnocchiCommandManager.SHELL_COMMANDS.keys()) if command_pattern: commands = [x for x in full_cmd_list if fnmatch.fnmatch(x, command_pattern)] --- ./gnocchiclient/shell.py (original) +++ ./gnocchiclient/shell.py (refactored) @@ -86,7 +86,7 @@ } def load_commands(self, namespace): - for name, command_class in self.SHELL_COMMANDS.items(): + for name, command_class in list(self.SHELL_COMMANDS.items()): self.add_command(name, command_class) @@ -199,10 +199,10 @@ else: if 'description' in error: # Gnocchi format - print(error['description']) + print((error['description'])) elif 'error' in error and 'message' in error['error']: # Keystone format - print(error['error']['message']) + print((error['error']['message'])) def configure_logging(self): if self.options.debug: --- ./gnocchiclient/utils.py (original) +++ ./gnocchiclient/utils.py (refactored) @@ -22,14 +22,14 @@ def add_query_argument(cmd, parser, *args, **kwargs): return parser.add_argument( cmd, - help=u"A query to filter resource. " - u"The syntax is a combination of attribute, operator and value. " - u"For example: id=90d58eea-70d7-4294-a49a-170dcdf44c3c would filter " - u"resource with a certain id. More complex queries can be built, " - u"e.g.: not (flavor_id!=\"1\" and memory>=24). " - u"Use \"\" to force data to be interpreted as string. " - u"Supported operators are: not, and, ∧ or, ∨, >=, <=, !=, >, <, =, " - u"==, eq, ne, lt, gt, ge, le, in, like, ≠, ≥, ≤, like, in.", + help="A query to filter resource. " + "The syntax is a combination of attribute, operator and value. " + "For example: id=90d58eea-70d7-4294-a49a-170dcdf44c3c would filter " + "resource with a certain id. More complex queries can be built, " + "e.g.: not (flavor_id!=\"1\" and memory>=24). " + "Use \"\" to force data to be interpreted as string. " + "Supported operators are: not, and, ∧ or, ∨, >=, <=, !=, >, <, =, " + "==, eq, ne, lt, gt, ge, le, in, like, ≠, ≥, ≤, like, in.", *args, **kwargs) @@ -45,15 +45,15 @@ def format_dict_list(li): return "\n".join( "- " + ", ".join("%s: %s" % (k, v) - for k, v in elem.items()) + for k, v in list(elem.items())) for elem in li) def format_dict_dict(value): return "\n".join( "- %s: " % name + " , ".join("%s: %s" % (k, v) - for k, v in elem.items()) - for name, elem in value.items()) + for k, v in list(elem.items())) + for name, elem in list(value.items())) def format_move_dict_to_root(obj, field): @@ -105,7 +105,7 @@ strings.append("&".join( ("%s=%s" % (k, v) for v in map(urllib_parse.quote, - map(six.text_type, values))))) + list(map(six.text_type, values)))))) return "&".join(strings) --- ./gnocchiclient/tests/functional/test_aggregates.py (original) +++ ./gnocchiclient/tests/functional/test_aggregates.py (refactored) @@ -25,9 +25,9 @@ # CREATE A METRIC result = self.gnocchi( - u'metric', params=u"create" - u' -r metric-res1' - u" --archive-policy-name agg-fetch-test metric-name") + 'metric', params="create" + ' -r metric-res1' + " --archive-policy-name agg-fetch-test metric-name") metric1 = json.loads(result) self.assertIsNotNone(metric1["id"]) self.assertEqual("admin", metric1["creator"]) @@ -38,10 +38,10 @@ # CREATE ANOTHER METRIC result = self.gnocchi( - u'metric', params=u"create" - u' -r metric-res2' - u" --archive-policy-name agg-fetch-test" - u" --unit some-unit metric-name") + 'metric', params="create" + ' -r metric-res2' + " --archive-policy-name agg-fetch-test" + " --unit some-unit metric-name") metric2 = json.loads(result) self.assertIsNotNone(metric2["id"]) self.assertEqual("admin", metric2["creator"]) @@ -113,22 +113,22 @@ measures = json.loads(result) self.assertEqual(4, len(measures)) self.assertIn({'granularity': 1.0, - 'group': u'project_id: None, user_id: None', - 'name': u'%s/metric-name/mean' % r1["id"], - 'timestamp': u'2015-03-06T14:33:57+00:00', + 'group': 'project_id: None, user_id: None', + 'name': '%s/metric-name/mean' % r1["id"], + 'timestamp': '2015-03-06T14:33:57+00:00', 'value': 45.11}, measures) self.assertIn({'granularity': 1.0, - 'group': u'project_id: None, user_id: None', - 'name': u'%s/metric-name/mean' % r1["id"], - 'timestamp': u'2015-03-06T14:34:12+00:00', + 'group': 'project_id: None, user_id: None', + 'name': '%s/metric-name/mean' % r1["id"], + 'timestamp': '2015-03-06T14:34:12+00:00', 'value': 14.0}, measures) self.assertIn({'granularity': 1.0, - 'group': u'project_id: None, user_id: None', - 'name': u'%s/metric-name/mean' % r2["id"], - 'timestamp': u'2015-03-06T14:33:57+00:00', + 'group': 'project_id: None, user_id: None', + 'name': '%s/metric-name/mean' % r2["id"], + 'timestamp': '2015-03-06T14:33:57+00:00', 'value': 45.11}, measures) self.assertIn({'granularity': 1.0, - 'group': u'project_id: None, user_id: None', - 'name': u'%s/metric-name/mean' % r2["id"], - 'timestamp': u'2015-03-06T14:34:12+00:00', + 'group': 'project_id: None, user_id: None', + 'name': '%s/metric-name/mean' % r2["id"], + 'timestamp': '2015-03-06T14:34:12+00:00', 'value': 14.0}, measures) RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_archive_policy_rule.py RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_benchmark.py RefactoringTool: No changes to ./gnocchiclient/tests/functional/test_capabilities.py RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_metric.py --- ./gnocchiclient/tests/functional/test_archive_policy.py (original) +++ ./gnocchiclient/tests/functional/test_archive_policy.py (refactored) @@ -20,17 +20,17 @@ # CREATE apname = str(uuid.uuid4()) result = self.gnocchi( - u'archive-policy', params=u"create %s" - u" --back-window 0" - u" -d granularity:1s,points:86400" % apname) + 'archive-policy', params="create %s" + " --back-window 0" + " -d granularity:1s,points:86400" % apname) policy = json.loads(result) self.assertEqual(apname, policy["name"]) # CREATE FAIL result = self.gnocchi( - u'archive-policy', params=u"create %s" - u" --back-window 0" - u" -d granularity:1s,points:86400" % apname, + 'archive-policy', params="create %s" + " --back-window 0" + " -d granularity:1s,points:86400" % apname, fail_ok=True, merge_stderr=True) self.assertEqual( "Archive policy %s already exists (HTTP 409)\n" % apname, --- ./gnocchiclient/tests/functional/test_archive_policy_rule.py (original) +++ ./gnocchiclient/tests/functional/test_archive_policy_rule.py (refactored) @@ -20,22 +20,22 @@ apname = str(uuid.uuid4()) # Create an archive policy self.gnocchi( - u'archive-policy', params=u"create %s" - u" -d granularity:1s,points:86400" % apname) + 'archive-policy', params="create %s" + " -d granularity:1s,points:86400" % apname) # CREATE result = self.gnocchi( - u'archive-policy-rule', params=u"create test" - u" --archive-policy-name %s" - u" --metric-pattern 'disk.io.*'" % apname) + 'archive-policy-rule', params="create test" + " --archive-policy-name %s" + " --metric-pattern 'disk.io.*'" % apname) policy_rule = json.loads(result) self.assertEqual('test', policy_rule["name"]) # CREATE FAIL result = self.gnocchi( - u'archive-policy-rule', params=u"create test" - u" --archive-policy-name high" - u" --metric-pattern 'disk.io.*'", + 'archive-policy-rule', params="create test" + " --archive-policy-name high" + " --metric-pattern 'disk.io.*'", fail_ok=True, merge_stderr=True) self.assertEqual( "Archive policy rule test already exists (HTTP 409)\n", @@ -56,12 +56,12 @@ # CREATE - RENAME - GET self.gnocchi( - u'archive-policy-rule', params=u"create to_rename" - u" --archive-policy-name %s" - u" --metric-pattern 'disk.io.*'" % apname) + 'archive-policy-rule', params="create to_rename" + " --archive-policy-name %s" + " --metric-pattern 'disk.io.*'" % apname) result = self.gnocchi( - u'archive-policy-rule', params=u'update to_rename' - u' --name renamed') + 'archive-policy-rule', params='update to_rename' + ' --name renamed') policy_rule = json.loads(result) self.assertEqual('renamed', policy_rule["name"]) --- ./gnocchiclient/tests/functional/test_benchmark.py (original) +++ ./gnocchiclient/tests/functional/test_benchmark.py (refactored) @@ -18,7 +18,7 @@ class BenchmarkMetricTest(base.ClientTestBase): def test_benchmark_metric_create_wrong_workers(self): result = self.gnocchi( - u'benchmark', params=u"metric create -n 0", + 'benchmark', params="metric create -n 0", fail_ok=True, merge_stderr=True) self.assertIn("0 must be greater than 0", result) @@ -29,7 +29,7 @@ "--back-window 0 -d granularity:1s,points:86400" % apname) result = self.gnocchi( - u'benchmark', params=u"metric create -n 10 -a %s" % apname) + 'benchmark', params="metric create -n 10 -a %s" % apname) result = json.loads(result) self.assertEqual(10, int(result['create executed'])) self.assertLessEqual(int(result['create failures']), 10) @@ -37,7 +37,7 @@ int(result['create executed'])) result = self.gnocchi( - u'benchmark', params=u"metric create -k -n 10 -a %s" % apname) + 'benchmark', params="metric create -k -n 10 -a %s" % apname) result = json.loads(result) self.assertEqual(10, int(result['create executed'])) self.assertLessEqual(int(result['create failures']), 10) @@ -50,11 +50,11 @@ "--back-window 0 -d granularity:1s,points:86400" % apname) result = self.gnocchi( - u'metric', params=u"create -a %s" % apname) + 'metric', params="create -a %s" % apname) metric = json.loads(result) result = self.gnocchi( - u'benchmark', params=u"metric show -n 10 %s" % metric['id']) + 'benchmark', params="metric show -n 10 %s" % metric['id']) result = json.loads(result) self.assertEqual(10, int(result['show executed'])) self.assertLessEqual(int(result['show failures']), 10) @@ -66,26 +66,26 @@ "--back-window 0 -d granularity:1s,points:86400" % apname) result = self.gnocchi( - u'metric', params=u"create -a %s" % apname) + 'metric', params="create -a %s" % apname) metric = json.loads(result) result = self.gnocchi( - u'benchmark', params=u"measures add -n 10 -b 4 %s" % metric['id']) + 'benchmark', params="measures add -n 10 -b 4 %s" % metric['id']) result = json.loads(result) self.assertEqual(2, int(result['push executed'])) self.assertLessEqual(int(result['push failures']), 2) result = self.gnocchi( - u'benchmark', - params=u"measures add -s 2010-01-01 -n 10 -b 4 %s" + 'benchmark', + params="measures add -s 2010-01-01 -n 10 -b 4 %s" % metric['id']) result = json.loads(result) self.assertEqual(2, int(result['push executed'])) self.assertLessEqual(int(result['push failures']), 2) result = self.gnocchi( - u'benchmark', - params=u"measures add --wait -s 2010-01-01 -n 10 -b 4 %s" + 'benchmark', + params="measures add --wait -s 2010-01-01 -n 10 -b 4 %s" % metric['id']) result = json.loads(result) self.assertEqual(2, int(result['push executed'])) @@ -99,12 +99,12 @@ "--back-window 0 -d granularity:1s,points:86400" % apname) result = self.gnocchi( - u'metric', params=u"create -a %s" % apname) + 'metric', params="create -a %s" % apname) metric = json.loads(result) result = self.gnocchi( - u'benchmark', - params=u"measures show -n 2 %s" + 'benchmark', + params="measures show -n 2 %s" % metric['id']) result = json.loads(result) self.assertEqual(2, int(result['show executed'])) --- ./gnocchiclient/tests/functional/test_metric.py (original) +++ ./gnocchiclient/tests/functional/test_metric.py (refactored) @@ -28,13 +28,13 @@ "--back-window 0 -d granularity:1s,points:86400" % apname) # Create 2 metrics result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name %s" % apname) + 'metric', params="create" + " --archive-policy-name %s" % apname) metric1 = json.loads(result) result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name %s" % apname) + 'metric', params="create" + " --archive-policy-name %s" % apname) metric2 = json.loads(result) # DELETE @@ -68,11 +68,11 @@ for i in range(1005): c.metric.create({"archive_policy_name": apname}) RefactoringTool: No changes to ./gnocchiclient/tests/functional/test_osc.py RefactoringTool: No changes to ./gnocchiclient/tests/functional/test_others.py RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_resource.py RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_resource_type.py - result = self.gnocchi(u'metric', params=u"list") + result = self.gnocchi('metric', params="list") self.assertGreaterEqual(len(json.loads(result)), 1005) - result = self.gnocchi(u'metric', params=u"list" - u" --limit 2") + result = self.gnocchi('metric', params="list" + " --limit 2") self.assertEqual(2, len(json.loads(result))) def test_metric_measures_exhautic_format(self): @@ -83,8 +83,8 @@ # CREATE METRIC metric_name = str(uuid.uuid4()) result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name " + ap_name + " " + metric_name) + 'metric', params="create" + " --archive-policy-name " + ap_name + " " + metric_name) metric = json.loads(result) # MEASURES ADD @@ -108,8 +108,8 @@ # CREATE METRIC metric_name = str(uuid.uuid4()) result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name " + ap_name + " " + metric_name) + 'metric', params="create" + " --archive-policy-name " + ap_name + " " + metric_name) metric = json.loads(result) # MEASURES ADD @@ -145,8 +145,8 @@ # CREATE WITH NAME AND WITHOUT UNIT result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name metric-test some-name") + 'metric', params="create" + " --archive-policy-name metric-test some-name") metric = json.loads(result) self.assertIsNotNone(metric["id"]) self.assertEqual("admin", metric["creator"]) @@ -157,9 +157,9 @@ # CREATE WITH UNIT result = self.gnocchi( - u'metric', params=u"create another-name" - u" --archive-policy-name metric-test" - u" --unit some-unit") + 'metric', params="create another-name" + " --archive-policy-name metric-test" + " --unit some-unit") metric = json.loads(result) self.assertIsNotNone(metric["id"]) self.assertEqual("admin", metric["creator"]) @@ -238,7 +238,7 @@ self.assertEqual([ {'granularity': 3600.0, 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:00:00+00:00')).isoformat(), + utils.parse_date('2015-03-06T14:00:00+00:00')).isoformat(), 'value': 27.555} ], measures) @@ -327,9 +327,9 @@ metric_name = str(uuid.uuid4()) # CREATE result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name metric-test2 -r metric-res %s" - u" --unit some-unit" % metric_name) + 'metric', params="create" + " --archive-policy-name metric-test2 -r metric-res %s" + " --unit some-unit" % metric_name) metric = json.loads(result) self.assertIsNotNone(metric["id"]) self.assertEqual("admin", metric['creator']) @@ -340,8 +340,8 @@ # CREATE FAIL result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name metric-test2 " + 'metric', params="create" + " --archive-policy-name metric-test2 " "-r metric-res %s" % metric_name, fail_ok=True, merge_stderr=True) self.assertEqual( @@ -403,11 +403,11 @@ self.assertEqual([ {'granularity': 1.0, 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:33:57+00:00')).isoformat(), - 'value': 43.11}, - {'granularity': 1.0, - 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:34:12+00:00')).isoformat(), + utils.parse_date('2015-03-06T14:33:57+00:00')).isoformat(), + 'value': 43.11}, + {'granularity': 1.0, + 'timestamp': utils.dt_to_localtz( + utils.parse_date('2015-03-06T14:34:12+00:00')).isoformat(), 'value': 12.0} ], measures) @@ -425,11 +425,11 @@ self.assertEqual([ {'granularity': 1.0, 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:33:57+00:00')).isoformat(), - 'value': 43.11}, - {'granularity': 1.0, - 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:34:12+00:00')).isoformat(), + utils.parse_date('2015-03-06T14:33:57+00:00')).isoformat(), + 'value': 43.11}, + {'granularity': 1.0, + 'timestamp': utils.dt_to_localtz( + utils.parse_date('2015-03-06T14:34:12+00:00')).isoformat(), 'value': 12.0} ], measures) @@ -469,12 +469,12 @@ {'group': 'project_id: None, user_id: None', 'granularity': 1.0, 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:33:57+00:00')).isoformat(), + utils.parse_date('2015-03-06T14:33:57+00:00')).isoformat(), 'value': 43.11}, {'group': 'project_id: None, user_id: None', 'granularity': 1.0, 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:34:12+00:00')).isoformat(), + utils.parse_date('2015-03-06T14:34:12+00:00')).isoformat(), 'value': 12.0}, ], measures) @@ -489,11 +489,11 @@ self.assertEqual([ {'granularity': 1.0, 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:33:57+00:00')).isoformat(), - 'value': 43.11}, - {'granularity': 1.0, - 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:34:12+00:00')).isoformat(), + utils.parse_date('2015-03-06T14:33:57+00:00')).isoformat(), + 'value': 43.11}, + {'granularity': 1.0, + 'timestamp': utils.dt_to_localtz( + utils.parse_date('2015-03-06T14:34:12+00:00')).isoformat(), 'value': 12.0}, ], measures) --- ./gnocchiclient/tests/functional/test_resource.py (original) +++ ./gnocchiclient/tests/functional/test_resource.py (refactored) @@ -29,12 +29,12 @@ apname = str(uuid.uuid4()) # Create an archive policy self.gnocchi( - u'archive-policy', params=u"create %s" - u" -d granularity:1s,points:86400" % apname) + 'archive-policy', params="create %s" + " -d granularity:1s,points:86400" % apname) # CREATE result = self.gnocchi( - u'resource', params=u"create %s --type generic" % + 'resource', params="create %s --type generic" % self.RESOURCE_ID) resource = json.loads(result) self.assertEqual(self.RESOURCE_ID, resource["id"]) @@ -170,10 +170,10 @@ # Create and Batch Delete result1 = self.gnocchi( - u'resource', params=u"create %s --type generic" % + 'resource', params="create %s --type generic" % self.RESOURCE_ID) result2 = self.gnocchi( - u'resource', params=u"create %s --type generic" % + 'resource', params="create %s --type generic" % self.RESOURCE_ID2) resource1 = json.loads(result1) resource2 = json.loads(result2) --- ./gnocchiclient/tests/functional/test_resource_type.py (original) +++ ./gnocchiclient/tests/functional/test_resource_type.py (refactored) @@ -30,8 +30,8 @@ # CREATE result = self.gnocchi( - u'resource-type', - params=u"create -a foo:string:true:max_length=16 " + 'resource-type', + params="create -a foo:string:true:max_length=16 " "-a bar:number:no:max=32 %s" % self.RESOURCE_TYPE) resource = json.loads(result) RefactoringTool: No changes to ./gnocchiclient/tests/unit/test_auth.py RefactoringTool: No changes to ./gnocchiclient/tests/unit/test_exceptions.py RefactoringTool: No changes to ./gnocchiclient/v1/aggregates.py RefactoringTool: No changes to ./gnocchiclient/v1/aggregates_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/archive_policy.py RefactoringTool: No changes to ./gnocchiclient/v1/archive_policy_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/archive_policy_rule.py RefactoringTool: No changes to ./gnocchiclient/v1/archive_policy_rule_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/base.py RefactoringTool: No changes to ./gnocchiclient/v1/build.py RefactoringTool: No changes to ./gnocchiclient/v1/build_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/capabilities.py RefactoringTool: No changes to ./gnocchiclient/v1/capabilities_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/client.py RefactoringTool: No changes to ./gnocchiclient/v1/metric.py RefactoringTool: No changes to ./gnocchiclient/v1/metric_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/resource.py RefactoringTool: Refactored ./gnocchiclient/v1/resource_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/resource_type.py RefactoringTool: Refactored ./gnocchiclient/v1/resource_type_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/status.py RefactoringTool: No changes to ./gnocchiclient/v1/status_cli.py RefactoringTool: Files that were modified: RefactoringTool: ./setup.py RefactoringTool: ./doc/source/conf.py RefactoringTool: ./gnocchiclient/auth.py RefactoringTool: ./gnocchiclient/benchmark.py RefactoringTool: ./gnocchiclient/client.py RefactoringTool: ./gnocchiclient/exceptions.py RefactoringTool: ./gnocchiclient/gendoc.py RefactoringTool: ./gnocchiclient/osc.py RefactoringTool: ./gnocchiclient/shell.py RefactoringTool: ./gnocchiclient/utils.py RefactoringTool: ./gnocchiclient/version.py RefactoringTool: ./gnocchiclient/tests/functional/base.py RefactoringTool: ./gnocchiclient/tests/functional/test_aggregates.py RefactoringTool: ./gnocchiclient/tests/functional/test_archive_policy.py RefactoringTool: ./gnocchiclient/tests/functional/test_archive_policy_rule.py RefactoringTool: ./gnocchiclient/tests/functional/test_benchmark.py RefactoringTool: ./gnocchiclient/tests/functional/test_capabilities.py RefactoringTool: ./gnocchiclient/tests/functional/test_metric.py RefactoringTool: ./gnocchiclient/tests/functional/test_osc.py RefactoringTool: ./gnocchiclient/tests/functional/test_others.py RefactoringTool: ./gnocchiclient/tests/functional/test_resource.py RefactoringTool: ./gnocchiclient/tests/functional/test_resource_type.py RefactoringTool: ./gnocchiclient/tests/unit/test_auth.py RefactoringTool: ./gnocchiclient/tests/unit/test_exceptions.py RefactoringTool: ./gnocchiclient/v1/aggregates.py RefactoringTool: ./gnocchiclient/v1/aggregates_cli.py RefactoringTool: ./gnocchiclient/v1/archive_policy.py RefactoringTool: ./gnocchiclient/v1/archive_policy_cli.py RefactoringTool: ./gnocchiclient/v1/archive_policy_rule.py RefactoringTool: ./gnocchiclient/v1/archive_policy_rule_cli.py RefactoringTool: ./gnocchiclient/v1/base.py RefactoringTool: ./gnocchiclient/v1/build.py RefactoringTool: ./gnocchiclient/v1/build_cli.py RefactoringTool: ./gnocchiclient/v1/capabilities.py RefactoringTool: ./gnocchiclient/v1/capabilities_cli.py RefactoringTool: ./gnocchiclient/v1/client.py RefactoringTool: ./gnocchiclient/v1/metric.py RefactoringTool: ./gnocchiclient/v1/metric_cli.py RefactoringTool: ./gnocchiclient/v1/resource.py RefactoringTool: ./gnocchiclient/v1/resource_cli.py self.assertEqual(self.RESOURCE_TYPE, resource["name"]) @@ -41,7 +41,7 @@ # SHOW result = self.gnocchi( - u'resource-type', params=u"show %s" % self.RESOURCE_TYPE) + 'resource-type', params="show %s" % self.RESOURCE_TYPE) resource = json.loads(result) self.assertEqual(self.RESOURCE_TYPE, resource["name"]) self.assertEqual( @@ -50,8 +50,8 @@ # PATCH result = self.gnocchi( - u'resource-type', - params=u"update -r foo " + 'resource-type', + params="update -r foo " "-a new:number:yes:max=16:fill=8 %s" % self.RESOURCE_TYPE) resource = json.loads(result) self.assertEqual(self.RESOURCE_TYPE, resource["name"]) @@ -62,7 +62,7 @@ # SHOW result = self.gnocchi( - u'resource-type', params=u"show %s" % self.RESOURCE_TYPE) + 'resource-type', params="show %s" % self.RESOURCE_TYPE) resource = json.loads(result) self.assertEqual(self.RESOURCE_TYPE, resource["name"]) self.assertNotIn("attributes/foo", resource) @@ -72,7 +72,7 @@ # Create a resource for this type result = self.gnocchi( - u'resource', params=(u"create %s -t %s -a new:5") % + 'resource', params=("create %s -t %s -a new:5") % (self.RESOURCE_ID, self.RESOURCE_TYPE)) resource = json.loads(result) self.assertEqual(self.RESOURCE_ID, resource["id"]) @@ -98,8 +98,8 @@ result) # SHOW AGAIN - result = self.gnocchi(u'resource-type', - params=u"show %s" % self.RESOURCE_TYPE, + result = self.gnocchi('resource-type', + params="show %s" % self.RESOURCE_TYPE, fail_ok=True, merge_stderr=True) self.assertEqual( "Resource type %s does not exist (HTTP 404)\n" --- ./gnocchiclient/v1/resource_cli.py (original) +++ ./gnocchiclient/v1/resource_cli.py (refactored) @@ -115,7 +115,7 @@ def normalize_metrics(res): res['metrics'] = "\n".join(sorted( ["%s: %s" % (name, _id) - for name, _id in res['metrics'].items()])) + for name, _id in list(res['metrics'].items())])) return res --- ./gnocchiclient/v1/resource_type_cli.py (original) +++ ./gnocchiclient/v1/resource_type_cli.py (refactored) @@ -42,14 +42,14 @@ parser.add_argument("-a", "--attribute", action='append', type=self._resource_attribute, default=[], - help=(u"attribute definition, " - u"attribute_name:" - u"attribute_type:" - u"attribute_is_required:" - u"attribute_type_option_name=" - u"attribute_type_option_value:... " - u"For example: " - u"display_name:string:true:max_length=255")) + help=("attribute definition, " + "attribute_name:" + "attribute_type:" + "attribute_is_required:" + "attribute_type_option_name=" + "attribute_type_option_value:... " + "For example: " + "display_name:string:true:max_length=255")) return parser @classmethod @@ -90,7 +90,7 @@ parser = super(CliResourceTypeUpdate, self).get_parser(prog_name) parser.add_argument("-r", "--remove-attribute", action='append', default=[], - help=u"attribute name") + help="attribute name") return parser RefactoringTool: ./gnocchiclient/v1/resource_type.py RefactoringTool: ./gnocchiclient/v1/resource_type_cli.py RefactoringTool: ./gnocchiclient/v1/status.py RefactoringTool: ./gnocchiclient/v1/status_cli.py + sed -i '/^[[:space:]]*-c{env:.*_CONSTRAINTS_FILE.*/d' tox.ini + sed -i 's/^deps = -c{env:.*_CONSTRAINTS_FILE.*/deps =/' tox.ini + sed -i '/^minversion.*/d' tox.ini + sed -i '/^requires.*virtualenv.*/d' tox.ini + sed -i '/\.\[test,openstack\]/,+2d' tox.ini + sed -i '/\.*\[testenv\]deps/,+1d' tox.ini + sed -i '/\.\[test,doc\]/d' tox.ini + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.o9yvfs + umask 022 + cd /builddir/build/BUILD + cd gnocchiclient-7.0.8 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/gnocchiclient-7.0.8/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/gnocchiclient-7.0.8/.pyproject-builddir + RPM_TOXENV=py312 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/gnocchiclient-7.0.8/pyproject-wheeldir --output /builddir/build/BUILD/python-gnocchiclient-7.0.8-1.fc40.x86_64-pyproject-buildrequires -t -e py312 Handling setuptools from build-system.requires Requirement satisfied: setuptools (installed: setuptools 68.2.2) Handling setuptools_scm from build-system.requires Requirement satisfied: setuptools_scm (installed: setuptools_scm 8.0.4) Handling wheel from build-system.requires Requirement satisfied: wheel (installed: wheel 0.41.2) running egg_info writing gnocchiclient.egg-info/PKG-INFO writing dependency_links to gnocchiclient.egg-info/dependency_links.txt writing entry points to gnocchiclient.egg-info/entry_points.txt writing requirements to gnocchiclient.egg-info/requires.txt writing top-level names to gnocchiclient.egg-info/top_level.txt reading manifest file 'gnocchiclient.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'gnocchiclient.egg-info/SOURCES.txt' Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.41.2) Handling tox-current-env >= 0.0.6 from tox itself Requirement satisfied: tox-current-env >= 0.0.6 (installed: tox-current-env 0.0.11) py312: OK (0.01 seconds) congratulations :) (0.06 seconds) Handling tox from tox --print-deps-only: py312 Requirement satisfied: tox (installed: tox 4.11.1) running dist_info writing gnocchiclient.egg-info/PKG-INFO writing dependency_links to gnocchiclient.egg-info/dependency_links.txt writing entry points to gnocchiclient.egg-info/entry_points.txt writing requirements to gnocchiclient.egg-info/requires.txt writing top-level names to gnocchiclient.egg-info/top_level.txt reading manifest file 'gnocchiclient.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'gnocchiclient.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/gnocchiclient-7.0.8/gnocchiclient-7.0.8.dist-info' The [wheel] section is deprecated. Use [bdist_wheel] instead. Handling cliff >=2.10 from hook generated metadata: Requires-Dist (gnocchiclient) Requirement not satisfied: cliff >=2.10 Handling ujson from hook generated metadata: Requires-Dist (gnocchiclient) Requirement not satisfied: ujson Handling keystoneauth1 >=2.0.0 from hook generated metadata: Requires-Dist (gnocchiclient) Requirement not satisfied: keystoneauth1 >=2.0.0 Handling six from hook generated metadata: Requires-Dist (gnocchiclient) Requirement not satisfied: six Handling futurist from hook generated metadata: Requires-Dist (gnocchiclient) Requirement not satisfied: futurist Handling iso8601 from hook generated metadata: Requires-Dist (gnocchiclient) Requirement not satisfied: iso8601 Handling python-dateutil from hook generated metadata: Requires-Dist (gnocchiclient) Requirement not satisfied: python-dateutil Handling debtcollector from hook generated metadata: Requires-Dist (gnocchiclient) Requirement not satisfied: debtcollector Handling sphinx ; extra == 'doc' from hook generated metadata: Requires-Dist (gnocchiclient) Ignoring alien requirement: sphinx ; extra == 'doc' Handling sphinx-rtd-theme ; extra == 'doc' from hook generated metadata: Requires-Dist (gnocchiclient) Ignoring alien requirement: sphinx-rtd-theme ; extra == 'doc' Handling osc-lib >=0.3.0 ; extra == 'openstack' from hook generated metadata: Requires-Dist (gnocchiclient) Ignoring alien requirement: osc-lib >=0.3.0 ; extra == 'openstack' Handling python-openstackclient ; extra == 'test' from hook generated metadata: Requires-Dist (gnocchiclient) Ignoring alien requirement: python-openstackclient ; extra == 'test' Handling pytest ; extra == 'test' from hook generated metadata: Requires-Dist (gnocchiclient) Ignoring alien requirement: pytest ; extra == 'test' Handling pytest-xdist ; extra == 'test' from hook generated metadata: Requires-Dist (gnocchiclient) Ignoring alien requirement: pytest-xdist ; extra == 'test' + cat /builddir/build/BUILD/python-gnocchiclient-7.0.8-1.fc40.x86_64-pyproject-buildrequires + rm -rfv gnocchiclient-7.0.8.dist-info/ removed 'gnocchiclient-7.0.8.dist-info/LICENSE' removed 'gnocchiclient-7.0.8.dist-info/METADATA' removed 'gnocchiclient-7.0.8.dist-info/entry_points.txt' removed 'gnocchiclient-7.0.8.dist-info/top_level.txt' removed directory 'gnocchiclient-7.0.8.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-gnocchiclient-7.0.8-1.fc40.buildreqs.nosrc.rpm INFO: Going to install missing dynamic buildrequires No matches found for the following disable plugin patterns: local, spacewalk, versionlock Copr repository 45 kB/s | 1.5 kB 00:00 Copr repository 25 MB/s | 3.9 MB 00:00 fedora 675 kB/s | 20 kB 00:00 Package pyproject-rpm-macros-1.10.0-1.fc40.noarch is already installed. Package pyproject-rpm-macros-1.10.0-1.fc40.noarch is already installed. Package python3-devel-3.12.0-2.fc40.x86_64 is already installed. Package python3-devel-3.12.0-2.fc40.x86_64 is already installed. Package python3-packaging-23.2-2.fc40.noarch is already installed. Package python3-pip-23.2.1-1.fc39.noarch is already installed. Package python3-setuptools-68.2.2-1.fc40.noarch is already installed. Package python3-setuptools_scm-8.0.4-1.fc40.noarch is already installed. Package tox-4.11.1-1.fc40.noarch is already installed. Package python3-tox-current-env-0.0.11-5.fc39.noarch is already installed. Package python3-wheel-1:0.41.2-1.fc40.noarch is already installed. Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: python3-cliff noarch 4.3.0-1.fc40 fedora 125 k python3-dateutil noarch 1:2.8.2-11.fc40 copr_base 345 k python3-debtcollector noarch 2.5.0-6.fc40 copr_base 36 k python3-futurist noarch 2.4.1-4.fc40 copr_base 78 k python3-iso8601 noarch 1.1.0-4.fc39 fedora 25 k python3-keystoneauth1 noarch 5.3.0-1.fc40 fedora 588 k python3-six noarch 1.16.0-12.fc39 fedora 41 k python3-ujson x86_64 5.8.0-2.fc39 fedora 34 k Installing dependencies: double-conversion x86_64 3.1.5-9.fc39 fedora 49 k git-core x86_64 2.43.0-1.fc40 copr_base 4.5 M less x86_64 643-1.fc40 fedora 176 k libcbor x86_64 0.10.2-3.fc40 copr_base 33 k libedit x86_64 3.1-48.20230828cvs.fc40 fedora 107 k libfido2 x86_64 1.14.0-1.fc40 fedora 97 k libyaml x86_64 0.2.5-12.fc39 fedora 59 k openssh x86_64 9.3p1-13.fc40 fedora 438 k openssh-clients x86_64 9.3p1-13.fc40 fedora 735 k python3-attrs noarch 23.1.0-4.fc39 fedora 123 k python3-autopage noarch 0.5.2-2.fc40 fedora 83 k python3-charset-normalizer noarch 3.3.2-1.fc40 fedora 107 k python3-cmd2 noarch 2.4.2-4.fc39 fedora 387 k python3-idna noarch 3.4-5.fc40 fedora 109 k python3-importlib-metadata noarch 6.8.0-1.fc39 fedora 61 k python3-os-service-types noarch 1.7.0-14.fc40 fedora 49 k python3-pbr noarch 5.11.1-5.fc40~bootstrap fedora 214 k python3-prettytable noarch 3.6.0-3.fc39 fedora 66 k python3-pyperclip noarch 1.8.2-6.fc39 fedora 32 k python3-pyyaml x86_64 6.0.1-11.fc39 fedora 230 k python3-requests noarch 2.31.0-1.fc40 copr_base 142 k python3-stevedore noarch 5.1.0-1.fc40 fedora 99 k python3-urllib3 noarch 1.26.18-1.fc40 fedora 274 k python3-wcwidth noarch 0.2.6-1.fc40 fedora 47 k python3-wrapt x86_64 1.14.1-6.fc40 fedora 68 k python3-zipp noarch 3.17.0-1.fc40 fedora 24 k Transaction Summary ================================================================================ Install 34 Packages Total size: 9.4 M Total download size: 1.8 M Installed size: 38 M Downloading Packages: [SKIPPED] git-core-2.43.0-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] libcbor-0.10.2-3.fc40.x86_64.rpm: Already downloaded [SKIPPED] python3-dateutil-2.8.2-11.fc40.noarch.rpm: Already downloaded [SKIPPED] python3-requests-2.31.0-1.fc40.noarch.rpm: Already downloaded [SKIPPED] less-643-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] libedit-3.1-48.20230828cvs.fc40.x86_64.rpm: Already downloaded [SKIPPED] libfido2-1.14.0-1.fc40.x86_64.rpm: Already downloaded [SKIPPED] libyaml-0.2.5-12.fc39.x86_64.rpm: Already downloaded [SKIPPED] openssh-9.3p1-13.fc40.x86_64.rpm: Already downloaded [SKIPPED] openssh-clients-9.3p1-13.fc40.x86_64.rpm: Already downloaded [SKIPPED] python3-charset-normalizer-3.3.2-1.fc40.noarch.rpm: Already downloaded [SKIPPED] python3-idna-3.4-5.fc40.noarch.rpm: Already downloaded [SKIPPED] python3-pbr-5.11.1-5.fc40~bootstrap.noarch.rpm: Already downloaded [SKIPPED] python3-prettytable-3.6.0-3.fc39.noarch.rpm: Already downloaded [SKIPPED] python3-pyyaml-6.0.1-11.fc39.x86_64.rpm: Already downloaded [SKIPPED] python3-six-1.16.0-12.fc39.noarch.rpm: Already downloaded [SKIPPED] python3-urllib3-1.26.18-1.fc40.noarch.rpm: Already downloaded [SKIPPED] python3-wcwidth-0.2.6-1.fc40.noarch.rpm: Already downloaded (19/34): python3-debtcollector-2.5.0-6.fc40.noa 784 kB/s | 36 kB 00:00 (20/34): python3-futurist-2.4.1-4.fc40.noarch.r 829 kB/s | 78 kB 00:00 (21/34): double-conversion-3.1.5-9.fc39.x86_64. 154 kB/s | 49 kB 00:00 (22/34): python3-attrs-23.1.0-4.fc39.noarch.rpm 311 kB/s | 123 kB 00:00 (23/34): python3-autopage-0.5.2-2.fc40.noarch.r 220 kB/s | 83 kB 00:00 (24/34): python3-cliff-4.3.0-1.fc40.noarch.rpm 568 kB/s | 125 kB 00:00 (25/34): python3-importlib-metadata-6.8.0-1.fc3 459 kB/s | 61 kB 00:00 (26/34): python3-iso8601-1.1.0-4.fc39.noarch.rp 262 kB/s | 25 kB 00:00 (27/34): python3-cmd2-2.4.2-4.fc39.noarch.rpm 1.5 MB/s | 387 kB 00:00 (28/34): python3-os-service-types-1.7.0-14.fc40 460 kB/s | 49 kB 00:00 (29/34): python3-pyperclip-1.8.2-6.fc39.noarch. 341 kB/s | 32 kB 00:00 (30/34): python3-stevedore-5.1.0-1.fc40.noarch. 788 kB/s | 99 kB 00:00 (31/34): python3-ujson-5.8.0-2.fc39.x86_64.rpm 380 kB/s | 34 kB 00:00 (32/34): python3-keystoneauth1-5.3.0-1.fc40.noa 1.8 MB/s | 588 kB 00:00 (33/34): python3-wrapt-1.14.1-6.fc40.x86_64.rpm 690 kB/s | 68 kB 00:00 (34/34): python3-zipp-3.17.0-1.fc40.noarch.rpm 246 kB/s | 24 kB 00:00 -------------------------------------------------------------------------------- Total 1.8 MB/s | 1.8 MB 00:01 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : python3-wcwidth-0.2.6-1.fc40.noarch 1/34 Installing : python3-idna-3.4-5.fc40.noarch 2/34 Installing : python3-urllib3-1.26.18-1.fc40.noarch 3/34 Installing : python3-prettytable-3.6.0-3.fc39.noarch 4/34 Installing : python3-zipp-3.17.0-1.fc40.noarch 5/34 Installing : python3-importlib-metadata-6.8.0-1.fc39.noarch 6/34 Installing : python3-wrapt-1.14.1-6.fc40.x86_64 7/34 Installing : python3-six-1.16.0-12.fc39.noarch 8/34 Installing : python3-pyperclip-1.8.2-6.fc39.noarch 9/34 Installing : python3-iso8601-1.1.0-4.fc39.noarch 10/34 Installing : python3-charset-normalizer-3.3.2-1.fc40.noarch 11/34 Installing : python3-requests-2.31.0-1.fc40.noarch 12/34 Installing : python3-autopage-0.5.2-2.fc40.noarch 13/34 Installing : python3-attrs-23.1.0-4.fc39.noarch 14/34 Installing : python3-cmd2-2.4.2-4.fc39.noarch 15/34 Installing : openssh-9.3p1-13.fc40.x86_64 16/34 Installing : libyaml-0.2.5-12.fc39.x86_64 17/34 Installing : python3-pyyaml-6.0.1-11.fc39.x86_64 18/34 Installing : libedit-3.1-48.20230828cvs.fc40.x86_64 19/34 Installing : less-643-1.fc40.x86_64 20/34 Installing : double-conversion-3.1.5-9.fc39.x86_64 21/34 Installing : libcbor-0.10.2-3.fc40.x86_64 22/34 Installing : libfido2-1.14.0-1.fc40.x86_64 23/34 Installing : openssh-clients-9.3p1-13.fc40.x86_64 24/34 Running scriptlet: openssh-clients-9.3p1-13.fc40.x86_64 24/34 Installing : git-core-2.43.0-1.fc40.x86_64 25/34 Installing : python3-pbr-5.11.1-5.fc40~bootstrap.noarch 26/34 Installing : python3-stevedore-5.1.0-1.fc40.noarch 27/34 Installing : python3-os-service-types-1.7.0-14.fc40.noarch 28/34 Installing : python3-keystoneauth1-5.3.0-1.fc40.noarch 29/34 Installing : python3-cliff-4.3.0-1.fc40.noarch 30/34 Installing : python3-ujson-5.8.0-2.fc39.x86_64 31/34 Installing : python3-dateutil-1:2.8.2-11.fc40.noarch 32/34 Installing : python3-debtcollector-2.5.0-6.fc40.noarch 33/34 Installing : python3-futurist-2.4.1-4.fc40.noarch 34/34 Running scriptlet: python3-futurist-2.4.1-4.fc40.noarch 34/34 Installed: double-conversion-3.1.5-9.fc39.x86_64 git-core-2.43.0-1.fc40.x86_64 less-643-1.fc40.x86_64 libcbor-0.10.2-3.fc40.x86_64 libedit-3.1-48.20230828cvs.fc40.x86_64 libfido2-1.14.0-1.fc40.x86_64 libyaml-0.2.5-12.fc39.x86_64 openssh-9.3p1-13.fc40.x86_64 openssh-clients-9.3p1-13.fc40.x86_64 python3-attrs-23.1.0-4.fc39.noarch python3-autopage-0.5.2-2.fc40.noarch python3-charset-normalizer-3.3.2-1.fc40.noarch python3-cliff-4.3.0-1.fc40.noarch python3-cmd2-2.4.2-4.fc39.noarch python3-dateutil-1:2.8.2-11.fc40.noarch python3-debtcollector-2.5.0-6.fc40.noarch python3-futurist-2.4.1-4.fc40.noarch python3-idna-3.4-5.fc40.noarch python3-importlib-metadata-6.8.0-1.fc39.noarch python3-iso8601-1.1.0-4.fc39.noarch python3-keystoneauth1-5.3.0-1.fc40.noarch python3-os-service-types-1.7.0-14.fc40.noarch python3-pbr-5.11.1-5.fc40~bootstrap.noarch python3-prettytable-3.6.0-3.fc39.noarch python3-pyperclip-1.8.2-6.fc39.noarch python3-pyyaml-6.0.1-11.fc39.x86_64 python3-requests-2.31.0-1.fc40.noarch python3-six-1.16.0-12.fc39.noarch python3-stevedore-5.1.0-1.fc40.noarch python3-ujson-5.8.0-2.fc39.x86_64 python3-urllib3-1.26.18-1.fc40.noarch python3-wcwidth-0.2.6-1.fc40.noarch python3-wrapt-1.14.1-6.fc40.x86_64 python3-zipp-3.17.0-1.fc40.noarch Complete! Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1698192000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.rcqhwm + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf gnocchiclient-7.0.8 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/gnocchiclient-7.0.8.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd gnocchiclient-7.0.8 + rm -rf /builddir/build/BUILD/gnocchiclient-7.0.8-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/gnocchiclient-7.0.8-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + 2to3 --write --nobackups . /usr/bin/2to3:3: DeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+ from lib2to3.main import main RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: No changes to ./setup.py RefactoringTool: Refactored ./doc/source/conf.py RefactoringTool: No changes to ./gnocchiclient/auth.py RefactoringTool: Refactored ./gnocchiclient/benchmark.py RefactoringTool: No changes to ./gnocchiclient/client.py RefactoringTool: No changes to ./gnocchiclient/exceptions.py RefactoringTool: Refactored ./gnocchiclient/gendoc.py RefactoringTool: No changes to ./gnocchiclient/osc.py RefactoringTool: Refactored ./gnocchiclient/shell.py RefactoringTool: Refactored ./gnocchiclient/utils.py RefactoringTool: No changes to ./gnocchiclient/version.py RefactoringTool: No changes to ./gnocchiclient/tests/functional/base.py RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_aggregates.py RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_archive_policy.py --- ./doc/source/conf.py (original) +++ ./doc/source/conf.py (refactored) @@ -43,8 +43,8 @@ master_doc = 'index' # General information about the project. -project = u'Gnocchiclient' -copyright = u'%s, The Gnocchi Developers' % datetime.date.today().year +project = 'Gnocchiclient' +copyright = '%s, The Gnocchi Developers' % datetime.date.today().year # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the --- ./gnocchiclient/benchmark.py (original) +++ ./gnocchiclient/benchmark.py (refactored) @@ -37,10 +37,10 @@ def _pickle_method(m): - if m.im_self is None: - return getattr, (m.im_class, m.im_func.func_name) + if m.__self__ is None: + return getattr, (m.__self__.__class__, m.__func__.__name__) else: - return getattr, (m.im_self, m.im_func.func_name) + return getattr, (m.__self__, m.__func__.__name__) six.moves.copyreg.pickle(types.MethodType, _pickle_method) --- ./gnocchiclient/gendoc.py (original) +++ ./gnocchiclient/gendoc.py (refactored) @@ -12,7 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. -from __future__ import absolute_import + import fnmatch @@ -24,7 +24,7 @@ class GnocchiAutoDocDirective(sphinxext.AutoprogramCliffDirective): def _load_commands(self): command_pattern = self.options.get('command') - full_cmd_list = shell.GnocchiCommandManager.SHELL_COMMANDS.keys() + full_cmd_list = list(shell.GnocchiCommandManager.SHELL_COMMANDS.keys()) if command_pattern: commands = [x for x in full_cmd_list if fnmatch.fnmatch(x, command_pattern)] --- ./gnocchiclient/shell.py (original) +++ ./gnocchiclient/shell.py (refactored) @@ -86,7 +86,7 @@ } def load_commands(self, namespace): - for name, command_class in self.SHELL_COMMANDS.items(): + for name, command_class in list(self.SHELL_COMMANDS.items()): self.add_command(name, command_class) @@ -199,10 +199,10 @@ else: if 'description' in error: # Gnocchi format - print(error['description']) + print((error['description'])) elif 'error' in error and 'message' in error['error']: # Keystone format - print(error['error']['message']) + print((error['error']['message'])) def configure_logging(self): if self.options.debug: --- ./gnocchiclient/utils.py (original) +++ ./gnocchiclient/utils.py (refactored) @@ -22,14 +22,14 @@ def add_query_argument(cmd, parser, *args, **kwargs): return parser.add_argument( cmd, - help=u"A query to filter resource. " - u"The syntax is a combination of attribute, operator and value. " - u"For example: id=90d58eea-70d7-4294-a49a-170dcdf44c3c would filter " - u"resource with a certain id. More complex queries can be built, " - u"e.g.: not (flavor_id!=\"1\" and memory>=24). " - u"Use \"\" to force data to be interpreted as string. " - u"Supported operators are: not, and, ∧ or, ∨, >=, <=, !=, >, <, =, " - u"==, eq, ne, lt, gt, ge, le, in, like, ≠, ≥, ≤, like, in.", + help="A query to filter resource. " + "The syntax is a combination of attribute, operator and value. " + "For example: id=90d58eea-70d7-4294-a49a-170dcdf44c3c would filter " + "resource with a certain id. More complex queries can be built, " + "e.g.: not (flavor_id!=\"1\" and memory>=24). " + "Use \"\" to force data to be interpreted as string. " + "Supported operators are: not, and, ∧ or, ∨, >=, <=, !=, >, <, =, " + "==, eq, ne, lt, gt, ge, le, in, like, ≠, ≥, ≤, like, in.", *args, **kwargs) @@ -45,15 +45,15 @@ def format_dict_list(li): return "\n".join( "- " + ", ".join("%s: %s" % (k, v) - for k, v in elem.items()) + for k, v in list(elem.items())) for elem in li) def format_dict_dict(value): return "\n".join( "- %s: " % name + " , ".join("%s: %s" % (k, v) - for k, v in elem.items()) - for name, elem in value.items()) + for k, v in list(elem.items())) + for name, elem in list(value.items())) def format_move_dict_to_root(obj, field): @@ -105,7 +105,7 @@ strings.append("&".join( ("%s=%s" % (k, v) for v in map(urllib_parse.quote, - map(six.text_type, values))))) + list(map(six.text_type, values)))))) return "&".join(strings) --- ./gnocchiclient/tests/functional/test_aggregates.py (original) +++ ./gnocchiclient/tests/functional/test_aggregates.py (refactored) @@ -25,9 +25,9 @@ # CREATE A METRIC result = self.gnocchi( - u'metric', params=u"create" - u' -r metric-res1' - u" --archive-policy-name agg-fetch-test metric-name") + 'metric', params="create" + ' -r metric-res1' + " --archive-policy-name agg-fetch-test metric-name") metric1 = json.loads(result) self.assertIsNotNone(metric1["id"]) self.assertEqual("admin", metric1["creator"]) @@ -38,10 +38,10 @@ # CREATE ANOTHER METRIC result = self.gnocchi( - u'metric', params=u"create" - u' -r metric-res2' - u" --archive-policy-name agg-fetch-test" - u" --unit some-unit metric-name") + 'metric', params="create" + ' -r metric-res2' + " --archive-policy-name agg-fetch-test" + " --unit some-unit metric-name") metric2 = json.loads(result) self.assertIsNotNone(metric2["id"]) self.assertEqual("admin", metric2["creator"]) @@ -113,22 +113,22 @@ measures = json.loads(result) self.assertEqual(4, len(measures)) self.assertIn({'granularity': 1.0, - 'group': u'project_id: None, user_id: None', - 'name': u'%s/metric-name/mean' % r1["id"], - 'timestamp': u'2015-03-06T14:33:57+00:00', + 'group': 'project_id: None, user_id: None', + 'name': '%s/metric-name/mean' % r1["id"], + 'timestamp': '2015-03-06T14:33:57+00:00', 'value': 45.11}, measures) self.assertIn({'granularity': 1.0, - 'group': u'project_id: None, user_id: None', - 'name': u'%s/metric-name/mean' % r1["id"], - 'timestamp': u'2015-03-06T14:34:12+00:00', + 'group': 'project_id: None, user_id: None', + 'name': '%s/metric-name/mean' % r1["id"], + 'timestamp': '2015-03-06T14:34:12+00:00', 'value': 14.0}, measures) self.assertIn({'granularity': 1.0, - 'group': u'project_id: None, user_id: None', - 'name': u'%s/metric-name/mean' % r2["id"], - 'timestamp': u'2015-03-06T14:33:57+00:00', + 'group': 'project_id: None, user_id: None', + 'name': '%s/metric-name/mean' % r2["id"], + 'timestamp': '2015-03-06T14:33:57+00:00', 'value': 45.11}, measures) self.assertIn({'granularity': 1.0, - 'group': u'project_id: None, user_id: None', - 'name': u'%s/metric-name/mean' % r2["id"], - 'timestamp': u'2015-03-06T14:34:12+00:00', + 'group': 'project_id: None, user_id: None', + 'name': '%s/metric-name/mean' % r2["id"], + 'timestamp': '2015-03-06T14:34:12+00:00', 'value': 14.0}, measures) RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_archive_policy_rule.py RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_benchmark.py RefactoringTool: No changes to ./gnocchiclient/tests/functional/test_capabilities.py RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_metric.py --- ./gnocchiclient/tests/functional/test_archive_policy.py (original) +++ ./gnocchiclient/tests/functional/test_archive_policy.py (refactored) @@ -20,17 +20,17 @@ # CREATE apname = str(uuid.uuid4()) result = self.gnocchi( - u'archive-policy', params=u"create %s" - u" --back-window 0" - u" -d granularity:1s,points:86400" % apname) + 'archive-policy', params="create %s" + " --back-window 0" + " -d granularity:1s,points:86400" % apname) policy = json.loads(result) self.assertEqual(apname, policy["name"]) # CREATE FAIL result = self.gnocchi( - u'archive-policy', params=u"create %s" - u" --back-window 0" - u" -d granularity:1s,points:86400" % apname, + 'archive-policy', params="create %s" + " --back-window 0" + " -d granularity:1s,points:86400" % apname, fail_ok=True, merge_stderr=True) self.assertEqual( "Archive policy %s already exists (HTTP 409)\n" % apname, --- ./gnocchiclient/tests/functional/test_archive_policy_rule.py (original) +++ ./gnocchiclient/tests/functional/test_archive_policy_rule.py (refactored) @@ -20,22 +20,22 @@ apname = str(uuid.uuid4()) # Create an archive policy self.gnocchi( - u'archive-policy', params=u"create %s" - u" -d granularity:1s,points:86400" % apname) + 'archive-policy', params="create %s" + " -d granularity:1s,points:86400" % apname) # CREATE result = self.gnocchi( - u'archive-policy-rule', params=u"create test" - u" --archive-policy-name %s" - u" --metric-pattern 'disk.io.*'" % apname) + 'archive-policy-rule', params="create test" + " --archive-policy-name %s" + " --metric-pattern 'disk.io.*'" % apname) policy_rule = json.loads(result) self.assertEqual('test', policy_rule["name"]) # CREATE FAIL result = self.gnocchi( - u'archive-policy-rule', params=u"create test" - u" --archive-policy-name high" - u" --metric-pattern 'disk.io.*'", + 'archive-policy-rule', params="create test" + " --archive-policy-name high" + " --metric-pattern 'disk.io.*'", fail_ok=True, merge_stderr=True) self.assertEqual( "Archive policy rule test already exists (HTTP 409)\n", @@ -56,12 +56,12 @@ # CREATE - RENAME - GET self.gnocchi( - u'archive-policy-rule', params=u"create to_rename" - u" --archive-policy-name %s" - u" --metric-pattern 'disk.io.*'" % apname) + 'archive-policy-rule', params="create to_rename" + " --archive-policy-name %s" + " --metric-pattern 'disk.io.*'" % apname) result = self.gnocchi( - u'archive-policy-rule', params=u'update to_rename' - u' --name renamed') + 'archive-policy-rule', params='update to_rename' + ' --name renamed') policy_rule = json.loads(result) self.assertEqual('renamed', policy_rule["name"]) --- ./gnocchiclient/tests/functional/test_benchmark.py (original) +++ ./gnocchiclient/tests/functional/test_benchmark.py (refactored) @@ -18,7 +18,7 @@ class BenchmarkMetricTest(base.ClientTestBase): def test_benchmark_metric_create_wrong_workers(self): result = self.gnocchi( - u'benchmark', params=u"metric create -n 0", + 'benchmark', params="metric create -n 0", fail_ok=True, merge_stderr=True) self.assertIn("0 must be greater than 0", result) @@ -29,7 +29,7 @@ "--back-window 0 -d granularity:1s,points:86400" % apname) result = self.gnocchi( - u'benchmark', params=u"metric create -n 10 -a %s" % apname) + 'benchmark', params="metric create -n 10 -a %s" % apname) result = json.loads(result) self.assertEqual(10, int(result['create executed'])) self.assertLessEqual(int(result['create failures']), 10) @@ -37,7 +37,7 @@ int(result['create executed'])) result = self.gnocchi( - u'benchmark', params=u"metric create -k -n 10 -a %s" % apname) + 'benchmark', params="metric create -k -n 10 -a %s" % apname) result = json.loads(result) self.assertEqual(10, int(result['create executed'])) self.assertLessEqual(int(result['create failures']), 10) @@ -50,11 +50,11 @@ "--back-window 0 -d granularity:1s,points:86400" % apname) result = self.gnocchi( - u'metric', params=u"create -a %s" % apname) + 'metric', params="create -a %s" % apname) metric = json.loads(result) result = self.gnocchi( - u'benchmark', params=u"metric show -n 10 %s" % metric['id']) + 'benchmark', params="metric show -n 10 %s" % metric['id']) result = json.loads(result) self.assertEqual(10, int(result['show executed'])) self.assertLessEqual(int(result['show failures']), 10) @@ -66,26 +66,26 @@ "--back-window 0 -d granularity:1s,points:86400" % apname) result = self.gnocchi( - u'metric', params=u"create -a %s" % apname) + 'metric', params="create -a %s" % apname) metric = json.loads(result) result = self.gnocchi( - u'benchmark', params=u"measures add -n 10 -b 4 %s" % metric['id']) + 'benchmark', params="measures add -n 10 -b 4 %s" % metric['id']) result = json.loads(result) self.assertEqual(2, int(result['push executed'])) self.assertLessEqual(int(result['push failures']), 2) result = self.gnocchi( - u'benchmark', - params=u"measures add -s 2010-01-01 -n 10 -b 4 %s" + 'benchmark', + params="measures add -s 2010-01-01 -n 10 -b 4 %s" % metric['id']) result = json.loads(result) self.assertEqual(2, int(result['push executed'])) self.assertLessEqual(int(result['push failures']), 2) result = self.gnocchi( - u'benchmark', - params=u"measures add --wait -s 2010-01-01 -n 10 -b 4 %s" + 'benchmark', + params="measures add --wait -s 2010-01-01 -n 10 -b 4 %s" % metric['id']) result = json.loads(result) self.assertEqual(2, int(result['push executed'])) @@ -99,12 +99,12 @@ "--back-window 0 -d granularity:1s,points:86400" % apname) result = self.gnocchi( - u'metric', params=u"create -a %s" % apname) + 'metric', params="create -a %s" % apname) metric = json.loads(result) result = self.gnocchi( - u'benchmark', - params=u"measures show -n 2 %s" + 'benchmark', + params="measures show -n 2 %s" % metric['id']) result = json.loads(result) self.assertEqual(2, int(result['show executed'])) --- ./gnocchiclient/tests/functional/test_metric.py (original) +++ ./gnocchiclient/tests/functional/test_metric.py (refactored) @@ -28,13 +28,13 @@ "--back-window 0 -d granularity:1s,points:86400" % apname) # Create 2 metrics result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name %s" % apname) + 'metric', params="create" + " --archive-policy-name %s" % apname) metric1 = json.loads(result) result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name %s" % apname) + 'metric', params="create" + " --archive-policy-name %s" % apname) metric2 = json.loads(result) # DELETE @@ -68,11 +68,11 @@ for i in range(1005): c.metric.create({"archive_policy_name": apname}) RefactoringTool: No changes to ./gnocchiclient/tests/functional/test_osc.py RefactoringTool: No changes to ./gnocchiclient/tests/functional/test_others.py RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_resource.py RefactoringTool: Refactored ./gnocchiclient/tests/functional/test_resource_type.py - result = self.gnocchi(u'metric', params=u"list") + result = self.gnocchi('metric', params="list") self.assertGreaterEqual(len(json.loads(result)), 1005) - result = self.gnocchi(u'metric', params=u"list" - u" --limit 2") + result = self.gnocchi('metric', params="list" + " --limit 2") self.assertEqual(2, len(json.loads(result))) def test_metric_measures_exhautic_format(self): @@ -83,8 +83,8 @@ # CREATE METRIC metric_name = str(uuid.uuid4()) result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name " + ap_name + " " + metric_name) + 'metric', params="create" + " --archive-policy-name " + ap_name + " " + metric_name) metric = json.loads(result) # MEASURES ADD @@ -108,8 +108,8 @@ # CREATE METRIC metric_name = str(uuid.uuid4()) result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name " + ap_name + " " + metric_name) + 'metric', params="create" + " --archive-policy-name " + ap_name + " " + metric_name) metric = json.loads(result) # MEASURES ADD @@ -145,8 +145,8 @@ # CREATE WITH NAME AND WITHOUT UNIT result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name metric-test some-name") + 'metric', params="create" + " --archive-policy-name metric-test some-name") metric = json.loads(result) self.assertIsNotNone(metric["id"]) self.assertEqual("admin", metric["creator"]) @@ -157,9 +157,9 @@ # CREATE WITH UNIT result = self.gnocchi( - u'metric', params=u"create another-name" - u" --archive-policy-name metric-test" - u" --unit some-unit") + 'metric', params="create another-name" + " --archive-policy-name metric-test" + " --unit some-unit") metric = json.loads(result) self.assertIsNotNone(metric["id"]) self.assertEqual("admin", metric["creator"]) @@ -238,7 +238,7 @@ self.assertEqual([ {'granularity': 3600.0, 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:00:00+00:00')).isoformat(), + utils.parse_date('2015-03-06T14:00:00+00:00')).isoformat(), 'value': 27.555} ], measures) @@ -327,9 +327,9 @@ metric_name = str(uuid.uuid4()) # CREATE result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name metric-test2 -r metric-res %s" - u" --unit some-unit" % metric_name) + 'metric', params="create" + " --archive-policy-name metric-test2 -r metric-res %s" + " --unit some-unit" % metric_name) metric = json.loads(result) self.assertIsNotNone(metric["id"]) self.assertEqual("admin", metric['creator']) @@ -340,8 +340,8 @@ # CREATE FAIL result = self.gnocchi( - u'metric', params=u"create" - u" --archive-policy-name metric-test2 " + 'metric', params="create" + " --archive-policy-name metric-test2 " "-r metric-res %s" % metric_name, fail_ok=True, merge_stderr=True) self.assertEqual( @@ -403,11 +403,11 @@ self.assertEqual([ {'granularity': 1.0, 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:33:57+00:00')).isoformat(), - 'value': 43.11}, - {'granularity': 1.0, - 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:34:12+00:00')).isoformat(), + utils.parse_date('2015-03-06T14:33:57+00:00')).isoformat(), + 'value': 43.11}, + {'granularity': 1.0, + 'timestamp': utils.dt_to_localtz( + utils.parse_date('2015-03-06T14:34:12+00:00')).isoformat(), 'value': 12.0} ], measures) @@ -425,11 +425,11 @@ self.assertEqual([ {'granularity': 1.0, 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:33:57+00:00')).isoformat(), - 'value': 43.11}, - {'granularity': 1.0, - 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:34:12+00:00')).isoformat(), + utils.parse_date('2015-03-06T14:33:57+00:00')).isoformat(), + 'value': 43.11}, + {'granularity': 1.0, + 'timestamp': utils.dt_to_localtz( + utils.parse_date('2015-03-06T14:34:12+00:00')).isoformat(), 'value': 12.0} ], measures) @@ -469,12 +469,12 @@ {'group': 'project_id: None, user_id: None', 'granularity': 1.0, 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:33:57+00:00')).isoformat(), + utils.parse_date('2015-03-06T14:33:57+00:00')).isoformat(), 'value': 43.11}, {'group': 'project_id: None, user_id: None', 'granularity': 1.0, 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:34:12+00:00')).isoformat(), + utils.parse_date('2015-03-06T14:34:12+00:00')).isoformat(), 'value': 12.0}, ], measures) @@ -489,11 +489,11 @@ self.assertEqual([ {'granularity': 1.0, 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:33:57+00:00')).isoformat(), - 'value': 43.11}, - {'granularity': 1.0, - 'timestamp': utils.dt_to_localtz( - utils.parse_date(u'2015-03-06T14:34:12+00:00')).isoformat(), + utils.parse_date('2015-03-06T14:33:57+00:00')).isoformat(), + 'value': 43.11}, + {'granularity': 1.0, + 'timestamp': utils.dt_to_localtz( + utils.parse_date('2015-03-06T14:34:12+00:00')).isoformat(), 'value': 12.0}, ], measures) --- ./gnocchiclient/tests/functional/test_resource.py (original) +++ ./gnocchiclient/tests/functional/test_resource.py (refactored) @@ -29,12 +29,12 @@ apname = str(uuid.uuid4()) # Create an archive policy self.gnocchi( - u'archive-policy', params=u"create %s" - u" -d granularity:1s,points:86400" % apname) + 'archive-policy', params="create %s" + " -d granularity:1s,points:86400" % apname) # CREATE result = self.gnocchi( - u'resource', params=u"create %s --type generic" % + 'resource', params="create %s --type generic" % self.RESOURCE_ID) resource = json.loads(result) self.assertEqual(self.RESOURCE_ID, resource["id"]) @@ -170,10 +170,10 @@ # Create and Batch Delete result1 = self.gnocchi( - u'resource', params=u"create %s --type generic" % + 'resource', params="create %s --type generic" % self.RESOURCE_ID) result2 = self.gnocchi( - u'resource', params=u"create %s --type generic" % + 'resource', params="create %s --type generic" % self.RESOURCE_ID2) resource1 = json.loads(result1) resource2 = json.loads(result2) --- ./gnocchiclient/tests/functional/test_resource_type.py (original) +++ ./gnocchiclient/tests/functional/test_resource_type.py (refactored) @@ -30,8 +30,8 @@ # CREATE result = self.gnocchi( - u'resource-type', - params=u"create -a foo:string:true:max_length=16 " + 'resource-type', + params="create -a foo:string:true:max_length=16 " "-a bar:number:no:max=32 %s" % self.RESOURCE_TYPE) resource = json.loads(result) RefactoringTool: No changes to ./gnocchiclient/tests/unit/test_auth.py RefactoringTool: No changes to ./gnocchiclient/tests/unit/test_exceptions.py RefactoringTool: No changes to ./gnocchiclient/v1/aggregates.py RefactoringTool: No changes to ./gnocchiclient/v1/aggregates_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/archive_policy.py RefactoringTool: No changes to ./gnocchiclient/v1/archive_policy_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/archive_policy_rule.py RefactoringTool: No changes to ./gnocchiclient/v1/archive_policy_rule_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/base.py RefactoringTool: No changes to ./gnocchiclient/v1/build.py RefactoringTool: No changes to ./gnocchiclient/v1/build_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/capabilities.py RefactoringTool: No changes to ./gnocchiclient/v1/capabilities_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/client.py RefactoringTool: No changes to ./gnocchiclient/v1/metric.py RefactoringTool: No changes to ./gnocchiclient/v1/metric_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/resource.py RefactoringTool: Refactored ./gnocchiclient/v1/resource_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/resource_type.py RefactoringTool: Refactored ./gnocchiclient/v1/resource_type_cli.py RefactoringTool: No changes to ./gnocchiclient/v1/status.py RefactoringTool: No changes to ./gnocchiclient/v1/status_cli.py RefactoringTool: Files that were modified: RefactoringTool: ./setup.py RefactoringTool: ./doc/source/conf.py RefactoringTool: ./gnocchiclient/auth.py RefactoringTool: ./gnocchiclient/benchmark.py RefactoringTool: ./gnocchiclient/client.py RefactoringTool: ./gnocchiclient/exceptions.py RefactoringTool: ./gnocchiclient/gendoc.py RefactoringTool: ./gnocchiclient/osc.py RefactoringTool: ./gnocchiclient/shell.py RefactoringTool: ./gnocchiclient/utils.py RefactoringTool: ./gnocchiclient/version.py RefactoringTool: ./gnocchiclient/tests/functional/base.py RefactoringTool: ./gnocchiclient/tests/functional/test_aggregates.py RefactoringTool: ./gnocchiclient/tests/functional/test_archive_policy.py self.assertEqual(self.RESOURCE_TYPE, resource["name"]) @@ -41,7 +41,7 @@ # SHOW result = self.gnocchi( - u'resource-type', params=u"show %s" % self.RESOURCE_TYPE) + 'resource-type', params="show %s" % self.RESOURCE_TYPE) resource = json.loads(result) self.assertEqual(self.RESOURCE_TYPE, resource["name"]) self.assertEqual( @@ -50,8 +50,8 @@ # PATCH result = self.gnocchi( - u'resource-type', - params=u"update -r foo " + 'resource-type', + params="update -r foo " "-a new:number:yes:max=16:fill=8 %s" % self.RESOURCE_TYPE) resource = json.loads(result) self.assertEqual(self.RESOURCE_TYPE, resource["name"]) @@ -62,7 +62,7 @@ # SHOW result = self.gnocchi( - u'resource-type', params=u"show %s" % self.RESOURCE_TYPE) + 'resource-type', params="show %s" % self.RESOURCE_TYPE) resource = json.loads(result) self.assertEqual(self.RESOURCE_TYPE, resource["name"]) self.assertNotIn("attributes/foo", resource) @@ -72,7 +72,7 @@ # Create a resource for this type result = self.gnocchi( - u'resource', params=(u"create %s -t %s -a new:5") % + 'resource', params=("create %s -t %s -a new:5") % (self.RESOURCE_ID, self.RESOURCE_TYPE)) resource = json.loads(result) self.assertEqual(self.RESOURCE_ID, resource["id"]) @@ -98,8 +98,8 @@ result) # SHOW AGAIN - result = self.gnocchi(u'resource-type', - params=u"show %s" % self.RESOURCE_TYPE, + result = self.gnocchi('resource-type', + params="show %s" % self.RESOURCE_TYPE, fail_ok=True, merge_stderr=True) self.assertEqual( "Resource type %s does not exist (HTTP 404)\n" --- ./gnocchiclient/v1/resource_cli.py (original) +++ ./gnocchiclient/v1/resource_cli.py (refactored) @@ -115,7 +115,7 @@ def normalize_metrics(res): res['metrics'] = "\n".join(sorted( ["%s: %s" % (name, _id) - for name, _id in res['metrics'].items()])) + for name, _id in list(res['metrics'].items())])) return res --- ./gnocchiclient/v1/resource_type_cli.py (original) +++ ./gnocchiclient/v1/resource_type_cli.py (refactored) @@ -42,14 +42,14 @@ parser.add_argument("-a", "--attribute", action='append', type=self._resource_attribute, default=[], - help=(u"attribute definition, " - u"attribute_name:" - u"attribute_type:" - u"attribute_is_required:" - u"attribute_type_option_name=" - u"attribute_type_option_value:... " - u"For example: " - u"display_name:string:true:max_length=255")) + help=("attribute definition, " + "attribute_name:" + "attribute_type:" + "attribute_is_required:" + "attribute_type_option_name=" + "attribute_type_option_value:... " + "For example: " + "display_name:string:true:max_length=255")) return parser @classmethod @@ -90,7 +90,7 @@ parser = super(CliResourceTypeUpdate, self).get_parser(prog_name) parser.add_argument("-r", "--remove-attribute", action='append', default=[], - help=u"attribute name") + help="attribute name") return parser RefactoringTool: ./gnocchiclient/tests/functional/test_archive_policy_rule.py RefactoringTool: ./gnocchiclient/tests/functional/test_benchmark.py RefactoringTool: ./gnocchiclient/tests/functional/test_capabilities.py RefactoringTool: ./gnocchiclient/tests/functional/test_metric.py RefactoringTool: ./gnocchiclient/tests/functional/test_osc.py RefactoringTool: ./gnocchiclient/tests/functional/test_others.py RefactoringTool: ./gnocchiclient/tests/functional/test_resource.py RefactoringTool: ./gnocchiclient/tests/functional/test_resource_type.py RefactoringTool: ./gnocchiclient/tests/unit/test_auth.py RefactoringTool: ./gnocchiclient/tests/unit/test_exceptions.py RefactoringTool: ./gnocchiclient/v1/aggregates.py RefactoringTool: ./gnocchiclient/v1/aggregates_cli.py RefactoringTool: ./gnocchiclient/v1/archive_policy.py RefactoringTool: ./gnocchiclient/v1/archive_policy_cli.py RefactoringTool: ./gnocchiclient/v1/archive_policy_rule.py RefactoringTool: ./gnocchiclient/v1/archive_policy_rule_cli.py RefactoringTool: ./gnocchiclient/v1/base.py RefactoringTool: ./gnocchiclient/v1/build.py RefactoringTool: ./gnocchiclient/v1/build_cli.py RefactoringTool: ./gnocchiclient/v1/capabilities.py RefactoringTool: ./gnocchiclient/v1/capabilities_cli.py RefactoringTool: ./gnocchiclient/v1/client.py RefactoringTool: ./gnocchiclient/v1/metric.py RefactoringTool: ./gnocchiclient/v1/metric_cli.py RefactoringTool: ./gnocchiclient/v1/resource.py RefactoringTool: ./gnocchiclient/v1/resource_cli.py RefactoringTool: ./gnocchiclient/v1/resource_type.py RefactoringTool: ./gnocchiclient/v1/resource_type_cli.py RefactoringTool: ./gnocchiclient/v1/status.py RefactoringTool: ./gnocchiclient/v1/status_cli.py + sed -i '/^[[:space:]]*-c{env:.*_CONSTRAINTS_FILE.*/d' tox.ini + sed -i 's/^deps = -c{env:.*_CONSTRAINTS_FILE.*/deps =/' tox.ini + sed -i '/^minversion.*/d' tox.ini + sed -i '/^requires.*virtualenv.*/d' tox.ini + sed -i '/\.\[test,openstack\]/,+2d' tox.ini + sed -i '/\.*\[testenv\]deps/,+1d' tox.ini + sed -i '/\.\[test,doc\]/d' tox.ini + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + for pkg in doc8 bandit pre-commit hacking flake8-import-order sphinx openstackdocstheme + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f doc/requirements.txt ']' + for reqfile in doc/requirements.txt test-requirements.txt + '[' -f test-requirements.txt ']' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.ZV9YFE + umask 022 + cd /builddir/build/BUILD + cd gnocchiclient-7.0.8 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/gnocchiclient-7.0.8/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/gnocchiclient-7.0.8/.pyproject-builddir + RPM_TOXENV=py312 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/gnocchiclient-7.0.8/pyproject-wheeldir --output /builddir/build/BUILD/python-gnocchiclient-7.0.8-1.fc40.x86_64-pyproject-buildrequires -t -e py312 Handling setuptools from build-system.requires Requirement satisfied: setuptools (installed: setuptools 68.2.2) Handling setuptools_scm from build-system.requires Requirement satisfied: setuptools_scm (installed: setuptools_scm 8.0.4) Handling wheel from build-system.requires Requirement satisfied: wheel (installed: wheel 0.41.2) running egg_info writing gnocchiclient.egg-info/PKG-INFO writing dependency_links to gnocchiclient.egg-info/dependency_links.txt writing entry points to gnocchiclient.egg-info/entry_points.txt writing requirements to gnocchiclient.egg-info/requires.txt writing top-level names to gnocchiclient.egg-info/top_level.txt ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any reading manifest file 'gnocchiclient.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'gnocchiclient.egg-info/SOURCES.txt' Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.41.2) Handling tox-current-env >= 0.0.6 from tox itself Requirement satisfied: tox-current-env >= 0.0.6 (installed: tox-current-env 0.0.11) py312: OK (0.01 seconds) congratulations :) (0.06 seconds) Handling tox from tox --print-deps-only: py312 Requirement satisfied: tox (installed: tox 4.11.1) running dist_info writing gnocchiclient.egg-info/PKG-INFO writing dependency_links to gnocchiclient.egg-info/dependency_links.txt writing entry points to gnocchiclient.egg-info/entry_points.txt writing requirements to gnocchiclient.egg-info/requires.txt writing top-level names to gnocchiclient.egg-info/top_level.txt ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any reading manifest file 'gnocchiclient.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'gnocchiclient.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/gnocchiclient-7.0.8/gnocchiclient-7.0.8.dist-info' The [wheel] section is deprecated. Use [bdist_wheel] instead. Handling cliff >=2.10 from hook generated metadata: Requires-Dist (gnocchiclient) Requirement satisfied: cliff >=2.10 (installed: cliff 4.3.0) Handling ujson from hook generated metadata: Requires-Dist (gnocchiclient) Requirement satisfied: ujson (installed: ujson 5.8.0) Handling keystoneauth1 >=2.0.0 from hook generated metadata: Requires-Dist (gnocchiclient) Requirement satisfied: keystoneauth1 >=2.0.0 (installed: keystoneauth1 5.3.0) Handling six from hook generated metadata: Requires-Dist (gnocchiclient) Requirement satisfied: six (installed: six 1.16.0) Handling futurist from hook generated metadata: Requires-Dist (gnocchiclient) Requirement satisfied: futurist (installed: futurist 2.4.1) Handling iso8601 from hook generated metadata: Requires-Dist (gnocchiclient) Requirement satisfied: iso8601 (installed: iso8601 1.1.0) Handling python-dateutil from hook generated metadata: Requires-Dist (gnocchiclient) Requirement satisfied: python-dateutil (installed: python-dateutil 2.8.2) Handling debtcollector from hook generated metadata: Requires-Dist (gnocchiclient) Requirement satisfied: debtcollector (installed: debtcollector 2.5.0) Handling sphinx ; extra == 'doc' from hook generated metadata: Requires-Dist (gnocchiclient) Ignoring alien requirement: sphinx ; extra == 'doc' Handling sphinx-rtd-theme ; extra == 'doc' from hook generated metadata: Requires-Dist (gnocchiclient) Ignoring alien requirement: sphinx-rtd-theme ; extra == 'doc' Handling osc-lib >=0.3.0 ; extra == 'openstack' from hook generated metadata: Requires-Dist (gnocchiclient) Ignoring alien requirement: osc-lib >=0.3.0 ; extra == 'openstack' Handling python-openstackclient ; extra == 'test' from hook generated metadata: Requires-Dist (gnocchiclient) Ignoring alien requirement: python-openstackclient ; extra == 'test' Handling pytest ; extra == 'test' from hook generated metadata: Requires-Dist (gnocchiclient) Ignoring alien requirement: pytest ; extra == 'test' Handling pytest-xdist ; extra == 'test' from hook generated metadata: Requires-Dist (gnocchiclient) Ignoring alien requirement: pytest-xdist ; extra == 'test' + cat /builddir/build/BUILD/python-gnocchiclient-7.0.8-1.fc40.x86_64-pyproject-buildrequires + rm -rfv gnocchiclient-7.0.8.dist-info/ removed 'gnocchiclient-7.0.8.dist-info/LICENSE' removed 'gnocchiclient-7.0.8.dist-info/METADATA' removed 'gnocchiclient-7.0.8.dist-info/entry_points.txt' removed 'gnocchiclient-7.0.8.dist-info/top_level.txt' removed directory 'gnocchiclient-7.0.8.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-gnocchiclient-7.0.8-1.fc40.buildreqs.nosrc.rpm INFO: Going to install missing dynamic buildrequires No matches found for the following disable plugin patterns: local, spacewalk, versionlock Copr repository 45 kB/s | 1.5 kB 00:00 Copr repository 29 MB/s | 3.9 MB 00:00 fedora 696 kB/s | 20 kB 00:00 Package pyproject-rpm-macros-1.10.0-1.fc40.noarch is already installed. Package pyproject-rpm-macros-1.10.0-1.fc40.noarch is already installed. Package python3-devel-3.12.0-2.fc40.x86_64 is already installed. Package python3-devel-3.12.0-2.fc40.x86_64 is already installed. Package python3-cliff-4.3.0-1.fc40.noarch is already installed. Package python3-debtcollector-2.5.0-6.fc40.noarch is already installed. Package python3-futurist-2.4.1-4.fc40.noarch is already installed. Package python3-iso8601-1.1.0-4.fc39.noarch is already installed. Package python3-keystoneauth1-5.3.0-1.fc40.noarch is already installed. Package python3-packaging-23.2-2.fc40.noarch is already installed. Package python3-pip-23.2.1-1.fc39.noarch is already installed. Package python3-dateutil-1:2.8.2-11.fc40.noarch is already installed. Package python3-setuptools-68.2.2-1.fc40.noarch is already installed. Package python3-setuptools_scm-8.0.4-1.fc40.noarch is already installed. Package python3-six-1.16.0-12.fc39.noarch is already installed. Package tox-4.11.1-1.fc40.noarch is already installed. Package python3-tox-current-env-0.0.11-5.fc39.noarch is already installed. Package python3-ujson-5.8.0-2.fc39.x86_64 is already installed. Package python3-wheel-1:0.41.2-1.fc40.noarch is already installed. Dependencies resolved. Nothing to do. Complete! Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1698192000 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.kW2QYA + umask 022 + cd /builddir/build/BUILD + cd gnocchiclient-7.0.8 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/gnocchiclient-7.0.8/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/gnocchiclient-7.0.8/.pyproject-builddir + RPM_TOXENV=py312 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/gnocchiclient-7.0.8/pyproject-wheeldir --output /builddir/build/BUILD/python-gnocchiclient-7.0.8-1.fc40.x86_64-pyproject-buildrequires -t -e py312 Handling setuptools from build-system.requires Requirement satisfied: setuptools (installed: setuptools 68.2.2) Handling setuptools_scm from build-system.requires Requirement satisfied: setuptools_scm (installed: setuptools_scm 8.0.4) Handling wheel from build-system.requires Requirement satisfied: wheel (installed: wheel 0.41.2) running egg_info writing gnocchiclient.egg-info/PKG-INFO writing dependency_links to gnocchiclient.egg-info/dependency_links.txt writing entry points to gnocchiclient.egg-info/entry_points.txt writing requirements to gnocchiclient.egg-info/requires.txt writing top-level names to gnocchiclient.egg-info/top_level.txt ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any reading manifest file 'gnocchiclient.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'gnocchiclient.egg-info/SOURCES.txt' Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.41.2) Handling tox-current-env >= 0.0.6 from tox itself Requirement satisfied: tox-current-env >= 0.0.6 (installed: tox-current-env 0.0.11) py312: OK (0.01 seconds) congratulations :) (0.06 seconds) Handling tox from tox --print-deps-only: py312 Requirement satisfied: tox (installed: tox 4.11.1) running dist_info writing gnocchiclient.egg-info/PKG-INFO writing dependency_links to gnocchiclient.egg-info/dependency_links.txt writing entry points to gnocchiclient.egg-info/entry_points.txt writing requirements to gnocchiclient.egg-info/requires.txt writing top-level names to gnocchiclient.egg-info/top_level.txt ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any reading manifest file 'gnocchiclient.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'gnocchiclient.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/gnocchiclient-7.0.8/gnocchiclient-7.0.8.dist-info' The [wheel] section is deprecated. Use [bdist_wheel] instead. Handling cliff >=2.10 from hook generated metadata: Requires-Dist (gnocchiclient) Requirement satisfied: cliff >=2.10 (installed: cliff 4.3.0) Handling ujson from hook generated metadata: Requires-Dist (gnocchiclient) Requirement satisfied: ujson (installed: ujson 5.8.0) Handling keystoneauth1 >=2.0.0 from hook generated metadata: Requires-Dist (gnocchiclient) Requirement satisfied: keystoneauth1 >=2.0.0 (installed: keystoneauth1 5.3.0) Handling six from hook generated metadata: Requires-Dist (gnocchiclient) Requirement satisfied: six (installed: six 1.16.0) Handling futurist from hook generated metadata: Requires-Dist (gnocchiclient) Requirement satisfied: futurist (installed: futurist 2.4.1) Handling iso8601 from hook generated metadata: Requires-Dist (gnocchiclient) Requirement satisfied: iso8601 (installed: iso8601 1.1.0) Handling python-dateutil from hook generated metadata: Requires-Dist (gnocchiclient) Requirement satisfied: python-dateutil (installed: python-dateutil 2.8.2) Handling debtcollector from hook generated metadata: Requires-Dist (gnocchiclient) Requirement satisfied: debtcollector (installed: debtcollector 2.5.0) Handling sphinx ; extra == 'doc' from hook generated metadata: Requires-Dist (gnocchiclient) Ignoring alien requirement: sphinx ; extra == 'doc' Handling sphinx-rtd-theme ; extra == 'doc' from hook generated metadata: Requires-Dist (gnocchiclient) Ignoring alien requirement: sphinx-rtd-theme ; extra == 'doc' Handling osc-lib >=0.3.0 ; extra == 'openstack' from hook generated metadata: Requires-Dist (gnocchiclient) Ignoring alien requirement: osc-lib >=0.3.0 ; extra == 'openstack' Handling python-openstackclient ; extra == 'test' from hook generated metadata: Requires-Dist (gnocchiclient) Ignoring alien requirement: python-openstackclient ; extra == 'test' Handling pytest ; extra == 'test' from hook generated metadata: Requires-Dist (gnocchiclient) Ignoring alien requirement: pytest ; extra == 'test' Handling pytest-xdist ; extra == 'test' from hook generated metadata: Requires-Dist (gnocchiclient) Ignoring alien requirement: pytest-xdist ; extra == 'test' + cat /builddir/build/BUILD/python-gnocchiclient-7.0.8-1.fc40.x86_64-pyproject-buildrequires + rm -rfv gnocchiclient-7.0.8.dist-info/ removed 'gnocchiclient-7.0.8.dist-info/LICENSE' removed 'gnocchiclient-7.0.8.dist-info/METADATA' removed 'gnocchiclient-7.0.8.dist-info/top_level.txt' removed 'gnocchiclient-7.0.8.dist-info/entry_points.txt' removed directory 'gnocchiclient-7.0.8.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.RWfQLe + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd gnocchiclient-7.0.8 + mkdir -p /builddir/build/BUILD/gnocchiclient-7.0.8/.pyproject-builddir + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + TMPDIR=/builddir/build/BUILD/gnocchiclient-7.0.8/.pyproject-builddir + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_wheel.py /builddir/build/BUILD/gnocchiclient-7.0.8/pyproject-wheeldir Processing /builddir/build/BUILD/gnocchiclient-7.0.8 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) running dist_info creating /builddir/build/BUILD/gnocchiclient-7.0.8/.pyproject-builddir/pip-modern-metadata-fnqs07tn/gnocchiclient.egg-info writing /builddir/build/BUILD/gnocchiclient-7.0.8/.pyproject-builddir/pip-modern-metadata-fnqs07tn/gnocchiclient.egg-info/PKG-INFO writing dependency_links to /builddir/build/BUILD/gnocchiclient-7.0.8/.pyproject-builddir/pip-modern-metadata-fnqs07tn/gnocchiclient.egg-info/dependency_links.txt writing entry points to /builddir/build/BUILD/gnocchiclient-7.0.8/.pyproject-builddir/pip-modern-metadata-fnqs07tn/gnocchiclient.egg-info/entry_points.txt writing requirements to /builddir/build/BUILD/gnocchiclient-7.0.8/.pyproject-builddir/pip-modern-metadata-fnqs07tn/gnocchiclient.egg-info/requires.txt writing top-level names to /builddir/build/BUILD/gnocchiclient-7.0.8/.pyproject-builddir/pip-modern-metadata-fnqs07tn/gnocchiclient.egg-info/top_level.txt writing manifest file '/builddir/build/BUILD/gnocchiclient-7.0.8/.pyproject-builddir/pip-modern-metadata-fnqs07tn/gnocchiclient.egg-info/SOURCES.txt' ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any reading manifest file '/builddir/build/BUILD/gnocchiclient-7.0.8/.pyproject-builddir/pip-modern-metadata-fnqs07tn/gnocchiclient.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file '/builddir/build/BUILD/gnocchiclient-7.0.8/.pyproject-builddir/pip-modern-metadata-fnqs07tn/gnocchiclient.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/gnocchiclient-7.0.8/.pyproject-builddir/pip-modern-metadata-fnqs07tn/gnocchiclient-7.0.8.dist-info' The [wheel] section is deprecated. Use [bdist_wheel] instead. Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: gnocchiclient Building wheel for gnocchiclient (pyproject.toml): started Running command Building wheel for gnocchiclient (pyproject.toml) running bdist_wheel The [wheel] section is deprecated. Use [bdist_wheel] instead. running build running build_py creating build creating build/lib creating build/lib/gnocchiclient copying gnocchiclient/version.py -> build/lib/gnocchiclient copying gnocchiclient/utils.py -> build/lib/gnocchiclient copying gnocchiclient/shell.py -> build/lib/gnocchiclient copying gnocchiclient/osc.py -> build/lib/gnocchiclient copying gnocchiclient/gendoc.py -> build/lib/gnocchiclient copying gnocchiclient/exceptions.py -> build/lib/gnocchiclient copying gnocchiclient/client.py -> build/lib/gnocchiclient copying gnocchiclient/benchmark.py -> build/lib/gnocchiclient copying gnocchiclient/auth.py -> build/lib/gnocchiclient copying gnocchiclient/__init__.py -> build/lib/gnocchiclient creating build/lib/gnocchiclient/v1 copying gnocchiclient/v1/status_cli.py -> build/lib/gnocchiclient/v1 copying gnocchiclient/v1/status.py -> build/lib/gnocchiclient/v1 copying gnocchiclient/v1/resource_type_cli.py -> build/lib/gnocchiclient/v1 copying gnocchiclient/v1/resource_type.py -> build/lib/gnocchiclient/v1 copying gnocchiclient/v1/resource_cli.py -> build/lib/gnocchiclient/v1 copying gnocchiclient/v1/resource.py -> build/lib/gnocchiclient/v1 copying gnocchiclient/v1/metric_cli.py -> build/lib/gnocchiclient/v1 copying gnocchiclient/v1/metric.py -> build/lib/gnocchiclient/v1 copying gnocchiclient/v1/client.py -> build/lib/gnocchiclient/v1 copying gnocchiclient/v1/capabilities_cli.py -> build/lib/gnocchiclient/v1 copying gnocchiclient/v1/capabilities.py -> build/lib/gnocchiclient/v1 copying gnocchiclient/v1/build_cli.py -> build/lib/gnocchiclient/v1 copying gnocchiclient/v1/build.py -> build/lib/gnocchiclient/v1 copying gnocchiclient/v1/base.py -> build/lib/gnocchiclient/v1 copying gnocchiclient/v1/archive_policy_rule_cli.py -> build/lib/gnocchiclient/v1 copying gnocchiclient/v1/archive_policy_rule.py -> build/lib/gnocchiclient/v1 copying gnocchiclient/v1/archive_policy_cli.py -> build/lib/gnocchiclient/v1 copying gnocchiclient/v1/archive_policy.py -> build/lib/gnocchiclient/v1 copying gnocchiclient/v1/aggregates_cli.py -> build/lib/gnocchiclient/v1 copying gnocchiclient/v1/aggregates.py -> build/lib/gnocchiclient/v1 copying gnocchiclient/v1/__init__.py -> build/lib/gnocchiclient/v1 creating build/lib/gnocchiclient/tests copying gnocchiclient/tests/__init__.py -> build/lib/gnocchiclient/tests creating build/lib/gnocchiclient/tests/unit copying gnocchiclient/tests/unit/test_exceptions.py -> build/lib/gnocchiclient/tests/unit copying gnocchiclient/tests/unit/test_auth.py -> build/lib/gnocchiclient/tests/unit copying gnocchiclient/tests/unit/__init__.py -> build/lib/gnocchiclient/tests/unit creating build/lib/gnocchiclient/tests/functional copying gnocchiclient/tests/functional/test_resource_type.py -> build/lib/gnocchiclient/tests/functional copying gnocchiclient/tests/functional/test_resource.py -> build/lib/gnocchiclient/tests/functional copying gnocchiclient/tests/functional/test_others.py -> build/lib/gnocchiclient/tests/functional copying gnocchiclient/tests/functional/test_osc.py -> build/lib/gnocchiclient/tests/functional copying gnocchiclient/tests/functional/test_metric.py -> build/lib/gnocchiclient/tests/functional copying gnocchiclient/tests/functional/test_capabilities.py -> build/lib/gnocchiclient/tests/functional copying gnocchiclient/tests/functional/test_benchmark.py -> build/lib/gnocchiclient/tests/functional copying gnocchiclient/tests/functional/test_archive_policy_rule.py -> build/lib/gnocchiclient/tests/functional copying gnocchiclient/tests/functional/test_archive_policy.py -> build/lib/gnocchiclient/tests/functional copying gnocchiclient/tests/functional/test_aggregates.py -> build/lib/gnocchiclient/tests/functional copying gnocchiclient/tests/functional/base.py -> build/lib/gnocchiclient/tests/functional copying gnocchiclient/tests/functional/__init__.py -> build/lib/gnocchiclient/tests/functional installing to build/bdist.linux-x86_64/wheel running install running install_lib creating build/bdist.linux-x86_64 creating build/bdist.linux-x86_64/wheel creating build/bdist.linux-x86_64/wheel/gnocchiclient creating build/bdist.linux-x86_64/wheel/gnocchiclient/tests creating build/bdist.linux-x86_64/wheel/gnocchiclient/tests/functional copying build/lib/gnocchiclient/tests/functional/__init__.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/tests/functional copying build/lib/gnocchiclient/tests/functional/base.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/tests/functional copying build/lib/gnocchiclient/tests/functional/test_aggregates.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/tests/functional copying build/lib/gnocchiclient/tests/functional/test_archive_policy.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/tests/functional copying build/lib/gnocchiclient/tests/functional/test_archive_policy_rule.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/tests/functional copying build/lib/gnocchiclient/tests/functional/test_benchmark.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/tests/functional copying build/lib/gnocchiclient/tests/functional/test_capabilities.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/tests/functional copying build/lib/gnocchiclient/tests/functional/test_metric.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/tests/functional copying build/lib/gnocchiclient/tests/functional/test_osc.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/tests/functional copying build/lib/gnocchiclient/tests/functional/test_others.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/tests/functional copying build/lib/gnocchiclient/tests/functional/test_resource.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/tests/functional copying build/lib/gnocchiclient/tests/functional/test_resource_type.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/tests/functional creating build/bdist.linux-x86_64/wheel/gnocchiclient/tests/unit copying build/lib/gnocchiclient/tests/unit/__init__.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/tests/unit copying build/lib/gnocchiclient/tests/unit/test_auth.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/tests/unit copying build/lib/gnocchiclient/tests/unit/test_exceptions.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/tests/unit copying build/lib/gnocchiclient/tests/__init__.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/tests creating build/bdist.linux-x86_64/wheel/gnocchiclient/v1 copying build/lib/gnocchiclient/v1/__init__.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/v1 copying build/lib/gnocchiclient/v1/aggregates.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/v1 copying build/lib/gnocchiclient/v1/aggregates_cli.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/v1 copying build/lib/gnocchiclient/v1/archive_policy.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/v1 copying build/lib/gnocchiclient/v1/archive_policy_cli.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/v1 copying build/lib/gnocchiclient/v1/archive_policy_rule.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/v1 copying build/lib/gnocchiclient/v1/archive_policy_rule_cli.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/v1 copying build/lib/gnocchiclient/v1/base.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/v1 copying build/lib/gnocchiclient/v1/build.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/v1 copying build/lib/gnocchiclient/v1/build_cli.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/v1 copying build/lib/gnocchiclient/v1/capabilities.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/v1 copying build/lib/gnocchiclient/v1/capabilities_cli.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/v1 copying build/lib/gnocchiclient/v1/client.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/v1 copying build/lib/gnocchiclient/v1/metric.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/v1 copying build/lib/gnocchiclient/v1/metric_cli.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/v1 copying build/lib/gnocchiclient/v1/resource.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/v1 copying build/lib/gnocchiclient/v1/resource_cli.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/v1 copying build/lib/gnocchiclient/v1/resource_type.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/v1 copying build/lib/gnocchiclient/v1/resource_type_cli.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/v1 copying build/lib/gnocchiclient/v1/status.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/v1 copying build/lib/gnocchiclient/v1/status_cli.py -> build/bdist.linux-x86_64/wheel/gnocchiclient/v1 copying build/lib/gnocchiclient/__init__.py -> build/bdist.linux-x86_64/wheel/gnocchiclient copying build/lib/gnocchiclient/auth.py -> build/bdist.linux-x86_64/wheel/gnocchiclient copying build/lib/gnocchiclient/benchmark.py -> build/bdist.linux-x86_64/wheel/gnocchiclient copying build/lib/gnocchiclient/client.py -> build/bdist.linux-x86_64/wheel/gnocchiclient copying build/lib/gnocchiclient/exceptions.py -> build/bdist.linux-x86_64/wheel/gnocchiclient copying build/lib/gnocchiclient/gendoc.py -> build/bdist.linux-x86_64/wheel/gnocchiclient copying build/lib/gnocchiclient/osc.py -> build/bdist.linux-x86_64/wheel/gnocchiclient copying build/lib/gnocchiclient/shell.py -> build/bdist.linux-x86_64/wheel/gnocchiclient copying build/lib/gnocchiclient/utils.py -> build/bdist.linux-x86_64/wheel/gnocchiclient copying build/lib/gnocchiclient/version.py -> build/bdist.linux-x86_64/wheel/gnocchiclient running install_egg_info running egg_info writing gnocchiclient.egg-info/PKG-INFO writing dependency_links to gnocchiclient.egg-info/dependency_links.txt writing entry points to gnocchiclient.egg-info/entry_points.txt writing requirements to gnocchiclient.egg-info/requires.txt writing top-level names to gnocchiclient.egg-info/top_level.txt ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any reading manifest file 'gnocchiclient.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'gnocchiclient.egg-info/SOURCES.txt' Copying gnocchiclient.egg-info to build/bdist.linux-x86_64/wheel/gnocchiclient-7.0.8-py3.12.egg-info running install_scripts creating build/bdist.linux-x86_64/wheel/gnocchiclient-7.0.8.dist-info/WHEEL creating '/builddir/build/BUILD/gnocchiclient-7.0.8/.pyproject-builddir/pip-wheel-kat8t9cm/.tmp-yf40ta5p/gnocchiclient-7.0.8-py2.py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it adding 'gnocchiclient/__init__.py' adding 'gnocchiclient/auth.py' adding 'gnocchiclient/benchmark.py' adding 'gnocchiclient/client.py' adding 'gnocchiclient/exceptions.py' adding 'gnocchiclient/gendoc.py' adding 'gnocchiclient/osc.py' adding 'gnocchiclient/shell.py' adding 'gnocchiclient/utils.py' adding 'gnocchiclient/version.py' adding 'gnocchiclient/tests/__init__.py' adding 'gnocchiclient/tests/functional/__init__.py' adding 'gnocchiclient/tests/functional/base.py' adding 'gnocchiclient/tests/functional/test_aggregates.py' adding 'gnocchiclient/tests/functional/test_archive_policy.py' adding 'gnocchiclient/tests/functional/test_archive_policy_rule.py' adding 'gnocchiclient/tests/functional/test_benchmark.py' adding 'gnocchiclient/tests/functional/test_capabilities.py' adding 'gnocchiclient/tests/functional/test_metric.py' adding 'gnocchiclient/tests/functional/test_osc.py' adding 'gnocchiclient/tests/functional/test_others.py' adding 'gnocchiclient/tests/functional/test_resource.py' adding 'gnocchiclient/tests/functional/test_resource_type.py' adding 'gnocchiclient/tests/unit/__init__.py' adding 'gnocchiclient/tests/unit/test_auth.py' adding 'gnocchiclient/tests/unit/test_exceptions.py' adding 'gnocchiclient/v1/__init__.py' adding 'gnocchiclient/v1/aggregates.py' adding 'gnocchiclient/v1/aggregates_cli.py' adding 'gnocchiclient/v1/archive_policy.py' adding 'gnocchiclient/v1/archive_policy_cli.py' adding 'gnocchiclient/v1/archive_policy_rule.py' adding 'gnocchiclient/v1/archive_policy_rule_cli.py' adding 'gnocchiclient/v1/base.py' adding 'gnocchiclient/v1/build.py' adding 'gnocchiclient/v1/build_cli.py' adding 'gnocchiclient/v1/capabilities.py' adding 'gnocchiclient/v1/capabilities_cli.py' adding 'gnocchiclient/v1/client.py' adding 'gnocchiclient/v1/metric.py' adding 'gnocchiclient/v1/metric_cli.py' adding 'gnocchiclient/v1/resource.py' adding 'gnocchiclient/v1/resource_cli.py' adding 'gnocchiclient/v1/resource_type.py' adding 'gnocchiclient/v1/resource_type_cli.py' adding 'gnocchiclient/v1/status.py' adding 'gnocchiclient/v1/status_cli.py' adding 'gnocchiclient-7.0.8.dist-info/LICENSE' adding 'gnocchiclient-7.0.8.dist-info/METADATA' adding 'gnocchiclient-7.0.8.dist-info/WHEEL' adding 'gnocchiclient-7.0.8.dist-info/entry_points.txt' adding 'gnocchiclient-7.0.8.dist-info/top_level.txt' adding 'gnocchiclient-7.0.8.dist-info/RECORD' removing build/bdist.linux-x86_64/wheel Building wheel for gnocchiclient (pyproject.toml): finished with status 'done' Created wheel for gnocchiclient: filename=gnocchiclient-7.0.8-py2.py3-none-any.whl size=66382 sha256=51e597b2eaa6ae4c78fe426953e40a11b18d3110a4a3766bbaee3c94ea6a8e75 Stored in directory: /builddir/.cache/pip/wheels/ff/b5/7f/063ab4b345b2a8cb7b46c04a6ab8feb0b1ed9153b39217eba5 Successfully built gnocchiclient + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.HYwp9q + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64 ++ dirname /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd gnocchiclient-7.0.8 ++ ls /builddir/build/BUILD/gnocchiclient-7.0.8/pyproject-wheeldir/gnocchiclient-7.0.8-py2.py3-none-any.whl ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' ++ xargs basename --multiple + specifier=gnocchiclient==7.0.8 + TMPDIR=/builddir/build/BUILD/gnocchiclient-7.0.8/.pyproject-builddir + /usr/bin/python3 -m pip install --root /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64 --prefix /usr --no-deps --disable-pip-version-check --progress-bar off --verbose --ignore-installed --no-warn-script-location --no-index --no-cache-dir --find-links /builddir/build/BUILD/gnocchiclient-7.0.8/pyproject-wheeldir gnocchiclient==7.0.8 Using pip 23.2.1 from /usr/lib/python3.12/site-packages/pip (python 3.12) Looking in links: /builddir/build/BUILD/gnocchiclient-7.0.8/pyproject-wheeldir Processing ./pyproject-wheeldir/gnocchiclient-7.0.8-py2.py3-none-any.whl Installing collected packages: gnocchiclient Creating /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64/usr/bin changing mode of /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64/usr/bin/gnocchi to 755 Successfully installed gnocchiclient-7.0.8 + '[' -d /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64/usr/bin ']' + '[' -z sP ']' + shebang_flags=-kasP + /usr/bin/python3 -B /usr/lib/rpm/redhat/pathfix.py -pni /usr/bin/python3 -kasP /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64/usr/bin/gnocchi /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64/usr/bin/gnocchi: updating + rm -rfv /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64/usr/bin/__pycache__ + rm -f /builddir/build/BUILD/python-gnocchiclient-7.0.8-1.fc40.x86_64-pyproject-ghost-distinfo + site_dirs=() + '[' -d /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64/usr/lib/python3.12/site-packages ']' + site_dirs+=("/usr/lib/python3.12/site-packages") + '[' /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64/usr/lib64/python3.12/site-packages '!=' /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64/usr/lib/python3.12/site-packages ']' + '[' -d /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64/usr/lib64/python3.12/site-packages ']' + for site_dir in ${site_dirs[@]} + for distinfo in /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64$site_dir/*.dist-info + echo '%ghost /usr/lib/python3.12/site-packages/gnocchiclient-7.0.8.dist-info' + sed -i s/pip/rpm/ /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64/usr/lib/python3.12/site-packages/gnocchiclient-7.0.8.dist-info/INSTALLER + PYTHONPATH=/usr/lib/rpm/redhat + /usr/bin/python3 -B /usr/lib/rpm/redhat/pyproject_preprocess_record.py --buildroot /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64 --record /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64/usr/lib/python3.12/site-packages/gnocchiclient-7.0.8.dist-info/RECORD --output /builddir/build/BUILD/python-gnocchiclient-7.0.8-1.fc40.x86_64-pyproject-record + rm -fv /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64/usr/lib/python3.12/site-packages/gnocchiclient-7.0.8.dist-info/RECORD removed '/builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64/usr/lib/python3.12/site-packages/gnocchiclient-7.0.8.dist-info/RECORD' + rm -fv /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64/usr/lib/python3.12/site-packages/gnocchiclient-7.0.8.dist-info/REQUESTED removed '/builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64/usr/lib/python3.12/site-packages/gnocchiclient-7.0.8.dist-info/REQUESTED' ++ wc -l /builddir/build/BUILD/python-gnocchiclient-7.0.8-1.fc40.x86_64-pyproject-ghost-distinfo ++ cut -f1 '-d ' + lines=1 + '[' 1 -ne 1 ']' + ln -s gnocchi /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64/usr/bin/gnocchi-3 + /usr/bin/find-debuginfo -j2 --strict-build-id -m -i --build-id-seed 7.0.8-1.fc40 --unique-debug-suffix -7.0.8-1.fc40.x86_64 --unique-debug-src-base python-gnocchiclient-7.0.8-1.fc40.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/gnocchiclient-7.0.8 find-debuginfo: starting Extracting debug info from 0 files Creating .debug symlinks for symlinks to ELF files find: ‘debug’: No such file or directory find-debuginfo: done + /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 + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j2 Bytecompiling .py files below /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64/usr/lib/python3.12 using python3.12 + /usr/lib/rpm/redhat/brp-python-hardlink Processing files: python3-gnocchiclient-7.0.8-1.fc40.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.GNR2kx + umask 022 + cd /builddir/build/BUILD + cd gnocchiclient-7.0.8 + DOCDIR=/builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64/usr/share/doc/python3-gnocchiclient + export LC_ALL= + LC_ALL= + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64/usr/share/doc/python3-gnocchiclient + cp -pr /builddir/build/BUILD/gnocchiclient-7.0.8/README.rst /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64/usr/share/doc/python3-gnocchiclient + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.zRGsCV + umask 022 + cd /builddir/build/BUILD + cd gnocchiclient-7.0.8 + LICENSEDIR=/builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64/usr/share/licenses/python3-gnocchiclient + export LC_ALL= + LC_ALL= + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64/usr/share/licenses/python3-gnocchiclient + cp -pr /builddir/build/BUILD/gnocchiclient-7.0.8/LICENSE /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64/usr/share/licenses/python3-gnocchiclient + RPM_EC=0 ++ jobs -p + exit 0 Provides: python-gnocchiclient = 7.0.8-1.fc40 python3-gnocchiclient = 7.0.8-1.fc40 python3.12-gnocchiclient = 7.0.8-1.fc40 python3.12dist(gnocchiclient) = 7.0.8 python3dist(gnocchiclient) = 7.0.8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/python3 python(abi) = 3.12 python3.12dist(cliff) >= 2.10 python3.12dist(debtcollector) python3.12dist(futurist) python3.12dist(iso8601) python3.12dist(keystoneauth1) >= 2 python3.12dist(python-dateutil) python3.12dist(six) python3.12dist(ujson) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64 Wrote: /builddir/build/SRPMS/python-gnocchiclient-7.0.8-1.fc40.src.rpm Wrote: /builddir/build/RPMS/python3-gnocchiclient-7.0.8-1.fc40.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.7HCQl7 + umask 022 + cd /builddir/build/BUILD + cd gnocchiclient-7.0.8 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-gnocchiclient-7.0.8-1.fc40.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.bDgFSO + umask 022 + cd /builddir/build/BUILD + rm -rf /builddir/build/BUILD/gnocchiclient-7.0.8-SPECPARTS + rm -rf gnocchiclient-7.0.8 gnocchiclient-7.0.8.gemspec + RPM_EC=0 ++ jobs -p + exit 0 Finish: rpmbuild python-gnocchiclient-7.0.8-1.fc40.src.rpm Finish: build phase for python-gnocchiclient-7.0.8-1.fc40.src.rpm INFO: chroot_scan: 3 files copied to /var/lib/copr-rpmbuild/results/chroot_scan INFO: /var/lib/mock/fedora-rawhide-x86_64-1700754572.688373/root/var/log/dnf.rpm.log /var/lib/mock/fedora-rawhide-x86_64-1700754572.688373/root/var/log/dnf.librepo.log /var/lib/mock/fedora-rawhide-x86_64-1700754572.688373/root/var/log/dnf.log INFO: Done(/var/lib/copr-rpmbuild/results/python-gnocchiclient-7.0.8-1.fc40.src.rpm) Config(child) 0 minutes 31 seconds INFO: Results and/or logs in: /var/lib/copr-rpmbuild/results INFO: Cleaning up build root ('cleanup_on_success=True') Start: clean chroot INFO: unmounting tmpfs. Finish: clean chroot Finish: run Running RPMResults tool Package info: { "packages": [ { "name": "python3-gnocchiclient", "epoch": null, "version": "7.0.8", "release": "1.fc40", "arch": "noarch" }, { "name": "python-gnocchiclient", "epoch": null, "version": "7.0.8", "release": "1.fc40", "arch": "src" } ] } RPMResults finished