Skip to content

Commit 55995ee

Browse files
authored
Merge pull request #1620 from ncoghlan/pep-396-status-change
PEP 396 was reclassifed as Withdrawn
2 parents 8ffa0b5 + 7d2a208 commit 55995ee

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

source/discussions/versioning.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,16 +200,15 @@ import package versions are consistent with each other can review the
200200
:ref:`single-source-version` discussion for potential approaches to doing so.
201201

202202
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
204204
:pep:`PEP 396 <396>`), the ``__version__`` attribute should either only be
205205
queried with interfaces that are known to provide it (such as a project
206206
querying its own version or the version of one of its direct dependencies),
207207
or else the querying code should be designed to handle the case where the
208208
attribute is missing [#fallback-to-dist-version]_.
209209

210210
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
213212
define their own project-specific ways of obtaining the relevant information
214213
at runtime. For example, the standard library's :mod:`ssl` module offers
215214
multiple ways to access the underlying OpenSSL library version::

0 commit comments

Comments
 (0)