From dbee4ec4ce19c8b77f442042d5504029c75ade8f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=A9ry=20Ogam?= To use this server with pip, run the the following command:
-pip install --extra-index-url {{URL}}simple/ PACKAGE [PACKAGE2...]
+pip install --index-url {{URL}}simple/ PACKAGE [PACKAGE2...]
To use this server with easy_install, run the the following command:
-easy_install -i {{URL}}simple/ PACKAGE +easy_install --index-url {{URL}}simple/ PACKAGE [PACKAGE2...]
The complete list of all packages can be found here diff --git a/tests/test_app.py b/tests/test_app.py index eababa9..b42187d 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -126,7 +126,7 @@ def test_root_count(root, testapp): def test_root_hostname(testapp): resp = testapp.get("/", headers={"Host": "systemexit.de"}) - resp.mustcontain("easy_install -i http://systemexit.de/simple/ PACKAGE") + resp.mustcontain("easy_install --index-url http://systemexit.de/simple/ PACKAGE") # go("http://systemexit.de/") @@ -307,18 +307,18 @@ def test_simple_index_case(root, testapp): def test_nonroot_root(testpriv): resp = testpriv.get("/priv/", headers={"Host": "nonroot"}) - resp.mustcontain("easy_install -i http://nonroot/priv/simple/ PACKAGE") + resp.mustcontain("easy_install --index-url http://nonroot/priv/simple/ PACKAGE") def test_nonroot_root_with_x_forwarded_host(testapp): resp = testapp.get("/", headers={"X-Forwarded-Host": "forward.ed/priv/"}) - resp.mustcontain("easy_install -i http://forward.ed/priv/simple/ PACKAGE") + resp.mustcontain("easy_install --index-url http://forward.ed/priv/simple/ PACKAGE") resp.mustcontain("""here""") def test_nonroot_root_with_x_forwarded_host_without_trailing_slash(testapp): resp = testapp.get("/", headers={"X-Forwarded-Host": "forward.ed/priv"}) - resp.mustcontain("easy_install -i http://forward.ed/priv/simple/ PACKAGE") + resp.mustcontain("easy_install --index-url http://forward.ed/priv/simple/ PACKAGE") resp.mustcontain("""here""")