-
Notifications
You must be signed in to change notification settings - Fork 11
fix: cannot use community-general version 12 - no py27 and py36 support #150
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 <[email protected]>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideRestricts community.general to versions >=6.6.0 and <12 to preserve Python 2.7/3.6 compatibility, and enforces a uniform meta/collection-requirements.yml format across roles by adding a managed-by header, explicit name fields, and removing SPDX license headers. Class diagram for updated collection-requirements.yml structureclassDiagram
class CollectionRequirementFile {
+managed_by : string
+collections : Collection[]
}
class Collection {
+name : string
}
CollectionRequirementFile "1" -- "*" Collection : contains
Flow diagram for standardized collection-requirements.yml formatflowchart TD
A["Start: Update collection-requirements.yml"] --> B["Add managed-by header"]
B --> C["Use explicit 'name' fields for collections"]
C --> D["Remove SPDX license header"]
D --> E["Result: Standardized requirements file"]
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 [email protected]
Summary by Sourcery
Pin community.general to versions >=6.6.0 and <12 to retain Python 2.7/3.6 support, and standardize the format of collection requirements files across all roles.
Bug Fixes:
Enhancements: