Skip to content

Commit

Permalink
Example using setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
plannigan committed Mar 11, 2022
1 parent 93056ed commit 14e7d71
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions L97-python-setuptools-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14e7d71

Please sign in to comment.