gapic-generator-python icon indicating copy to clipboard operation
gapic-generator-python copied to clipboard

Reduce duplication in GAPIC requirements in setup.py and templates

Open parthea opened this issue 2 years ago • 0 comments

Currently we have to manually sync the requirements of the gapic-generator library with the requirements in the templates.

  • gapic-generator requirements https://github.com/googleapis/gapic-generator-python/blob/723efca3f909527c48e8070eff61511293888626/setup.py#L27-L39

  • Requirements in the Client library template https://github.com/googleapis/gapic-generator-python/blob/723efca3f909527c48e8070eff61511293888626/gapic/templates/setup.py.j2#L29-L42

This goes against the DRY (Don't repeat yourself) principle. We should automatically populate the setup.py.j2 template file used for generating client libraries with the requirements of the gapic-generator library.

parthea avatar Sep 20 '23 15:09 parthea