Skip to content

Commit

Permalink
[skip ci] Slight docs improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Nov 3, 2023
1 parent 91ac45f commit c57f87f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Changelog

v2.3.0 (in development)
-----------------------
- Always read `.hg_archival.txt` files using UTF-8 encoding
- Always read :file:`.hg_archival.txt` files using UTF-8 encoding


v2.2.1 (2023-09-22)
Expand Down
8 changes: 5 additions & 3 deletions docs/runtime-version.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ usually also want to expose that version at runtime, usually via a

.. code:: python
try:
import sys
if sys.version_info >= (3, 8):
from importlib.metadata import version
except ImportError:
else:
from importlib_metadata import version
__version__ = version("mypackage")
Expand Down Expand Up @@ -89,7 +91,7 @@ usually also want to expose that version at runtime, usually via a
Should affected file be under version control? **No** **Yes**
Affected file must already exist? **No** **Yes**
Modifies working tree? [#f1]_ **Yes** **No**
Requires configuration in ``setup.py``? **No** **Yes**
Requires configuration in ``setup.{py,cfg}``? **No** **Yes**
Run when installing in editable mode? **Yes** **No**
============================================== ========= ===========

Expand Down

0 comments on commit c57f87f

Please sign in to comment.