Skip to content

chore: revert to original pip licenses#1166

Merged
moe-ad merged 10 commits intomainfrom
maint/revert-to-original-pip-licenses
Feb 27, 2026
Merged

chore: revert to original pip licenses#1166
moe-ad merged 10 commits intomainfrom
maint/revert-to-original-pip-licenses

Conversation

@moe-ad
Copy link
Contributor

@moe-ad moe-ad commented Feb 20, 2026

Closes #1047.

I ran tests in the Metapackage against Python 3.9 through 3.13 and the tests pass (see ansys/pyansys#1205).

Since pip-licenses officially supports Python 3.9, should we still be enforcing 3.10 as the minimum Python in ansys/check-licenses or it is ok to stop doing that like I have already done?
@RobPasMue @SMoraisAnsys @jorgepiloto

@moe-ad moe-ad changed the title maint: revert to original pip licenses chore: revert to original pip licenses Feb 20, 2026
@moe-ad moe-ad self-assigned this Feb 20, 2026
@moe-ad moe-ad marked this pull request as ready for review February 20, 2026 10:47
@moe-ad moe-ad requested a review from a team as a code owner February 20, 2026 10:47
@SMoraisAnsys
Copy link
Contributor

I would keep the minimum value to 3.10.

@moe-ad Could you also have a look into https://github.com/stefan6419846/pip-licenses-lib and https://github.com/stefan6419846/pip-licenses-cli ? They seem to be a solution that got created while, or even before that, the original pip-licenses repo was unmaintained. The situation has changed but it would be great to know how more reliable one repo would be over the other.

Copy link
Contributor

@SMoraisAnsys SMoraisAnsys left a comment

Choose a reason for hiding this comment

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

Thanks for the changes @moe-ad It seems that the repo is indeed back alive and that the changes performed aren't sketchy. Could you have a look at my comment ?

@moe-ad
Copy link
Contributor Author

moe-ad commented Feb 27, 2026

@SMoraisAnsys I added c9b95da. Can you please have one final look before I merge?

@RobPasMue
Copy link
Member

Since pip-licenses officially supports Python 3.9, should we still be enforcing 3.10 as the minimum Python in ansys/check-licenses or it is ok to stop doing that like I have already done?

Python 3.9 is at EOL. We shouldn't allow running it anyway.

Copy link
Contributor

@SMoraisAnsys SMoraisAnsys left a comment

Choose a reason for hiding this comment

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

Proposed changes to leverage the requirements.txt file that you added :D

@RobPasMue
Copy link
Member

RobPasMue commented Feb 27, 2026

FYI @moe-ad, for next time - it's nice to credit reviewers with their suggestions 😄 if possible, when addressing a PR review, handle the suggestions provided through the built-in mechanism that GitHub's web UI provides you. That way commits are co-authored. You can apply them in batch mode as well

Unless it really implies other major refactorings, it's typically a best practice.

Copy link
Member

@RobPasMue RobPasMue left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the contrib!

Copy link
Member

@RobPasMue RobPasMue left a comment

Choose a reason for hiding this comment

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

I've got my doubts about a change

@moe-ad
Copy link
Contributor Author

moe-ad commented Feb 27, 2026

Proposed changes to leverage the requirements.txt file that you added :D

How could I have missed that. Thanks @SMoraisAnsys and @RobPasMue.
image

FYI @moe-ad, for next time - it's nice to credit reviewers with their suggestions 😄 if possible, when addressing a PR review, handle the suggestions provided through the built-in mechanism that GitHub's web UI provides you. That way commits are co-authored. You can apply them in batch mode as well

Unless it really implies other major refactorings, it's typically a best practice.

@RobPasMue I usually do that. But between Sebastien's suggestion missing -r and needing to update other parts of the file, I just one-shotted it via local commit (PS: I didn't see that you also made a suggestion before doing that).

@moe-ad moe-ad requested a review from SMoraisAnsys February 27, 2026 15:37
@SMoraisAnsys
Copy link
Contributor

Thanks for the changes @moe-ad, LGTM :)

@RobPasMue
Copy link
Member

RobPasMue commented Feb 27, 2026

I usually do that. But between Sebastien's suggestion missing -r and needing to update other parts of the file, I just one-shotted it via local commit (PS: I didn't see that you also made a suggestion before doing that).

All good, no worries - and thanks for the changes @moe-ad ! I learned something new as well. I thought the pip upgrade had to always be done on a separate step (to avoid messing with the rest of the pip installs in fact)!

@moe-ad moe-ad merged commit 04272a0 into main Feb 27, 2026
67 checks passed
@moe-ad moe-ad deleted the maint/revert-to-original-pip-licenses branch February 27, 2026 16:56
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.

Switch back to original pip-licenses ?

5 participants