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