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

Convert the CircleCI workflow to a GitHub Actions workflow #1608

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jk0
Copy link

@jk0 jk0 commented May 9, 2024

Summary

This pull request converts the CircleCI workflows to GitHub actions workflows. Github Actions Importer was used to convert the workflows initially, then I edited them manually to correct errors in translation.

The ${{ secrets.PYPI_PASSWORD }}, ${{ github.CIRCLE_REPOSITORY_URL }}, ${{ secrets.CIRCLE_CI_SSH_KEY }} and ${{ secrets.CIRCLE_CI_KNOWN_HOSTS }} settings will need to be set for the tasks to succeed.

Issues

setuptools.extern.packaging.version.InvalidVersion: Invalid version: 'main'
Full Error
Collecting IOHexperimenter>=0.2.8.7 (from nevergrad==1.0.2)
  Downloading IOHexperimenter-0.2.9.2.tar.gz (245 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [27 lines of output]
Traceback (most recent call last):
File "/home/runner/work/nevergrad/nevergrad/venv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/home/runner/work/nevergrad/nevergrad/venv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/runner/work/nevergrad/nevergrad/venv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-soo31i8e/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/tmp/pip-build-env-soo31i8e/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-soo31i8e/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 487, in run_setup
super().run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-soo31i8e/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 41, in
File "/tmp/pip-build-env-soo31i8e/overlay/lib/python3.9/site-packages/setuptools/init.py", line 104, in setup
return distutils.core.setup(**attrs)
File "/tmp/pip-build-env-soo31i8e/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 146, in setup
_setup_distribution = dist = klass(attrs)
File "/tmp/pip-build-env-soo31i8e/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 318, in init
self.metadata.version = self._normalize_version(self.metadata.version)
File "/tmp/pip-build-env-soo31i8e/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 354, in _normalize_version
normalized = str(Version(version))
File "/tmp/pip-build-env-soo31i8e/overlay/lib/python3.9/site-packages/setuptools/_vendor/packaging/version.py", line 200, in init
raise InvalidVersion(f"Invalid version: '{version}'")
setuptools.extern.packaging.version.InvalidVersion: Invalid version: 'main'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

How did you test this change?

I tested these changes in a forked repo.

https://fburl.com/workplace/f6mz6tmw

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants