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