[Python-checkins] python/dist/src/Doc/dist dist.tex,1.51,1.52
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
Mon, 31 Mar 2003 08:23:14 -0800
Update of /cvsroot/python/python/dist/src/Doc/dist
In directory sc8-pr-cvs1:/tmp/cvs-serv13691
Modified Files:
dist.tex
Log Message:
- add the "download_url" field to the pre-2.2.3 metadata compatibility note
- fix some markup nits
Index: dist.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/dist/dist.tex,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** dist.tex 4 Mar 2003 19:35:40 -0000 1.51
--- dist.tex 31 Mar 2003 16:23:09 -0000 1.52
***************
*** 298,303 ****
This, of course, only applies to pathnames given to Distutils
! functions. If you, for example, use standard python functions such as
! \function{glob.glob} or \function{os.listdir} to specify files, you
should be careful to write portable code instead of hardcoding path
separators:
--- 298,303 ----
This, of course, only applies to pathnames given to Distutils
! functions. If you, for example, use standard Python functions such as
! \function{glob.glob()} or \function{os.listdir()} to specify files, you
should be careful to write portable code instead of hardcoding path
separators:
***************
*** 715,748 ****
\item[(4)] The list of classifiers is available from the
PyPI website (\url{http://www.python.org/pypi}).
! \end{description}
!
! \option{classifiers} are specified in a python list:
\begin{verbatim}
setup(...
! classifiers = [
! 'Development Status :: 4 - Beta',
! 'Environment :: Console',
! 'Environment :: Web Environment',
! 'Intended Audience :: End Users/Desktop',
! 'Intended Audience :: Developers',
! 'Intended Audience :: System Administrators',
! 'License :: OSI Approved :: Python Software Foundation License',
! 'Operating System :: MacOS :: MacOS X',
! 'Operating System :: Microsoft :: Windows',
! 'Operating System :: POSIX',
! 'Programming Language :: Python',
! 'Topic :: Communications :: Email',
! 'Topic :: Office/Business',
! 'Topic :: Software Development :: Bug Tracking',
! ],
...
! )
\end{verbatim}
! If you wish to include classifiers in your \file{setup.py} file and also
! wish to remain backwards-compatible with Python releases prior to 2.2.3,
! then you can include the following code fragment in your \file{setup.py}
! before the \code{setup()} call.
\begin{verbatim}
--- 715,747 ----
\item[(4)] The list of classifiers is available from the
PyPI website (\url{http://www.python.org/pypi}).
! \option{classifiers} are specified as a list of strings:
\begin{verbatim}
setup(...
! classifiers=[
! 'Development Status :: 4 - Beta',
! 'Environment :: Console',
! 'Environment :: Web Environment',
! 'Intended Audience :: End Users/Desktop',
! 'Intended Audience :: Developers',
! 'Intended Audience :: System Administrators',
! 'License :: OSI Approved :: Python Software Foundation License',
! 'Operating System :: MacOS :: MacOS X',
! 'Operating System :: Microsoft :: Windows',
! 'Operating System :: POSIX',
! 'Programming Language :: Python',
! 'Topic :: Communications :: Email',
! 'Topic :: Office/Business',
! 'Topic :: Software Development :: Bug Tracking',
! ],
...
! )
\end{verbatim}
+ \end{description}
! If you wish to include classifiers or a download URL in your
! \file{setup.py} file and also wish to remain backwards-compatible with
! Python releases prior to 2.2.3, then you can include the following
! code fragment in your \file{setup.py} before the \code{setup()} call:
\begin{verbatim}
***************
*** 751,754 ****
--- 750,754 ----
from distutils.dist import DistributionMetadata
DistributionMetadata.classifiers = None
+ DistributionMetadata.download_url = None
\end{verbatim}