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

[SLCE-241] - Fix description new line error from latest setuptools #5

Merged
merged 1 commit into from
Nov 23, 2021

Conversation

jboykin-bread
Copy link
Collaborator

@jboykin-bread jboykin-bread commented Nov 23, 2021

SLCE-241

  • Fix description new line error from latest setuptools.
  • new image tag will be 0.109.post18.post2 for updating slice

reference: pypa/setuptools#2893

error:

# when building slice-tools Docker image in the getbread/slice project:
$ make build 
[+] Building 11.6s (24/31)
 => [internal] load build definition from Dockerfile                                                                                                0.0s
 => => transferring dockerfile: 2.97kB                                                                                                              0.0s
 => [internal] load .dockerignore                                                                                                                   0.0s
 => => transferring context: 2B                                                                                                                     0.0s
 => [internal] load metadata for docker.io/library/alpine:3.12                                                                                      0.8s
 => [internal] load metadata for docker.io/library/golang:1.16.4-alpine3.12                                                                         0.8s
 => [auth] library/alpine:pull token for registry-1.docker.io                                                                                       0.0s
 => [auth] library/golang:pull token for registry-1.docker.io                                                                                       0.0s
 => https://apk.cloudposse.com/[email protected]                                                                                           0.9s
 => [internal] load build context                                                                                                                   0.5s
 => => transferring context: 22.39MB                                                                                                                0.4s
 => [stage-1  1/16] FROM docker.io/library/alpine:3.12@sha256:d9459083f962de6bd980ae6a05be2a4cf670df6a1d898157bceb420342bec280                      0.0s
 => [builder 1/7] FROM docker.io/library/golang:1.16.4-alpine3.12@sha256:aa24a0a337084e0747e7c8e97e1131270ae38150e691314f1fa19f4b2f9093c0           0.0s
 => CACHED [builder 2/7] RUN apk -v --update add     curl     bash                                                                                  0.0s
 => CACHED [builder 3/7] RUN curl -sSL https://install.astronomer.io | bash -s -- v0.17.0                                                           0.0s
 => CACHED [builder 4/7] WORKDIR /src                                                                                                               0.0s
 => [builder 5/7] ADD . slice                                                                                                                       0.3s
 => [builder 6/7] WORKDIR /src/slice                                                                                                                0.0s
 => [builder 7/7] RUN go build -o main -ldflags="-X 'github.com/getbread/slice/internal/version.Version=dev-local (f5f6969919-changed)' -X 'github  7.2s
 => CACHED [stage-1  2/16] WORKDIR /tmp                                                                                                             0.0s
 => CACHED [stage-1  3/16] ADD https://apk.cloudposse.com/[email protected] /etc/apk/keys/                                                 0.0s
 => CACHED [stage-1  4/16] RUN echo "@cloudposse https://apk.cloudposse.com/3.12/vendor" >> /etc/apk/repositories                                   0.0s
 => CACHED [stage-1  5/16] RUN sed -i 's|http://dl-cdn.alpinelinux.org|https://alpine.global.ssl.fastly.net|g' /etc/apk/repositories &&     echo "  0.0s
 => CACHED [stage-1  6/16] RUN apk -v --update add     curl     python3     py3-pip     openssh     iptables     tini     conntrack-tools     git   0.0s
 => CACHED [stage-1  7/16] RUN python3 --version && pip3 --version                                                                                  0.0s
 => CACHED [stage-1  8/16] RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernet  0.0s
 => ERROR [stage-1  9/16] RUN ssh-keygen -A     && echo -e "ClientAliveInterval 1\nGatewayPorts yes\nPermitEmptyPasswords yes\nPort 38022\nClientA  9.8s
------
 > [stage-1  9/16] RUN ssh-keygen -A     && echo -e "ClientAliveInterval 1\nGatewayPorts yes\nPermitEmptyPasswords yes\nPort 38022\nClientAliveCountMax 10\nPermitRootLogin yes\n" >> /etc/ssh/sshd_config     && pip3 install git+https://github.com/datawire/sshuttle.git@telepresence     && git clone https://github.com/getbread/telepresence.git     && (cd telepresence && git checkout tags/0.109.post18 -b setup)     && pip3 install telepresence/     && passwd -d root:
