summaryrefslogtreecommitdiff
path: root/.ci/pypi-check.py
diff options
context:
space:
mode:
authorElvis Pranskevichus <elvis@magic.io>2020-04-22 22:33:12 -0700
committerElvis Pranskevichus <elvis@magic.io>2020-04-22 22:33:12 -0700
commita79c02ecdf2ec7b8bfb84c8af42691029a35829d (patch)
tree031480cd1d44ee55db00e2dd485f402051bdc0bb /.ci/pypi-check.py
parente7f341db0336870c09827b3159ed3a92ef7f64ac (diff)
downloadimmutables-a79c02ecdf2ec7b8bfb84c8af42691029a35829d.tar.gz
immutables-a79c02ecdf2ec7b8bfb84c8af42691029a35829d.zip
Drop Travis and Appveyor CI
Switch to Github Actions exclusively
Diffstat (limited to '.ci/pypi-check.py')
-rwxr-xr-x.ci/pypi-check.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/.ci/pypi-check.py b/.ci/pypi-check.py
deleted file mode 100755
index 1b9c11c..0000000
--- a/.ci/pypi-check.py
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/bin/env python3
-
-
-import argparse
-import sys
-import xmlrpc.client
-
-
-def main():
- parser = argparse.ArgumentParser(description='PyPI package checker')
- parser.add_argument('package_name', metavar='PACKAGE-NAME')
-
- parser.add_argument(
- '--pypi-index-url',
- help=('PyPI index URL.'),
- default='https://pypi.python.org/pypi')
-
- args = parser.parse_args()
-
- pypi = xmlrpc.client.ServerProxy(args.pypi_index_url)
- releases = pypi.package_releases(args.package_name)
-
- if releases:
- print(next(iter(sorted(releases, reverse=True))))
-
- return 0
-
-
-if __name__ == '__main__':
- sys.exit(main())