Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pyyaml for docs #517

Merged
merged 5 commits into from
Oct 27, 2023
Merged

Update pyyaml for docs #517

merged 5 commits into from
Oct 27, 2023

Conversation

Qalthos
Copy link
Collaborator

@Qalthos Qalthos commented Jul 19, 2023

SUMMARY

Hopefully this will work around the docs build issue.

ISSUE TYPE
  • Docs Pull Request

@Qalthos Qalthos added dependencies Pull requests that update a dependency file bot:chronographer:skip This PR does not need to include a change note labels Jul 19, 2023
docs/requirements.txt Outdated Show resolved Hide resolved
docs/requirements.txt Outdated Show resolved Hide resolved
.github/dependabot.yml Outdated Show resolved Hide resolved
.github/dependabot.yml Outdated Show resolved Hide resolved
@webknjaz
Copy link
Member

Packit is failing with an unrelated problem:

2023-07-26 13:54:34.791 utils.py          ERROR  Preparation of the repository for creation of an SRPM failed: line 239: Too many names: %files -n python3-ansible-pylibssh -f\\ %{pyproject_files}
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/specfile/spec_parser.py", line 206, in get_rpm_spec
    return rpm.spec(tmp.name, flags)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: can't parse specfile


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/packit/api.py", line 1314, in prepare_sources
    self.up.prepare_upstream_for_srpm_creation(
  File "/usr/lib/python3.11/site-packages/packit/upstream.py", line 545, in prepare_upstream_for_srpm_creation
    SRPMBuilder(upstream=self, ref=upstream_ref).prepare(
  File "/usr/lib/python3.11/site-packages/packit/upstream.py", line 1071, in prepare
    self._fix_specfile_to_use_local_archive(
  File "/usr/lib/python3.11/site-packages/packit/upstream.py", line 1046, in _fix_specfile_to_use_local_archive
    new_release = self.upstream.get_spec_release(release_suffix)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/packit/upstream.py", line 398, in get_spec_release
    original_release_number = self.specfile.expanded_release.split(".", 1)[0]
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/specfile/specfile.py", line 634, in expanded_release
    return self.expand(self.release, extra_macros=[("dist", "")])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/specfile/specfile.py", line 187, in expand
    self._parser.parse(str(self), extra_macros)
  File "/usr/lib/python3.11/site-packages/specfile/spec_parser.py", line 360, in parse
    self.spec, self.tainted = self._do_parse(content, extra_macros)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/specfile/spec_parser.py", line 274, in _do_parse
    spec = get_rpm_spec(content, rpm.RPMSPEC_ANYARCH | rpm.RPMSPEC_FORCE)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/specfile/spec_parser.py", line 208, in get_rpm_spec
    raise RPMException(stderr=stderr) from e
specfile.exceptions.RPMException: line 239: Too many names: %files -n python3-ansible-pylibssh -f\\ %{pyproject_files}

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/packit/cli/utils.py", line 50, in covered_func
    func(config=config, *args, **kwargs)
  File "/usr/lib/python3.11/site-packages/packit/cli/utils.py", line 149, in covered_func
    func(*args, **decorated_func_kwargs)
  File "/usr/lib/python3.11/site-packages/packit/cli/prepare_sources.py", line 185, in prepare_sources
    api.prepare_sources(
  File "/usr/lib/python3.11/site-packages/packit/api.py", line 1321, in prepare_sources
    raise PackitSRPMException(
packit.exceptions.PackitSRPMException: Preparation of the repository for creation of an SRPM failed: line 239: Too many names: %files -n python3-ansible-pylibssh -f\\ %{pyproject_files}
2023-07-26 13:54:34.793 local_project.py  DEBUG  Cleaning: /tmp/tmpq6lmj3z7
2023-07-26 13:54:34.817 local_project.py  DEBUG  Cleaning: /tmp/tmpq6lmj3z7
Finish: chroot ['su - mockbuild -c \'set -xe ; cd /workdir ; COPR_OWNER=packit COPR_PROJECT=ansible-pylibssh-517 COPR_PACKAGE=\'"\'"\'\'"\'"\' COPR_RESULTDIR=/workdir /script\'']
Traceback (most recent call last):
  File "/usr/bin/copr-sources-custom", line 115, in <module>
    run_cmd(mock + ['--chroot', 'su - {0} -c {1}'.format(user, cmd)])
  File "/usr/bin/copr-sources-custom", line 64, in run_cmd
    return subprocess.check_call(command, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['mock', '-r', '/var/lib/copr-rpmbuild/results/mock-config.cfg', '--chroot', 'su - mockbuild -c \'set -xe ; cd /workdir ; COPR_OWNER=packit COPR_PROJECT=ansible-pylibssh-517 COPR_PACKAGE=\'"\'"\'\'"\'"\' COPR_RESULTDIR=/workdir /script\'']' returned non-zero exit status 2.
Copr build error: Build failed

@webknjaz webknjaz enabled auto-merge July 26, 2023 21:12
@packit-as-a-service
Copy link

Congratulations! One of the builds has completed. 🍾

You can install the built RPMs by following these steps:

  • sudo yum install -y dnf-plugins-core on RHEL 8
  • sudo dnf install -y dnf-plugins-core on Fedora
  • dnf copr enable packit/ansible-pylibssh-517
  • And now you can install the packages.

Please note that the RPMs should be used only in a testing environment.

@webknjaz webknjaz merged commit 48699f5 into ansible:devel Oct 27, 2023
127 checks passed
@Qalthos Qalthos deleted the pyyaml branch October 27, 2023 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot:chronographer:skip This PR does not need to include a change note dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants