Skip to content

Commit

Permalink
User telegram.__version__ in Sphinx Configuration
Browse files Browse the repository at this point in the history
One place less to update during the release :)
  • Loading branch information
Bibo-Joshi committed May 20, 2024
1 parent 6fc45a8 commit 006224c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@
# built documents.
#
# The short X.Y version.
version = "21.2" # telegram.__version__[:3]

# Import needs to be below the sys.path.insert above
import telegram # noqa: E402

version = telegram.__version__
# The full version, including alpha/beta/rc tags.
release = "21.2" # telegram.__version__
release = telegram.__version__

# If your documentation needs a minimal Sphinx version, state it here.
needs_sphinx = "6.1.3"
Expand Down

0 comments on commit 006224c

Please sign in to comment.