#16 0.343 ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
#16 1.766 Collecting git+https://github.com/datawire/sshuttle.git@telepresence
#16 1.767   Cloning https://github.com/datawire/sshuttle.git (to revision telepresence) to ./pip-req-build-8ekkyra0
#16 1.768   Running command git clone -q https://github.com/datawire/sshuttle.git /tmp/pip-req-build-8ekkyra0
#16 2.543   Running command git checkout -b telepresence --track origin/telepresence
#16 2.549   Branch 'telepresence' set up to track remote branch 'telepresence' from 'origin'.
#16 2.550   Switched to a new branch 'telepresence'
#16 4.999 Using legacy setup.py install for sshuttle-telepresence, since package 'wheel' is not installed.
#16 5.044 Installing collected packages: sshuttle-telepresence
#16 5.046     Running setup.py install for sshuttle-telepresence: started
#16 5.588     Running setup.py install for sshuttle-telepresence: finished with status 'done'
#16 5.617 Successfully installed sshuttle-telepresence-0.78.2.dev45+gd250ccb
#16 5.912 Cloning into 'telepresence'...
#16 6.812 Switched to a new branch 'setup'
#16 7.261 Processing ./telepresence
#16 7.317   Installing build dependencies: started
#16 9.441   Installing build dependencies: finished with status 'done'
#16 9.442   Getting requirements to build wheel: started
#16 9.713   Getting requirements to build wheel: finished with status 'error'
#16 9.714   ERROR: Command errored out with exit status 1:
#16 9.714    command: /usr/bin/python3 /usr/lib/python3.8/site-packages/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpm6sk2ghw
#16 9.714        cwd: /tmp/pip-req-build-l9a4bi0h
#16 9.714   Complete output (39 lines):
#16 9.714   running egg_info
#16 9.714   creating telepresence.egg-info
#16 9.714   writing telepresence.egg-info/PKG-INFO
#16 9.714   Traceback (most recent call last):
#16 9.714     File "/usr/lib/python3.8/site-packages/pep517/_in_process.py", line 280, in <module>
#16 9.714       main()
#16 9.714     File "/usr/lib/python3.8/site-packages/pep517/_in_process.py", line 263, in main
#16 9.714       json_out['return_val'] = hook(**hook_input['kwargs'])
#16 9.714     File "/usr/lib/python3.8/site-packages/pep517/_in_process.py", line 114, in get_requires_for_build_wheel
#16 9.714       return hook(config_settings)
#16 9.714     File "/tmp/pip-build-env-_8v0go7t/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 162, in get_requires_for_build_wheel
#16 9.714       return self._get_build_requires(
#16 9.714     File "/tmp/pip-build-env-_8v0go7t/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 143, in _get_build_requires
#16 9.714       self.run_setup()
#16 9.714     File "/tmp/pip-build-env-_8v0go7t/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 267, in run_setup
#16 9.714       super(_BuildMetaLegacyBackend,
#16 9.714     File "/tmp/pip-build-env-_8v0go7t/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 158, in run_setup
#16 9.714       exec(compile(code, __file__, 'exec'), locals())
#16 9.714     File "setup.py", line 9, in <module>
#16 9.714       setup(
#16 9.714     File "/tmp/pip-build-env-_8v0go7t/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
#16 9.714       return distutils.core.setup(**attrs)
#16 9.714     File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
#16 9.714       dist.run_commands()
#16 9.714     File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
#16 9.714       self.run_command(cmd)
#16 9.714     File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
#16 9.714       cmd_obj.run()
#16 9.714     File "/tmp/pip-build-env-_8v0go7t/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 292, in run
#16 9.714       writer(self, ep.name, os.path.join(self.egg_info, ep.name))
#16 9.714     File "/tmp/pip-build-env-_8v0go7t/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 656, in write_pkg_info
#16 9.714       metadata.write_pkg_info(cmd.egg_info)
#16 9.714     File "/usr/lib/python3.8/distutils/dist.py", line 1117, in write_pkg_info
#16 9.714       self.write_pkg_file(pkg_info)
#16 9.714     File "/tmp/pip-build-env-_8v0go7t/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 167, in write_pkg_file
#16 9.714       write_field('Summary', single_line(self.get_description()))
#16 9.714     File "/tmp/pip-build-env-_8v0go7t/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 151, in single_line
#16 9.714       raise ValueError('Newlines are not allowed')
#16 9.714   ValueError: Newlines are not allowed
#16 9.714   ----------------------------------------
#16 9.714 ERROR: Command errored out with exit status 1: /usr/bin/python3 /usr/lib/python3.8/site-packages/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpm6sk2ghw Check the logs for full command output.
------
executor failed running [/bin/sh -c ssh-keygen -A     && echo -e "ClientAliveInterval 1\nGatewayPorts yes\nPermitEmptyPasswords yes\nPort 38022\nClientAliveCountMax 10\nPermitRootLogin yes\n" >> /etc/ssh/sshd_config     && pip3 install git+https://github.com/datawire/sshuttle.git@telepresence     && git clone https://github.com/getbread/telepresence.git     && (cd telepresence && git checkout tags/0.109.post18 -b setup)     && pip3 install telepresence/     && passwd -d root]: exit code: 1
make: *** [build] Error 1

@jboykin-bread jboykin-bread merged commit d800e89 into master Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant