@@ -297,8 +297,8 @@ \section{Writing the Setup Script}
297297path, the opposite of the MacOS convention with colons.)
298298
299299This, of course, only applies to pathnames given to Distutils
300- functions. If you, for example, use standard python functions such as
301- \function {glob.glob} or \function {os.listdir} to specify files, you
300+ functions. If you, for example, use standard Python functions such as
301+ \function {glob.glob() } or \function {os.listdir() } to specify files, you
302302should be careful to write portable code instead of hardcoding path
303303separators:
304304
@@ -714,42 +714,42 @@ \subsection{Additional meta-data}
714714 Python versions prior to 2.2.3 or 2.3.
715715\item [(4)] The list of classifiers is available from the
716716 PyPI website (\url {http://www.python.org/pypi}).
717- \end {description }
718-
719- \option {classifiers} are specified in a python list:
717+ \option {classifiers} are specified as a list of strings:
720718
721719\begin {verbatim }
722720setup(...
723- classifiers = [
724- 'Development Status :: 4 - Beta',
725- 'Environment :: Console',
726- 'Environment :: Web Environment',
727- 'Intended Audience :: End Users/Desktop',
728- 'Intended Audience :: Developers',
729- 'Intended Audience :: System Administrators',
730- 'License :: OSI Approved :: Python Software Foundation License',
731- 'Operating System :: MacOS :: MacOS X',
732- 'Operating System :: Microsoft :: Windows',
733- 'Operating System :: POSIX',
734- 'Programming Language :: Python',
735- 'Topic :: Communications :: Email',
736- 'Topic :: Office/Business',
737- 'Topic :: Software Development :: Bug Tracking',
738- ],
721+ classifiers= [
722+ 'Development Status :: 4 - Beta',
723+ 'Environment :: Console',
724+ 'Environment :: Web Environment',
725+ 'Intended Audience :: End Users/Desktop',
726+ 'Intended Audience :: Developers',
727+ 'Intended Audience :: System Administrators',
728+ 'License :: OSI Approved :: Python Software Foundation License',
729+ 'Operating System :: MacOS :: MacOS X',
730+ 'Operating System :: Microsoft :: Windows',
731+ 'Operating System :: POSIX',
732+ 'Programming Language :: Python',
733+ 'Topic :: Communications :: Email',
734+ 'Topic :: Office/Business',
735+ 'Topic :: Software Development :: Bug Tracking',
736+ ],
739737 ...
740- )
738+ )
741739\end {verbatim }
740+ \end {description }
742741
743- If you wish to include classifiers in your \file {setup.py} file and also
744- wish to remain backwards-compatible with Python releases prior to 2.2.3,
745- then you can include the following code fragment in your \file {setup.py}
746- before the \code {setup()} call.
742+ If you wish to include classifiers or a download URL in your
743+ \file {setup.py} file and also wish to remain backwards-compatible with
744+ Python releases prior to 2.2.3, then you can include the following
745+ code fragment in your \file {setup.py} before the \code {setup()} call:
747746
748747\begin {verbatim }
749748# patch distutils if it can't cope with the "classifiers" keyword
750749if sys.version < '2.2.3':
751750 from distutils.dist import DistributionMetadata
752751 DistributionMetadata.classifiers = None
752+ DistributionMetadata.download_url = None
753753\end {verbatim }
754754
755755
0 commit comments