Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# serve to show the default.

import sphinx_nameko_theme
import pkg_resources
import importlib

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down Expand Up @@ -58,7 +58,7 @@
# built documents.
#
# The short X.Y version.
version = pkg_resources.get_distribution('nameko').version
version = importlib.metadata.version('nameko')
# The full version, including alpha/beta/rc tags.
release = version

Expand Down
4 changes: 2 additions & 2 deletions nameko/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from functools import partial

import yaml
from pkg_resources import get_distribution
import importlib

from nameko.exceptions import CommandError, ConfigurationError

Expand Down Expand Up @@ -79,7 +79,7 @@ def setup_parser():
'-v',
'--version',
action='version',
version=get_distribution('nameko').version
version=importlib.metadata.version('nameko')
)
subparsers = parser.add_subparsers()

Expand Down