Skip to content

Fix pip cert issue - #636

Merged
popescu-v merged 15 commits into
mainfrom
fix-pip-cert-issue
Nov 9, 2026
Merged

popescu-v merged 15 commits into
mainfrom
fix-pip-cert-issue

Conversation

@popescu-v

@popescu-v popescu-v commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Update all dependencies in the CI or packaging, related to Python or Pip (including Conda).


TODO Before Asking for a Review

  • Rebase your branch to the latest version of main (or main-v10)
  • Make sure all CI workflows are green
  • When adding a public feature/fix: Update the Unreleased section of CHANGELOG.md (no date)
  • Self-Review: Review "Files Changed" tab and fix any problems you find
  • API Docs (only if there are changes in docstrings, markdown files or samples):
    • Check the docs build without warning: see the log of the API Docs workflow
    • Check that your changes render well in HTML: download the API Docs artifact and open index.html
    • If there are any problems it is faster to iterate by building locally the API Docs

@popescu-v popescu-v mentioned this pull request Nov 3, 2026
6 tasks
@popescu-v
popescu-v force-pushed the fix-pip-cert-issue branch 2 times, most recently from b44e5c3 to 68be519 Compare November 3, 2026 20:10
Thus, one makes sure Python and Pip versions that address the CA cert
issue are used.

Create the ubuntu user only if non-existing. It already exists on Ubuntu
24.04. In this case, the same attributes as when the user is added are
enforced on it.
@popescu-v
popescu-v force-pushed the fix-pip-cert-issue branch 5 times, most recently from a34de90 to 0ef0129 Compare November 5, 2026 16:38
@popescu-v
popescu-v requested a review from tramora November 5, 2026 16:51
Comment thread .github/workflows/api-docs.yml Resolved
Comment thread .github/workflows/dev-docker.yml Resolved
Comment thread .github/workflows/pip.yml Resolved
Comment thread .github/workflows/pip.yml Resolved
Comment thread .github/workflows/pip.yml
# Get Git tags
# See issue https://github.com/actions/checkout/issues/701
fetch-depth: 0
- name: Setup Python

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It may be helpful to add a TODO to always think about updating to the latest maintained Python version (if it is the policy).

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, but this TODO would always be there, in this case. IMHO, another way is to document this on the Wiki: https://github.com/KhiopsML/khiops/wiki/Release-Process, at the "Release Khiops enabler: khiops-python.

@tramora tramora Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Indeed. It's the best place, except the link needs update, instead of
https://github.com/KhiopsML/khiops-python/blob/dev/CONTRIBUTING.md
it should have been
https://github.com/KhiopsML/khiops-python/blob/main/CONTRIBUTING.md
I fixed it

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

CONTRIBUTING.md updated.

Comment thread .github/workflows/pip.yml Resolved
Comment thread .github/workflows/tests.yml Resolved
Comment thread .github/workflows/tests.yml Resolved
Comment thread .github/workflows/tests.yml Resolved
Comment thread .github/workflows/tests.yml Resolved
Comment thread .github/workflows/tests.yml Resolved
@tramora

tramora commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

Looks fine to me. Thanx for the big work.
2 remarks though :

  • as a pip user I'm used to activate explicitely the virtual envs (instead of implicitely in using the local executable). We even document this way for the end user (in khiops.org). But I now understand that it is how uv is intended to be used and it becomes de facto the way to run.
  • doesn't all this technical work deserve a line in the release notes ? "remove 3.10 from the supported Python versions". I agree the MitM mitigation is not worth mentionning as it is included in the versions update effort.

@popescu-v

popescu-v commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator Author

Looks fine to me. Thanx for the big work. 2 remarks though :

* as a pip user I'm used to activate explicitely the virtual envs (instead of implicitely in using the local executable). We even  document this way for the end user (in khiops.org). But I now understand that it is how uv is intended to be used and it becomes de facto the way to run.

* doesn't all this technical work deserve a line in the  release notes ? "remove 3.10 from the supported Python versions". I agree the MitM mitigation is not worth mentionning as it is included in the versions update effort.

OK, I'll add an entry to the CHANGELOG accordingly.

@popescu-v
popescu-v requested a review from tramora November 9, 2026 14:49
- install khiops non-interactively in the Conda package test
- launch expensive tests automatically on `main` or `main-v10` as
  stated in the comment. Before, they were never launched automatically
  on those branches.
- systematically specify the shell on Windows workflows (especially
  specify `bash` where applicable, to avoid using the default
  Powershell).
Installing Khiops on the system Python is neither recommended, nor
secure, because vanilla system Python can be EOL, or otherwise forcing
package updates might break the system anyway.
… tests

Use the virtual environment Python path directly, as this is sufficient
for Khiops.
…prohibited)

Also, no longer activate the virtual environments, but use the paths to
their Python interpreters directly. For Linux and macOS, also add the
virtual environment binaries directory to the PATH, as this is required
by the Khiops runner to locate the khiops_env script.
- Python 3.10 support drop
- updated packages after the emSign CA incident.
@popescu-v
popescu-v merged commit d5f7451 into main Nov 9, 2026
24 of 25 checks passed
@popescu-v
popescu-v deleted the fix-pip-cert-issue branch November 9, 2026 15:43
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