docopt-completion 0.1.2__tar.gz → 0.1.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: docopt-completion
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: A completion for the docopt language
5
5
  License: MIT
6
6
  Author: Anders Ingemann
@@ -1,11 +1,11 @@
1
1
  """
2
2
  docopt.completion - A completion script generator for docopt compatible help texts.
3
3
  """
4
+ import importlib.metadata
4
5
 
5
- __version__: str
6
6
  try:
7
- from .version import __version__ # type: ignore
8
- except ImportError:
7
+ __version__ = importlib.metadata.version('docopt-completion')
8
+ except importlib.metadata.PackageNotFoundError:
9
9
  __version__ = '0.0.0-dev'
10
10
 
11
11
  __all__ = []
@@ -1,7 +1,7 @@
1
1
  [tool.poetry]
2
2
  name = "docopt-completion"
3
3
  description = "A completion for the docopt language"
4
- version = "0.1.2"
4
+ version = "0.1.3"
5
5
  authors = ["Anders Ingemann <anders@ingemann.de>"]
6
6
  license = "MIT"
7
7
  readme = "docs/README.pypi.md"