33# This file is distributed under the same license as the Python package.
44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
6- # Translators:
7- # ppcfish <[email protected] >, 20198- #
96#, fuzzy
107msgid ""
118msgstr ""
129"Project-Id-Version : Python 3.7\n "
1310"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2019-01-01 10:14 +0900\n "
11+ "POT-Creation-Date : 2019-05-11 11:25 +0900\n "
1512"PO-Revision-Date : 2017-02-16 17:41+0000\n "
16- "
Last-Translator :
ppcfish <[email protected] >, 2019\n "
1713"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
1814"MIME-Version : 1.0\n "
1915"Content-Type : text/plain; charset=UTF-8\n "
@@ -27,292 +23,11 @@ msgstr ""
2723
2824#: ../../distutils/packageindex.rst:11
2925msgid ""
30- "The `Python Package Index (PyPI)`_ stores :ref:`meta-data <meta-data>` "
31- "describing distributions packaged with distutils, as well as package data "
32- "like distribution files if a package author wishes ."
26+ "The `Python Package Index (PyPI)`_ stores metadata describing distributions "
27+ "packaged with distutils and other publishing tools , as well the distribution "
28+ " archives themselves ."
3329msgstr ""
3430
3531#: ../../distutils/packageindex.rst:15
36- msgid ""
37- "Distutils provides the :command:`register` and :command:`upload` commands "
38- "for pushing meta-data and distribution files to PyPI, respectively. See "
39- ":ref:`package-commands` for information on these commands."
40- msgstr ""
41-
42- #: ../../distutils/packageindex.rst:21
43- msgid "PyPI overview"
44- msgstr "PyPI 概述"
45-
46- #: ../../distutils/packageindex.rst:23
47- msgid ""
48- "PyPI lets you submit any number of versions of your distribution to the "
49- "index. If you alter the meta-data for a particular version, you can submit "
50- "it again and the index will be updated."
51- msgstr ""
52-
53- #: ../../distutils/packageindex.rst:27
54- msgid ""
55- "PyPI holds a record for each (name, version) combination submitted. The "
56- "first user to submit information for a given name is designated the Owner of"
57- " that name. Changes can be submitted through the :command:`register` "
58- "command or through the web interface. Owners can designate other users as "
59- "Owners or Maintainers. Maintainers can edit the package information, but "
60- "not designate new Owners or Maintainers."
61- msgstr ""
62-
63- #: ../../distutils/packageindex.rst:34
64- msgid ""
65- "By default PyPI displays only the newest version of a given package. The "
66- "web interface lets one change this default behavior and manually select "
67- "which versions to display and hide."
68- msgstr ""
69-
70- #: ../../distutils/packageindex.rst:38
71- msgid ""
72- "For each version, PyPI displays a home page. The home page is created from "
73- "the ``long_description`` which can be submitted via the :command:`register` "
74- "command. See :ref:`package-display` for more information."
75- msgstr ""
76-
77- #: ../../distutils/packageindex.rst:46
78- msgid "Distutils commands"
79- msgstr ""
80-
81- #: ../../distutils/packageindex.rst:48
82- msgid ""
83- "Distutils exposes two commands for submitting package data to PyPI: the "
84- ":ref:`register <package-register>` command for submitting meta-data to PyPI "
85- "and the :ref:`upload <package-upload>` command for submitting distribution "
86- "files. Both commands read configuration data from a special file called a "
87- ":ref:`.pypirc file <pypirc>`."
88- msgstr ""
89-
90- #: ../../distutils/packageindex.rst:58
91- msgid "The ``register`` command"
92- msgstr ""
93-
94- #: ../../distutils/packageindex.rst:60
95- msgid ""
96- "The distutils command :command:`register` is used to submit your "
97- "distribution's meta-data to an index server. It is invoked as follows::"
98- msgstr ""
99-
100- #: ../../distutils/packageindex.rst:65
101- msgid "Distutils will respond with the following prompt::"
102- msgstr ""
103-
104- #: ../../distutils/packageindex.rst:75
105- msgid ""
106- "Note: if your username and password are saved locally, you will not see this"
107- " menu. Also, refer to :ref:`pypirc` for how to store your credentials in a "
108- ":file:`.pypirc` file."
109- msgstr ""
110-
111- #: ../../distutils/packageindex.rst:79
112- msgid ""
113- "If you have not registered with PyPI, then you will need to do so now. You "
114- "should choose option 2, and enter your details as required. Soon after "
115- "submitting your details, you will receive an email which will be used to "
116- "confirm your registration."
117- msgstr ""
118-
119- #: ../../distutils/packageindex.rst:84
120- msgid ""
121- "Once you are registered, you may choose option 1 from the menu. You will be "
122- "prompted for your PyPI username and password, and :command:`register` will "
123- "then submit your meta-data to the index."
124- msgstr ""
125-
126- #: ../../distutils/packageindex.rst:88
127- msgid ""
128- "See :ref:`package-cmdoptions` for options to the :command:`register` "
129- "command."
130- msgstr ""
131-
132- #: ../../distutils/packageindex.rst:94
133- msgid "The ``upload`` command"
134- msgstr ""
135-
136- #: ../../distutils/packageindex.rst:96
137- msgid ""
138- "The distutils command :command:`upload` pushes the distribution files to "
139- "PyPI."
140- msgstr ""
141-
142- #: ../../distutils/packageindex.rst:98
143- msgid ""
144- "The command is invoked immediately after building one or more distribution "
145- "files. For example, the command ::"
146- msgstr ""
147-
148- #: ../../distutils/packageindex.rst:103
149- msgid ""
150- "will cause the source distribution and the Windows installer to be uploaded "
151- "to PyPI. Note that these will be uploaded even if they are built using an "
152- "earlier invocation of :file:`setup.py`, but that only distributions named on"
153- " the command line for the invocation including the :command:`upload` command"
154- " are uploaded."
155- msgstr ""
156-
157- #: ../../distutils/packageindex.rst:108
158- msgid ""
159- "If a :command:`register` command was previously called in the same command, "
160- "and if the password was entered in the prompt, :command:`upload` will reuse "
161- "the entered password. This is useful if you do not want to store a password"
162- " in clear text in a :file:`.pypirc` file."
163- msgstr ""
164-
165- #: ../../distutils/packageindex.rst:113
166- msgid ""
167- "You can use the ``--sign`` option to tell :command:`upload` to sign each "
168- "uploaded file using GPG (GNU Privacy Guard). The :program:`gpg` program "
169- "must be available for execution on the system :envvar:`PATH`. You can also "
170- "specify which key to use for signing using the ``--identity=name`` option."
171- msgstr ""
172-
173- #: ../../distutils/packageindex.rst:118
174- msgid ""
175- "See :ref:`package-cmdoptions` for additional options to the "
176- ":command:`upload` command."
177- msgstr ""
178-
179- #: ../../distutils/packageindex.rst:125
180- msgid "Additional command options"
181- msgstr ""
182-
183- #: ../../distutils/packageindex.rst:127
184- msgid ""
185- "This section describes options common to both the :command:`register` and "
186- ":command:`upload` commands."
187- msgstr ""
188-
189- #: ../../distutils/packageindex.rst:130
190- msgid ""
191- "The ``--repository`` or ``-r`` option lets you specify a PyPI server "
192- "different from the default. For example::"
193- msgstr ""
194-
195- #: ../../distutils/packageindex.rst:135
196- msgid ""
197- "For convenience, a name can be used in place of the URL when the "
198- ":file:`.pypirc` file is configured to do so. For example::"
199- msgstr ""
200-
201- #: ../../distutils/packageindex.rst:140
202- msgid "See :ref:`pypirc` for more information on defining alternate servers."
203- msgstr ""
204-
205- #: ../../distutils/packageindex.rst:142
206- msgid ""
207- "The ``--show-response`` option displays the full response text from the PyPI"
208- " server, which is useful when debugging problems with registering and "
209- "uploading."
210- msgstr ""
211-
212- #: ../../distutils/packageindex.rst:153
213- msgid "The ``.pypirc`` file"
214- msgstr ""
215-
216- #: ../../distutils/packageindex.rst:155
217- msgid ""
218- "The :command:`register` and :command:`upload` commands both check for the "
219- "existence of a :file:`.pypirc` file at the location :file:`$HOME/.pypirc`. "
220- "If this file exists, the command uses the username, password, and repository"
221- " URL configured in the file. The format of a :file:`.pypirc` file is as "
222- "follows:"
223- msgstr ""
224-
225- #: ../../distutils/packageindex.rst:172
226- msgid ""
227- "The *distutils* section defines an *index-servers* variable that lists the "
228- "name of all sections describing a repository."
229- msgstr ""
230-
231- #: ../../distutils/packageindex.rst:175
232- msgid "Each section describing a repository defines three variables:"
233- msgstr ""
234-
235- #: ../../distutils/packageindex.rst:177
236- msgid "*repository*, that defines the url of the PyPI server. Defaults to"
237- msgstr ""
238-
239- #: ../../distutils/packageindex.rst:178
240- msgid "``https://upload.pypi.org/legacy/``."
241- msgstr ""
242-
243- #: ../../distutils/packageindex.rst:179
244- msgid "*username*, which is the registered username on the PyPI server."
245- msgstr ""
246-
247- #: ../../distutils/packageindex.rst:181
248- msgid "*password*, that will be used to authenticate. If omitted the user"
249- msgstr ""
250-
251- #: ../../distutils/packageindex.rst:181
252- msgid "will be prompt to type it when needed."
253- msgstr ""
254-
255- #: ../../distutils/packageindex.rst:183
256- msgid ""
257- "If you want to define another server a new section can be created and listed"
258- " in the *index-servers* variable:"
259- msgstr ""
260-
261- #: ../../distutils/packageindex.rst:203
262- msgid ""
263- "This allows the :command:`register` and :command:`upload` commands to be "
264- "called with the ``--repository`` option as described in :ref:`package-"
265- "cmdoptions`."
266- msgstr ""
267-
268- #: ../../distutils/packageindex.rst:207
269- msgid ""
270- "Specifically, you might want to add the `PyPI Test Repository "
271- "<https://wiki.python.org/moin/TestPyPI>`_ to your ``.pypirc`` to facilitate "
272- "testing before doing your first upload to ``PyPI`` itself."
273- msgstr ""
274-
275- #: ../../distutils/packageindex.rst:215
276- msgid "PyPI package display"
277- msgstr ""
278-
279- #: ../../distutils/packageindex.rst:217
280- msgid ""
281- "The ``long_description`` field plays a special role at PyPI. It is used by "
282- "the server to display a home page for the registered package."
283- msgstr ""
284-
285- #: ../../distutils/packageindex.rst:220
286- msgid ""
287- "If you use the `reStructuredText "
288- "<http://docutils.sourceforge.net/rst.html>`_ syntax for this field, PyPI "
289- "will parse it and display an HTML output for the package home page."
290- msgstr ""
291-
292- #: ../../distutils/packageindex.rst:224
293- msgid ""
294- "The ``long_description`` field can be attached to a text file located in the"
295- " package::"
296- msgstr ""
297-
298- #: ../../distutils/packageindex.rst:235
299- msgid ""
300- "In that case, :file:`README.txt` is a regular reStructuredText text file "
301- "located in the root of the package besides :file:`setup.py`."
302- msgstr ""
303-
304- #: ../../distutils/packageindex.rst:238
305- msgid ""
306- "To prevent registering broken reStructuredText content, you can use the "
307- ":program:`rst2html` program that is provided by the :mod:`docutils` package "
308- "and check the ``long_description`` from the command line:"
309- msgstr ""
310-
311- #: ../../distutils/packageindex.rst:246
312- msgid ""
313- ":mod:`docutils` will display a warning if there's something wrong with your "
314- "syntax. Because PyPI applies additional checks (e.g. by passing ``--no-"
315- "raw`` to ``rst2html.py`` in the command above), being able to run the "
316- "command above without warnings does not guarantee that PyPI will convert the"
317- " content successfully."
32+ msgid "Detailed instructions on using PyPI at :ref:`distributing-index`."
31833msgstr ""
0 commit comments