Skip to content

chore: revert to original pip licenses#1166

Open
moe-ad wants to merge 5 commits intomainfrom
maint/revert-to-original-pip-licenses
Open

chore: revert to original pip licenses#1166
moe-ad wants to merge 5 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.

run: |
${ACTIVATE_VENV}
$INSTALL_COMMAND external/pip-licenses
$INSTALL_COMMAND -U pip
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can remove pip upgrade here since its already done at line 260

${ACTIVATE_VENV}
$INSTALL_COMMAND external/pip-licenses
$INSTALL_COMMAND -U pip
$INSTALL_COMMAND pip-licenses
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we pin the version
$INSTALL_COMMAND "pip-licenses>=5.0" ?

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 ?

4 participants