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

Restrict setuptools on Python 2 to make CI work again #66405

Closed
wants to merge 6 commits into from

Conversation

felixfontein
Copy link
Contributor

SUMMARY

Fixes #66401.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

test/integration/targets/pip/tasks/pip.yml
test/integration/targets/inventory_kubevirt_conformance/runme.sh

@ansibot
Copy link
Contributor

ansibot commented Jan 13, 2020

@ansibot ansibot added WIP This issue/PR is a work in progress. Nevertheless it was shared for getting input from peers. affects_2.10 This issue/PR affects Ansible v2.10 bug This issue/PR relates to a bug. has_issue needs_triage Needs a first human triage before being processed. packaging Packaging category support:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Jan 13, 2020
@felixfontein felixfontein changed the title [WIP] Restrict setuptools on Python 2 to make CI work again Restrict setuptools on Python 2 to make CI work again Jan 13, 2020
@ansibot ansibot added core_review In order to be merged, this PR must follow the core review workflow. and removed WIP This issue/PR is a work in progress. Nevertheless it was shared for getting input from peers. labels Jan 13, 2020
openshift

# setuptools 45.0.0 no longer works with Python 2
setuptools<45.0.0 ; python_version < '3'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
setuptools<45.0.0 ; python_version < '3'
setuptools<45; python_version < "3.0"
setuptools; python_version >= "3.0"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated the first line.

Why should setuptools also be specified for Python >= 3.0? The test needs openshift; I only added setuptools because somewhere in the dependencies of openshift, a newer setuptools is mentioned than is currently installed.

name:
- distribute
# setuptools 45.0.0 no longer works with Python 2
- setuptools<45.0.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- setuptools<45.0.0
- setuptools<45; python_version < "3.0"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The task is contained in a block with when: ansible_python.version.major == 2.

@ansibot ansibot removed the needs_triage Needs a first human triage before being processed. label Jan 13, 2020
@felixfontein
Copy link
Contributor Author

Closing in favor of #66426.

@felixfontein felixfontein deleted the setuptools-fix-tests branch January 13, 2020 18:16
@ansible ansible locked and limited conversation to collaborators Feb 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.10 This issue/PR affects Ansible v2.10 bug This issue/PR relates to a bug. core_review In order to be merged, this PR must follow the core review workflow. has_issue packaging Packaging category support:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pip setuptools tests fail
3 participants