File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -200,16 +200,15 @@ import package versions are consistent with each other can review the
200
200
:ref: `single-source-version ` discussion for potential approaches to doing so.
201
201
202
202
As import packages and modules are not *required * to publish runtime
203
- version information in this way (see the rejected proposal in
203
+ version information in this way (see the withdrawn proposal in
204
204
:pep: `PEP 396 <396 >`), the ``__version__ `` attribute should either only be
205
205
queried with interfaces that are known to provide it (such as a project
206
206
querying its own version or the version of one of its direct dependencies),
207
207
or else the querying code should be designed to handle the case where the
208
208
attribute is missing [#fallback-to-dist-version ]_.
209
209
210
210
Some projects may need to publish version information for external APIs
211
- that don't meet the requirements for Python distribution package
212
- :ref: `version specifiers <version-specifiers >`. Such projects should
211
+ that aren't the version of the module itself. Such projects should
213
212
define their own project-specific ways of obtaining the relevant information
214
213
at runtime. For example, the standard library's :mod: `ssl ` module offers
215
214
multiple ways to access the underlying OpenSSL library version::
You can’t perform that action at this time.
0 commit comments