Skip to content

Transition remote modules configuration from setup.py to the modern pyproject.toml #4748

Closed

Description

@jhlegarreta

Description

Transition remote modules configuration from setup.py to the modern pyproject.toml.

Impact analysis

pyproject.toml is the modern way to package projects using Python code:
https://packaging.python.org/en/latest/guides/writing-pyproject-toml/
https://packaging.python.org/en/latest/guides/modernize-setup-py-project/#modernize-setup-py-project

Expected behavior

Transition all remote module's project configuration to a pyproject.toml file.

Actual behavior

Almost all remote module's project configuration dwells in a setup.py file.

Versions

N/A.

Environment

N/A.

Additional Information

Matt has contributed with a script that would help in the transition:
InsightSoftwareConsortium/ITKModuleTemplate#161

Also, there is this tool Matt has used to update the remote module CI config to ITK 5.4:
https://github.com/asottile/all-repos

Ongoing work:
thewtex@9e9d513

Remotes and PRs:

TODO:

DONE:

Notes:

Activity

  1. added
    type:Infrastructure
    on Jun 23, 2024
  2. thewtex commented on Jun 24, 2024

    @thewtex
    Member

    @jhlegarreta thank you for your help with this! 💯 🥇

    I did not bump the versions for the remotes while opening the PRs. @thewtex let me know your thoughts. Major, minor, patch, none?

    I think we should bump the major version. Experience has shown that the packages are not binary compatible across itk major or minor releases. Following semantic versioning, this is a major bump.

    In the process of updating these, we could consider also changing the default branch from master to main,

    image

  3. jhlegarreta commented on Jun 24, 2024

    @jhlegarreta
    MemberAuthor

    Re #4748 (comment)

    I am not bumping to newer ITK versions when transitioning to pyproject.toml: I am leaving unmodified the ITK dependency version that is transferred automatically from setup.py to pyproject.toml. Do you want me to require "itk>=5.4" for all of them while adopting pyproject.toml?

    In the process of updating these, we could consider also changing the default branch from master to main,

    Can do that right after the PRs are merged.

  4. thewtex commented on Jun 25, 2024

    @thewtex
    Member

    I am not bumping to newer ITK versions when transitioning to pyproject.toml: I am leaving unmodified the ITK dependency version that is transferred automatically from setup.py to pyproject.toml. Do you want me to require "itk>=5.4" for all of them while adopting pyproject.toml?

    Yes, please. itk == 5.4.* to be specific (or itk-core == 5.4.* if it only requires itk-core, etc.) We should update the script to do so automatically, too.

  5. jhlegarreta commented on Jun 25, 2024

    @jhlegarreta
    MemberAuthor

    Yes, please. itk == 5.4.* to be specific (or itk-core == 5.4.* if it only requires itk-core, etc.) We should update the script to do so automatically, too.

    OK, done. The script does update to itk == 5.4.* in most cases (e.g. it does not when no specific version of itk has been specified, for example).

    Edit: leaving bumping version of ITKTubeTK to @aylward.

  6. added a commit that references this issue on Jul 19, 2024
  7. added this to the ITK 6.0 Beta 1 milestone on Jan 23, 2025
  8. hjmjohnson commented on Feb 1, 2025

    @hjmjohnson
    Member

    @dzenanz @thewtex @jhlegarreta I did what I could. The remaining merges need to come from someone with KitwareMedical access.

  9. dzenanz commented on Feb 3, 2025

    @dzenanz
    Member
  10. dzenanz commented on Feb 3, 2025

    @dzenanz
    Member

    @hjmjohnson I have merged outstanding PRs in KitwareMedical org.

  11. thewtex commented on Feb 6, 2025

    @thewtex
    Member

    @hjmjohnson thank you!!

  12. hjmjohnson commented on Apr 25, 2026

    @hjmjohnson
    Member

    Audit of ISC-owned remote modules (2026-04-25): all done.

    Scope: the 45 entries in `Modules/Remote/*.remote.cmake` whose `GIT_REPOSITORY` URL points at `InsightSoftwareConsortium/`. Non-ISC remotes (`SCIInstitute/ITKCleaver`, `scifio/scifio-imageio`) remain out of scope per the issue body.

    Status Count Modules
    `pyproject.toml` only 42 All Python-wrapped ISC remotes
    `pyproject.toml` + `setup.py` (transition) 0 —
    `setup.py` only 0 —
    Neither (no Python wrapping) 3 ITKMontage, ITKPerformanceBenchmarking, ITKSphinxExamples

    Recently ingested into ITK proper:

    Closing the ISC portion of this issue. The two non-ISC TODOs (`SCIInstitute/ITKCleaver` and `scifio/scifio-imageio`) remain — keep this issue open if you want to track those, otherwise feel free to close.

  13. hjmjohnson commented on Apr 25, 2026

    @hjmjohnson
    Member

    Closing — ISC-controlled remote modules are fully migrated (42/42 Python-wrapped modules on pyproject.toml; 3 have no Python wrapping). See audit table above. The two non-ISC TODOs (SCIInstitute/ITKCleaver, scifio/scifio-imageio) are owned externally and out of scope for this repo's tracker; if needed, reopen or file separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type:Infrastructure

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions