From a6180e85d58f7fc1674728c63a53939586247caa Mon Sep 17 00:00:00 2001 From: Saniya Maheshwari Date: Wed, 8 Jun 2022 20:24:31 +0530 Subject: 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. --- docs/userguide/entry_point.rst | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'docs/userguide') 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]_ -- cgit v1.2.1