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

Need to replace distutils.* in ansible.posix to address PEP 632 #303

Closed
2 tasks
saito-hideki opened this issue Dec 22, 2021 · 0 comments · Fixed by #304
Closed
2 tasks

Need to replace distutils.* in ansible.posix to address PEP 632 #303

saito-hideki opened this issue Dec 22, 2021 · 0 comments · Fixed by #304
Assignees
Labels
bug This issue/PR relates to a bug. has_pr verified This issue has been verified/reproduced by maintainer

Comments

@saito-hideki
Copy link
Collaborator

saito-hideki commented Dec 22, 2021

SUMMARY

distutils module is depricated in Python3.10 and it will be removed in Python3.12:

In Python 3.12, distutils will no longer be installed by make install or any of the first-party distribution. Third-party redistributors should no longer include distutils in their bundles or repositories.

We need to address the above changes on ansible.posix side.

ISSUE TYPE
  • Bug report
COMPONENT NAME
  • plugins/module_utils/firewalld.py
  • plugins/modules/firewalld_info.py
ADDITIONAL INFORMATION
@saito-hideki saito-hideki self-assigned this Dec 22, 2021
@saito-hideki saito-hideki added feature This issue/PR relates to a feature request. verified This issue has been verified/reproduced by maintainer bug This issue/PR relates to a bug. and removed feature This issue/PR relates to a feature request. labels Dec 22, 2021
Akasurde pushed a commit to Akasurde/ansible.posix that referenced this issue Jan 6, 2022
ansible-zuul bot added a commit that referenced this issue Jan 7, 2022
Replace distutils with included module in ansible-core 2.12 to address PEP 632

SUMMARY
Replace distutils.* with included module in ansible-core 2.12 to addresss PEP 632 if available.
It does not change the behavior of ansible-core 2.11 or earlier.

Fixes #303
Addresses PEP 632(https://www.python.org/dev/peps/pep-0632/)

ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME

plugins/module_utils/firewalld.py


plugins/modules/firewalld_info.py



ADDITIONAL INFORMATION
None

Reviewed-by: Andrew Klychkov <aaklychkov@mail.ru>
Reviewed-by: Hideki Saito <saito@fgrep.org>
Reviewed-by: Felix Fontein <felix@fontein.de>
Reviewed-by: None <None>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug. has_pr verified This issue has been verified/reproduced by maintainer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant