Skip to content

Commit

Permalink
release 2.0.4: manually manage version numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
jquast committed Jul 23, 2023
1 parent 309b5d0 commit 5fbc6f7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
version = "2.0"

# The full version, including alpha/beta/rc tags.
release = "2.0.3"
release = "2.0.4" # keep in sync with setup.py and telnetlib3/accessories.py !!

# The language for content auto-generated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
3 changes: 3 additions & 0 deletions docs/history.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
History
=======
2.0.4
* change: stop using setuptools library to get current software version

2.0.3
* bugfix: NameError: when debug=True is used with asyncio.run, :ghissue:`75`

Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ def _get_long_description(fname, encoding="utf8"):

setup(
name="telnetlib3",
# keep in sync w/docs/conf.py manually for now, please!
version="2.0.3",
version="2.0.4", # keep in sync with docs/conf.py and telnetlib3/accessories.py !!
url="http://telnetlib3.rtfd.org/",
license="ISC",
author="Jeff Quast",
Expand Down
3 changes: 1 addition & 2 deletions telnetlib3/accessories.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Accessory functions."""
# std imports
import pkg_resources
import importlib
import logging
import asyncio
Expand All @@ -18,7 +17,7 @@


def get_version():
return pkg_resources.get_distribution("telnetlib3").version
return "2.0.4" # keep in sync with setup.py and docs/conf.py !!


def encoding_from_lang(lang):
Expand Down

0 comments on commit 5fbc6f7

Please sign in to comment.