diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2005-03-21 20:56:35 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2005-03-21 20:56:35 (GMT) |
commit | 55f1bb8bfa362569b6698a91a1cf421bdfcd13d7 (patch) | |
tree | beea9fb70aee8ff05b1f6fa78bd04e5d2a668bdf /Doc/dist/dist.tex | |
parent | e6c430dffe5618016c516578726c0a7aa1471a9e (diff) | |
download | cpython-55f1bb8bfa362569b6698a91a1cf421bdfcd13d7.zip cpython-55f1bb8bfa362569b6698a91a1cf421bdfcd13d7.tar.gz cpython-55f1bb8bfa362569b6698a91a1cf421bdfcd13d7.tar.bz2 |
Add the upload command. Make all dist commands register their
outputs with the distribution object.
Diffstat (limited to 'Doc/dist/dist.tex')
-rw-r--r-- | Doc/dist/dist.tex | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Doc/dist/dist.tex b/Doc/dist/dist.tex index bcff1a6..1684265 100644 --- a/Doc/dist/dist.tex +++ b/Doc/dist/dist.tex @@ -1715,7 +1715,37 @@ By default PyPI will list all versions of a given package. To hide certain versions, the Hidden property should be set to yes. This must be edited through the web interface. +\section{The .pypirc file} +\label{pypirc} +The format of the \file{.pypirc} file is formated as follows: + +\begin{verbatim} +[server-login] +repository: <repository-url> +username: <username> +password: <password> +\end{verbatim} + +\var{repository} can be ommitted and defaults to +\code{http://www.python.org/pypi}. + +\chapter{Uploading Packages to the Package Index} +\label{package-upload} + +The Python Package Index (PyPI) not only stores the package info, but also +the package data if the author of the package wishes to. The distutils +command \command{upload} pushes the distribution files to PyPI. + +The command is invokes immediately after building one or more distribution +files, e.g. as + +\begin{verbatim} +python setup.py sdist bdist_wininst upload +\end{verbatim} + +The \command{upload} command uses the username and password stored in +in the file \file{$HOME/.pypirc}, see \ref{pypirc}. \chapter{Examples} \label{examples} @@ -2055,6 +2085,11 @@ line option above, the command \command{bdist\_openpkg} could be implemented by the class \class{distcmds.bdist_openpkg.bdist_openpkg} or \class{buildcmds.bdist_openpkg.bdist_openpkg}. +\section{Adding new distribution types} + +Commands that create distributions (i.e. files in the dist directory) +need to add (command, filename) pairs to \var{self.distribution.dist_files} +so that \command{upload} can upload it to PyPI. \chapter{Command Reference} \label{reference} |