Skip to content

Migrate to pyproject.toml instead of setup.py #16403

Closed as not planned
Closed as not planned

Description

@parthea

pyproject.toml is recommended instead of setup.py which is currently in the generated output for GAPIC.

Follow this tutorial to use pyproject.toml
https://packaging.python.org/en/latest/tutorials/packaging-projects/#creating-pyproject-toml

The sample project on PyPA was recently updated to migrate from setup.py/setup.cfg to pyproject.toml
pypa/sampleproject#166

Activity

  1. added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    on Apr 5, 2023
  2. chalmerlowe commented on Apr 14, 2023

    @chalmerlowe
    Contributor

    This may not be an issue if we are using a recent version of pip (21.3+ I think...)

    At one point even if you switched to pyproject.toml there was a requirement to provide a shim in setup.py if you wanted to be able to install a package in editable mode (i.e. using pip install -e):

    #!/usr/bin/env python
    
    import setuptools
    
    if __name__ == "__main__":
        setuptools.setup()
    
  3. parthea commented on Mar 26, 2026

    @parthea
    ContributorAuthor

    Transferring to google-cloud-python as the code for gapic-generator will be migrated there.

  4. marked migrate to pyproject.toml #13171 as a duplicate of this issue on Apr 28, 2026
  5. daniel-sanche commented on May 27, 2026

    @daniel-sanche
    Contributor

    This issue is being closed as part of a bulk review (Filter #1). Please reopen if you believe this is still relevant and requires action.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions