Skip to content

Commit

Permalink
Version info: handle betas
Browse files Browse the repository at this point in the history
  • Loading branch information
clbarnes committed Oct 16, 2019
1 parent 1486517 commit bdf9ec1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pipx/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import argparse
import functools
import logging
from pkg_resources import parse_version
import shlex
import sys
import textwrap
Expand All @@ -29,7 +30,11 @@


__version__ = "0.14.0.0"
__version_info__ = tuple(int(n) for n in __version__.split("."))
_, __version_info__, subver, *_ = parse_version(__version__)._key # type: ignore
if subver:
while len(__version_info__) < 4:
__version_info__ += (0,)
__version_info__ += subver


def print_version() -> None:
Expand Down

0 comments on commit bdf9ec1

Please sign in to comment.