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

Add imported dependencies #45

Merged
merged 3 commits into from
Jan 27, 2025
Merged

Add imported dependencies #45

merged 3 commits into from
Jan 27, 2025

Conversation

himdel
Copy link
Collaborator

@himdel himdel commented Jan 21, 2025

Issue: AAP-38424 / AAP-39220

Add all packages we import from as dependencies, using the same version that awx currently uses.
This is a step towards being able to run the utility in standalone environment for testing.

Adds:

"boto3==1.35.96",
"botocore==1.35.96",
"distro==1.9.0",
"insights-analytics-collector==0.3.2",
"openpyxl==3.1.2",
"pandas==2.2.1",
"requests==2.32.3",
"setuptools==70.3.0",

(Pretty sure most of these can be updated to latest, but starting from a known good state before we have tests.)

Changes:

  • Django from >4<5 to "django==4.2.16" (because awx)
  • pre-commit, pytest & ruff from versionless to (no awx-related limitations)
    • "pre-commit>=4.0.1",
    • "pytest>=8.3.4",
    • "ruff>=0.9.2",
  • minimum python version to 3.11

This currently does nothing, except install successfully,
but the follow-up PR can focus on dealing with just imports from awx itself.

@art-tapin art-tapin self-requested a review January 23, 2025 19:53
Copy link
Collaborator

@art-tapin art-tapin left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

The changes provide a solid foundation for making the metrics-utility more standalone by properly declaring all dependencies with specific versions. I've tested the branch and can confirm it maintains the same behavior as devel, with the expected warnings that will be addressed in follow-up work.

Special thanks to @himdel for the quick support with troubleshooting the local installation issues.

Ready to merge! 🚀

add dependencies which we import from and are not in python stdlib:

    boto3
    botocore
    distro
    insights-analytics-collector
    openpyxl
    pandas
    requests
    setuptools
except for pytest, ruff & pre-commit, everything is an existing awx dependency,
so start from a known good point of using exactly the same versions
@himdel himdel merged commit d70534f into ansible:devel Jan 27, 2025
5 checks passed
@himdel himdel deleted the deps branch January 27, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants