1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Remove get_distribution() since it needs the package installed and breaks the coverage test at built time
--- a/pglast/__main__.py
+++ b/pglast/__main__.py
@@ -54,11 +54,9 @@ def workhorse(args):
def main(options=None):
from argparse import ArgumentParser
- from pkg_resources import get_distribution
from .parser import get_postgresql_version
- version = '%s, with PostgreSQL %s parser' % (
- get_distribution('pglast').version,
+ version = 'with PostgreSQL %s parser' % (
'.'.join(str(p) for p in get_postgresql_version()))
parser = ArgumentParser(description="PostgreSQL language prettifier")
|