summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml14
-rwxr-xr-xez_setup.py64
-rw-r--r--requirements.txt1
3 files changed, 2 insertions, 77 deletions
diff --git a/.travis.yml b/.travis.yml
index 38c43bdf..06a9fc99 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,14 +1,2 @@
-language: python
-python:
- - 2.6
- - 2.7
- - 3.3
- - 3.4
- - 3.5
- - pypy
- - pypy3
-env:
- - ""
- - LC_ALL=C LC_CTYPE=C
script:
- - py.test --flakes
+ - touch ez_setup.py
diff --git a/ez_setup.py b/ez_setup.py
index 39d299d2..a86d3000 100755
--- a/ez_setup.py
+++ b/ez_setup.py
@@ -1,65 +1,3 @@
#!/usr/bin/env python
-"""
-Setuptools bootstrapping installer, reliant on pip and providing
-nominal compatibility with the prior interface.
-
-Maintained at https://github.com/pypa/setuptools/tree/bootstrap.
-
-Don't use this script. Instead, just invoke pip commands to install
-or update setuptools.
-"""
-
-import sys
-import warnings
-
-
-def use_setuptools(version=None, **kwargs):
- """
- A minimally-compatible version of ez_setup.use_setuptools
- """
- if kwargs:
- msg = "ignoring arguments: {keys}".format(keys=list(kwargs.keys()))
- warnings.warn(msg)
-
- requirement = _requirement(version)
- _pip_install(requirement)
-
- # ensure that the package resolved satisfies the requirement
- __import__('pkg_resources').require(requirement)
-
-
-def download_setuptools(*args, **kwargs):
- msg = (
- "download_setuptools is no longer supported; "
- "use `pip download setuptools` instead."
- )
- raise NotImplementedError(msg)
-
-
-def _requirement(version):
- req = 'setuptools'
- if version:
- req += '>=' + version
- return req
-
-
-def _pip_install(*args):
- args = ('install', '--upgrade') + args
- __import__('pip').main(list(args))
-
-
-def _check_sys_argv():
- if not sys.argv[1:]:
- return
-
- msg = (
- "parameters to ez_setup are no longer supported; "
- "invoke pip directly to customize setuptools install."
- )
- raise NotImplementedError(msg)
-
-
-if __name__ == '__main__':
- _check_sys_argv()
- raise SystemExit(_pip_install('setuptools'))
+raise NotImplementedError("ez_setup is deprecated; use pip to bootstrap")
diff --git a/requirements.txt b/requirements.txt
deleted file mode 100644
index da36e09d..00000000
--- a/requirements.txt
+++ /dev/null
@@ -1 +0,0 @@
-pytest-flakes