From 14e7d7137c9f700d3271aebca13dba9420a90e32 Mon Sep 17 00:00:00 2001 From: Patrick Lannigan Date: Fri, 11 Mar 2022 15:45:08 -0500 Subject: [PATCH] Example using setup.py --- L97-python-setuptools-plugin.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/L97-python-setuptools-plugin.md b/L97-python-setuptools-plugin.md index 7a87edae5..6fd1d227f 100644 --- a/L97-python-setuptools-plugin.md +++ b/L97-python-setuptools-plugin.md @@ -86,6 +86,26 @@ build-backend = "setuptools.build_meta" example_parameter = "CHANGE ME" # This is a place holder until the configuration parameters are defined ``` +Minimal example for a project using `setup.py`: + +setup.py +```python +from setuptools import setup + +setup( + ..., + setup_requires=[ + 'grpcio-tools >= X.Y.Z' + ], +) +``` + +pyproject.toml +```toml +[tool.grpcio-tools] +example_parameter = "CHANGE ME" # This is a place holder until the configuration parameters are defined +``` + ## Rationale A downside of this proposal is that it will introduce yet another way to get the Python modules that