list-outdated-packages: Remove.

This tool provides no value over `pip list --outdated`.  It also has a
type error with mypy 0.730, which would be easily fixable, but
removing it is easier.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2019-11-12 15:37:16 -08:00 committed by Tim Abbott
parent 892e69b7ad
commit 1a622f91f9
1 changed files with 0 additions and 22 deletions

View File

@ -1,22 +0,0 @@
#!/usr/bin/env python3
import subprocess
import os
ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
os.chdir(ZULIP_PATH)
output = subprocess.check_output(['pip', 'list', '--outdated', '--format',
'columns']).decode('utf-8').splitlines()
packages_info = output[2:]
for package_line in packages_info:
package_name = package_line.split()[0]
package_current_version = package_line.split()[1]
package_latest_version = package_line.split()[2]
try:
output = subprocess.check_output(['grep', '-r', package_name, 'requirements', '--exclude=*.txt',
'--include=pip.txt']).decode('utf-8')
print(package_name, "|", package_current_version, "|", package_latest_version)
except subprocess.CalledProcessError:
pass