@@ -11,7 +11,7 @@ msgid ""
11
11
msgstr ""
12
12
"Project-Id-Version : Python 3.9\n "
13
13
"Report-Msgid-Bugs-To : \n "
14
- "POT-Creation-Date : 2021-05-20 06:27 +0000\n "
14
+ "POT-Creation-Date : 2021-06-28 06:43 +0000\n "
15
15
"PO-Revision-Date : 2019-09-01 14:41+0000\n "
16
16
"Last-Translator : tomo, 2019\n "
17
17
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -25,13 +25,17 @@ msgstr ""
25
25
msgid "Using :mod:`!importlib.metadata`"
26
26
msgstr ""
27
27
28
- #: ../../library/importlib.metadata.rst:13
28
+ #: ../../library/importlib.metadata.rst:10
29
+ msgid "**Source code:** :source:`Lib/importlib/metadata.py`"
30
+ msgstr ""
31
+
32
+ #: ../../library/importlib.metadata.rst:15
29
33
msgid ""
30
34
"This functionality is provisional and may deviate from the usual version "
31
35
"semantics of the standard library."
32
36
msgstr ""
33
37
34
- #: ../../library/importlib.metadata.rst:16
38
+ #: ../../library/importlib.metadata.rst:18
35
39
msgid ""
36
40
"``importlib.metadata`` is a library that provides for access to installed "
37
41
"package metadata. Built in part on Python's import system, this library "
@@ -42,7 +46,7 @@ msgid ""
42
46
"efficient ``pkg_resources`` package."
43
47
msgstr ""
44
48
45
- #: ../../library/importlib.metadata.rst:25
49
+ #: ../../library/importlib.metadata.rst:27
46
50
msgid ""
47
51
"By \" installed package\" we generally mean a third-party package installed "
48
52
"into Python's ``site-packages`` directory via tools such as `pip "
@@ -53,52 +57,52 @@ msgid ""
53
57
" Through an extension mechanism, the metadata can live almost anywhere."
54
58
msgstr ""
55
59
56
- #: ../../library/importlib.metadata.rst:36
60
+ #: ../../library/importlib.metadata.rst:38
57
61
msgid "Overview"
58
62
msgstr "概要"
59
63
60
- #: ../../library/importlib.metadata.rst:38
64
+ #: ../../library/importlib.metadata.rst:40
61
65
msgid ""
62
66
"Let's say you wanted to get the version string for a package you've "
63
67
"installed using ``pip``. We start by creating a virtual environment and "
64
68
"installing something into it:"
65
69
msgstr ""
66
70
67
- #: ../../library/importlib.metadata.rst:48
71
+ #: ../../library/importlib.metadata.rst:50
68
72
msgid "You can get the version string for ``wheel`` by running the following:"
69
73
msgstr ""
70
74
71
- #: ../../library/importlib.metadata.rst:57
75
+ #: ../../library/importlib.metadata.rst:59
72
76
msgid ""
73
77
"You can also get the set of entry points keyed by group, such as "
74
78
"``console_scripts``, ``distutils.commands`` and others. Each group contains"
75
79
" a sequence of :ref:`EntryPoint <entry-points>` objects."
76
80
msgstr ""
77
81
78
- #: ../../library/importlib.metadata.rst:61
82
+ #: ../../library/importlib.metadata.rst:63
79
83
msgid "You can get the :ref:`metadata for a distribution <metadata>`::"
80
84
msgstr ""
81
85
82
- #: ../../library/importlib.metadata.rst:66
86
+ #: ../../library/importlib.metadata.rst:68
83
87
msgid ""
84
88
"You can also get a :ref:`distribution's version number <version>`, list its "
85
89
":ref:`constituent files <files>`, and get a list of the distribution's "
86
90
":ref:`requirements`."
87
91
msgstr ""
88
92
89
- #: ../../library/importlib.metadata.rst:72
93
+ #: ../../library/importlib.metadata.rst:74
90
94
msgid "Functional API"
91
95
msgstr "機能 API"
92
96
93
- #: ../../library/importlib.metadata.rst:74
97
+ #: ../../library/importlib.metadata.rst:76
94
98
msgid "This package provides the following functionality via its public API."
95
99
msgstr ""
96
100
97
- #: ../../library/importlib.metadata.rst:80
101
+ #: ../../library/importlib.metadata.rst:82
98
102
msgid "Entry points"
99
103
msgstr ""
100
104
101
- #: ../../library/importlib.metadata.rst:82
105
+ #: ../../library/importlib.metadata.rst:84
102
106
msgid ""
103
107
"The ``entry_points()`` function returns a dictionary of all entry points, "
104
108
"keyed by group. Entry points are represented by ``EntryPoint`` instances; "
@@ -108,7 +112,7 @@ msgid ""
108
112
"``.value`` attribute::"
109
113
msgstr ""
110
114
111
- #: ../../library/importlib.metadata.rst:106
115
+ #: ../../library/importlib.metadata.rst:108
112
116
msgid ""
113
117
"The ``group`` and ``name`` are arbitrary values defined by the package "
114
118
"author and usually a client will wish to resolve all entry points for a "
@@ -118,37 +122,37 @@ msgid ""
118
122
"their definition, and usage."
119
123
msgstr ""
120
124
121
- #: ../../library/importlib.metadata.rst:116
125
+ #: ../../library/importlib.metadata.rst:118
122
126
msgid "Distribution metadata"
123
127
msgstr ""
124
128
125
- #: ../../library/importlib.metadata.rst:118
129
+ #: ../../library/importlib.metadata.rst:120
126
130
msgid ""
127
131
"Every distribution includes some metadata, which you can extract using the "
128
132
"``metadata()`` function::"
129
133
msgstr ""
130
134
131
- #: ../../library/importlib.metadata.rst:123
135
+ #: ../../library/importlib.metadata.rst:125
132
136
msgid ""
133
137
"The keys of the returned data structure [#f1]_ name the metadata keywords, "
134
138
"and their values are returned unparsed from the distribution metadata::"
135
139
msgstr ""
136
140
137
- #: ../../library/importlib.metadata.rst:133
141
+ #: ../../library/importlib.metadata.rst:135
138
142
msgid "Distribution versions"
139
143
msgstr ""
140
144
141
- #: ../../library/importlib.metadata.rst:135
145
+ #: ../../library/importlib.metadata.rst:137
142
146
msgid ""
143
147
"The ``version()`` function is the quickest way to get a distribution's "
144
148
"version number, as a string::"
145
149
msgstr ""
146
150
147
- #: ../../library/importlib.metadata.rst:145
151
+ #: ../../library/importlib.metadata.rst:147
148
152
msgid "Distribution files"
149
153
msgstr ""
150
154
151
- #: ../../library/importlib.metadata.rst:147
155
+ #: ../../library/importlib.metadata.rst:149
152
156
msgid ""
153
157
"You can also get the full set of files contained within a distribution. The"
154
158
" ``files()`` function takes a distribution package name and returns all of "
@@ -158,11 +162,11 @@ msgid ""
158
162
"For example::"
159
163
msgstr ""
160
164
161
- #: ../../library/importlib.metadata.rst:163
165
+ #: ../../library/importlib.metadata.rst:165
162
166
msgid "Once you have the file, you can also read its contents::"
163
167
msgstr ""
164
168
165
- #: ../../library/importlib.metadata.rst:174
169
+ #: ../../library/importlib.metadata.rst:176
166
170
msgid ""
167
171
"In the case where the metadata file listing files (RECORD or SOURCES.txt) is"
168
172
" missing, ``files()`` will return ``None``. The caller may wish to wrap "
@@ -172,51 +176,51 @@ msgid ""
172
176
" known to have the metadata present."
173
177
msgstr ""
174
178
175
- #: ../../library/importlib.metadata.rst:185
179
+ #: ../../library/importlib.metadata.rst:187
176
180
msgid "Distribution requirements"
177
181
msgstr ""
178
182
179
- #: ../../library/importlib.metadata.rst:187
183
+ #: ../../library/importlib.metadata.rst:189
180
184
msgid ""
181
185
"To get the full set of requirements for a distribution, use the "
182
186
"``requires()`` function::"
183
187
msgstr ""
184
188
185
- #: ../../library/importlib.metadata.rst:195
189
+ #: ../../library/importlib.metadata.rst:197
186
190
msgid "Distributions"
187
191
msgstr ""
188
192
189
- #: ../../library/importlib.metadata.rst:197
193
+ #: ../../library/importlib.metadata.rst:199
190
194
msgid ""
191
195
"While the above API is the most common and convenient usage, you can get all"
192
196
" of that information from the ``Distribution`` class. A ``Distribution`` is"
193
197
" an abstract object that represents the metadata for a Python package. You "
194
198
"can get the ``Distribution`` instance::"
195
199
msgstr ""
196
200
197
- #: ../../library/importlib.metadata.rst:205
201
+ #: ../../library/importlib.metadata.rst:207
198
202
msgid ""
199
203
"Thus, an alternative way to get the version number is through the "
200
204
"``Distribution`` instance::"
201
205
msgstr ""
202
206
203
- #: ../../library/importlib.metadata.rst:211
207
+ #: ../../library/importlib.metadata.rst:213
204
208
msgid ""
205
209
"There are all kinds of additional metadata available on the ``Distribution``"
206
210
" instance::"
207
211
msgstr ""
208
212
209
- #: ../../library/importlib.metadata.rst:219
213
+ #: ../../library/importlib.metadata.rst:221
210
214
msgid ""
211
215
"The full set of available metadata is not described here. See :pep:`566` "
212
216
"for additional details."
213
217
msgstr ""
214
218
215
- #: ../../library/importlib.metadata.rst:224
219
+ #: ../../library/importlib.metadata.rst:226
216
220
msgid "Extending the search algorithm"
217
221
msgstr ""
218
222
219
- #: ../../library/importlib.metadata.rst:226
223
+ #: ../../library/importlib.metadata.rst:228
220
224
msgid ""
221
225
"Because package metadata is not available through :data:`sys.path` searches,"
222
226
" or package loaders directly, the metadata for a package is found through "
@@ -225,14 +229,14 @@ msgid ""
225
229
"path finders <meta path finder>` on :data:`sys.meta_path`."
226
230
msgstr ""
227
231
228
- #: ../../library/importlib.metadata.rst:232
232
+ #: ../../library/importlib.metadata.rst:234
229
233
msgid ""
230
234
"The default ``PathFinder`` for Python includes a hook that calls into "
231
235
"``importlib.metadata.MetadataPathFinder`` for finding distributions loaded "
232
236
"from typical file-system-based paths."
233
237
msgstr ""
234
238
235
- #: ../../library/importlib.metadata.rst:236
239
+ #: ../../library/importlib.metadata.rst:238
236
240
msgid ""
237
241
"The abstract class :py:class:`importlib.abc.MetaPathFinder` defines the "
238
242
"interface expected of finders by Python's import system. "
@@ -242,14 +246,14 @@ msgid ""
242
246
"base class, which defines this abstract method::"
243
247
msgstr ""
244
248
245
- #: ../../library/importlib.metadata.rst:250
249
+ #: ../../library/importlib.metadata.rst:252
246
250
msgid ""
247
251
"The ``DistributionFinder.Context`` object provides ``.path`` and ``.name`` "
248
252
"properties indicating the path to search and name to match and may supply "
249
253
"other relevant context."
250
254
msgstr ""
251
255
252
- #: ../../library/importlib.metadata.rst:254
256
+ #: ../../library/importlib.metadata.rst:256
253
257
msgid ""
254
258
"What this means in practice is that to support finding distribution package "
255
259
"metadata in locations other than the file system, subclass ``Distribution`` "
@@ -258,11 +262,11 @@ msgid ""
258
262
"method."
259
263
msgstr ""
260
264
261
- #: ../../library/importlib.metadata.rst:267
265
+ #: ../../library/importlib.metadata.rst:269
262
266
msgid "Footnotes"
263
267
msgstr "脚注"
264
268
265
- #: ../../library/importlib.metadata.rst:268
269
+ #: ../../library/importlib.metadata.rst:270
266
270
msgid ""
267
271
"Technically, the returned distribution metadata object is an "
268
272
":class:`email.message.EmailMessage` instance, but this is an implementation "
0 commit comments