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

Stabilization: Fix install_vm.py on older versions of Python #10652

Conversation

jan-cerny
Copy link
Collaborator

We will remove the type hints that use collections. According to https://peps.python.org/pep-0585/, the "Type Hinting Generics In Standard Collections" were introduced in Python 3.9, but RHEL 8 and 7 use Python 3.6.

Fixes: #10650

This is a backport of #10651 to the stabilization branch.

@jan-cerny jan-cerny added BLOCKER Impediments to release, like failure to build content, or content built is out of standard's syntax Infrastructure Our content build system labels May 29, 2023
@github-actions
Copy link

Start a new ephemeral environment with changes proposed in this pull request:

Fedora Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

Copy link
Collaborator

@vojtapolasek vojtapolasek left a comment

Choose a reason for hiding this comment

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

LGTM

@mildas
Copy link
Contributor

mildas commented May 29, 2023

/packit copr-build

@mildas
Copy link
Contributor

mildas commented May 29, 2023

Tested, work fine. Can be merged when rpm-build:fedora-36-x86_64 requirement is removed.

@mildas mildas self-assigned this May 29, 2023
We will remove the type hints that use collections.
According to https://peps.python.org/pep-0585/, the
"Type Hinting Generics In Standard Collections" were introduced
in Python 3.9, but RHEL 8 and 7 use Python 3.6.

Fixes: ComplianceAsCode#10650
@vojtapolasek vojtapolasek merged commit d43223b into ComplianceAsCode:stabilization-v0.1.68 May 30, 2023
22 of 26 checks passed
@jan-cerny jan-cerny changed the title Fix install_vm.py on older versions of Python Stabilization: Fix install_vm.py on older versions of Python May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BLOCKER Impediments to release, like failure to build content, or content built is out of standard's syntax Infrastructure Our content build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants