$ hopla --version
Traceback (most recent call last):
File "/home/m/.local/lib/python3.8/site-packages/click/decorators.py", line 379, in callback
version = metadata.version(package_name) # type: ignore
File "/usr/lib/python3.8/importlib/metadata.py", line 530, in version
return distribution(distribution_name).version
File "/usr/lib/python3.8/importlib/metadata.py", line 503, in distribution
return Distribution.from_name(distribution_name)
File "/usr/lib/python3.8/importlib/metadata.py", line 177, in from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: hopla
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/m/.local/bin/hopla", line 8, in <module>
sys.exit(entry_cmd())
File "/home/m/.local/lib/python3.8/site-packages/hopla/__init__.py", line 78, in entry_cmd
hopla()
File "/home/m/.local/lib/python3.8/site-packages/click/core.py", line 1137, in __call__
return self.main(*args, **kwargs)
File "/home/m/.local/lib/python3.8/site-packages/click/core.py", line 1061, in main
with self.make_context(prog_name, args, **extra) as ctx:
File "/home/m/.local/lib/python3.8/site-packages/click/core.py", line 923, in make_context
self.parse_args(ctx, args)
File "/home/m/.local/lib/python3.8/site-packages/click/core.py", line 1624, in parse_args
rest = super().parse_args(ctx, args)
File "/home/m/.local/lib/python3.8/site-packages/click/core.py", line 1379, in parse_args
value, args = param.handle_parse_result(ctx, opts, args)
File "/home/m/.local/lib/python3.8/site-packages/click/core.py", line 2364, in handle_parse_result
value = self.process_value(ctx, value)
File "/home/m/.local/lib/python3.8/site-packages/click/core.py", line 2326, in process_value
value = self.callback(ctx, self, value)
File "/home/m/.local/lib/python3.8/site-packages/click/decorators.py", line 381, in callback
raise RuntimeError(
RuntimeError: 'hopla' is not installed. Try passing 'package_name' instead.
$ hopla --version
hopla, version 0.0.12a0