Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-20761

Remove legacy setup.py and setup.cfg files and modernize packaging to use only pyproject.toml

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Normal Normal
    • 2026.1 (G)
    • None
    • Eventlet
    • None
    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Selected
    • rhos-ops-platform-services-pidone
    • Sprint 7
    • 1
    • Moderate

      Goal: 

      Modernize Python packaging configuration by removing legacy setuptools files and redundant configuration. The project currently maintains duplicate packaging configuration across setup.py, setup.cfg, and pyproject.toml, with setup.py containing only an empty setuptools.setup() call and setup.cfg duplicating readme configuration already defined in pyproject.toml. Since the project uses hatchling as the build backend, these legacy files are obsolete and create maintenance overhead.

      Acceptance Criteria:

        - Verify setup.py file has been removed from the repository
        - Verify setup.cfg file has been removed from the repository
        - Verify [tool.setuptools] and [options.packages.find] sections are removed from pyproject.toml
        - Verify project builds successfully with python -m build
        - Verify editable installation works with pip install -e .
        - Verify all project metadata is preserved in pyproject.toml
        - Verify package discovery works correctly with hatchling backend
        - Verify no CI/CD pipelines are broken by the configuration changes

       

              hberaud Hervé Beraud
              hberaud Hervé Beraud
              rhos-dfg-pidone
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: