Mercurial > hg
view contrib/packaging/docker/rhel9 @ 51686:39033e7a6e0a
convert: stringify `shlex` class argument
The documentation is handwavy, but typeshed says this should be `str`[1]. I'm
not sure if this is the correct encoding (vs `fsencode` or "latin1" like the
tokens returned by the proxy class).
While we're here, we can add a few more type hints that would have caused pytype
to flag the problem.
[1] https://github.com/python/typeshed/blob/6a9b53e719a139c2d6b41cf265ed0990cf438192/stdlib/shlex.pyi#L51
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 11 Jul 2024 21:16:45 -0400 |
parents | 2edb41ed6c49 |
children |
line wrap: on
line source
FROM rockylinux/rockylinux:9 RUN groupadd -g %GID% build && \ useradd -u %UID% -g %GID% -s /bin/bash -d /build -m build RUN dnf install 'dnf-command(config-manager)' -y # crb repository is necessary for docutils RUN dnf config-manager --set-enabled crb RUN yum install -y \ gcc \ gettext \ make \ python3-devel \ python3-docutils \ rpm-build # For creating repo meta data RUN yum install -y createrepo # For rust extensions RUN yum install -y cargo # avoid incorrect docker image permissions on /tmp preventing writes by non-root users RUN chmod 1777 /tmp