Stop executing python setup.py install
It's deprecated in favor of pip install.
MODIFY
README.rst
README.rst
@@ -55,7 +55,7 @@ Alternatively, you can grab the latest source code from `GitHub <https://github.
.. code-block:: bash
$ git clone git://github.com/urllib3/urllib3.git
- $ python setup.py install
+ $ pip install .
Documentation

MODIFY
docs/index.rst
docs/index.rst
@@ -87,7 +87,7 @@ Alternatively, you can grab the latest source code from `GitHub <https://github.
.. code-block:: bash
$ git clone git://github.com/urllib3/urllib3.git
- $ python setup.py install
+ $ pip install .
Usage
-----

MODIFY
noxfile.py
noxfile.py
@@ -61,7 +61,7 @@ def test(session: nox.Session) -> None:
def unsupported_python2(session: nox.Session) -> None:
# Can't check both returncode and output with session.run
process = subprocess.run(
- ["python", "setup.py", "install"],
+ ["pip", "install", "."],
env={**session.env},
text=True,
capture_output=True,

Stop executing python setup.py install (#2539)

It's deprecated in favor of pip install.