diff options
author | Saniya Maheshwari <saniya.mah@gmail.com> | 2022-06-08 20:24:31 +0530 |
---|---|---|
committer | Saniya Maheshwari <saniya.mah@gmail.com> | 2022-06-08 21:34:35 +0530 |
commit | a6180e85d58f7fc1674728c63a53939586247caa (patch) | |
tree | 1d03e21e96d3f566f276673b1d36004f6db2526f /docs/userguide | |
parent | 6528a4c14b278e375473b66a865f0892f60cf5c0 (diff) | |
download | python-setuptools-git-a6180e85d58f7fc1674728c63a53939586247caa.tar.gz |
Changed `setup.py` snippet in console scripts example
- I think there is no need to include name, version, `packages`, etc.
They haven't been included in the equivalent `setup.cfg` snippet as
well as in other snippets in the documentation.
- Fixed up indentation by changing tabs to 4 spaces.
Diffstat (limited to 'docs/userguide')
-rw-r--r-- | docs/userguide/entry_point.rst | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/docs/userguide/entry_point.rst b/docs/userguide/entry_point.rst index 2e3bf7e1..28bdc3ad 100644 --- a/docs/userguide/entry_point.rst +++ b/docs/userguide/entry_point.rst @@ -69,15 +69,12 @@ your configuration: from setuptools import setup setup( - name='timmins', - version='0.0.1', - packages=['timmins'], - # ... + # ..., entry_points={ - 'console_scripts': [ - 'hello-world=timmins:hello_world', - ] - } + 'console_scripts': [ + 'hello-world=timmins:hello_world', + ] + } ) .. tab:: pyproject.toml (**EXPERIMENTAL**) [#experimental]_ |