-
Notifications
You must be signed in to change notification settings - Fork 8
fix: cannot use community-general version 12 - no py27 and py36 support #85
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
Conversation
community.general version 12 has dropped support for py27 and py36 - ensure that the roles do not install/use this version - see ansible-collections/community.general#582 By default, installation will get the latest 11.x version. The lower bound `6.6.0` is an older version, but I don't want to restrict the ability of a user of a particular role to use an old version, rather than forcing them to use `11.x` or later. Some roles like `rhc` explicitly require `6.6.0` or later - I think this is a reasonable lower bound for all roles.If a role needs a different version, the role can define its own `community_general_version` in the role's `host_vars` file in .github. Standardize file format across all roles for consistency and ease of updating This update may remove the SPDX license information from the file - this is ok - the role/project already has a license, this file is trivial, and many requirements files do not have the license header anyway. Signed-off-by: Rich Megginson <rmeggins@redhat.com>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR prevents installation of community.general v12 (which dropped py27/py36 support) by constraining versions to a lower bound of 6.6.0 and capping at 11.x (with per-role overrides), and it standardizes the format of collection-requirements files across all roles (including removing redundant SPDX headers). Entity relationship diagram for updated collection requirements constraintserDiagram
ROLE {
string name
string community_general_version
}
COLLECTION_REQUIREMENTS {
string file_format
string community_general_version_constraint
}
ROLE ||--|{ COLLECTION_REQUIREMENTS : defines
COLLECTION_REQUIREMENTS }|--|{ COMMUNITY_GENERAL : includes
COMMUNITY_GENERAL {
string version
string python_support
}
COMMUNITY_GENERAL }|--|{ PYTHON_VERSION : supports
PYTHON_VERSION {
string version
}
Class diagram for collection requirements version constraint logicclassDiagram
class Role {
+string name
+string community_general_version
+overrideCommunityGeneralVersion()
}
class CollectionRequirements {
+string file_format
+string community_general_version_constraint
+standardizeFormat()
}
class CommunityGeneral {
+string version
+string python_support
}
class PythonVersions {
+PY27
+PY36
}
Role --> CollectionRequirements : defines
CollectionRequirements --> CommunityGeneral : includes
CommunityGeneral --> PythonVersions : dropped in v12
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
community.general version 12 has dropped support for py27 and py36 - ensure that
the roles do not install/use this version - see
ansible-collections/community.general#582
By default, installation will get the latest 11.x version. The lower bound
6.6.0is an older version, but I don't want to restrict the ability of a userof a particular role to use an old version, rather than forcing them to use
11.xor later. Some roles likerhcexplicitly require6.6.0or later - Ithink this is a reasonable lower bound for all roles.If a role needs a different
version, the role can define its own
community_general_versionin the role'shost_varsfile in .github.Standardize file format across all roles for consistency and ease of updating
This update may remove the SPDX license information from the file - this is ok -
the role/project already has a license, this file is trivial, and many
requirements files do not have the license header anyway.
Signed-off-by: Rich Megginson rmeggins@redhat.com
Summary by Sourcery
Prevent community.general version 12 from being installed by default to retain Python 2.7 and 3.6 support and standardize requirement file formatting
Bug Fixes:
Enhancements:
Chores: