From d50f04e82b13bcc4fccfe3e6bbcce13a665b5197 Mon Sep 17 00:00:00 2001 From: Shravan Tata Date: Wed, 21 Apr 2021 14:06:08 +0200 Subject: [PATCH] Updated dependencies.rst Based on PEP 508 standard, external dependencies that are not on PyPI should be listed in install_requires with the syntax 'package_name @ URL'. A separate dependency_links list is no longer the standard --- dependencies.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dependencies.rst b/dependencies.rst index 3ae7596..fffe2d3 100644 --- a/dependencies.rst +++ b/dependencies.rst @@ -63,12 +63,12 @@ When we publish this to PyPI, calling ``pip install funniest`` or similar will a Packages Not On PyPI ~~~~~~~~~~~~~~~~~~~~ -Sometimes you'll want to use packages that are properly arranged with setuptools, but aren't published to PyPI. In those cases, you can specify a list of one or more ``dependency_links`` URLs where the package can be downloaded, along with some additional hints, and setuptools will find and install the package correctly. +Sometimes you'll want to use packages that are properly arranged with setuptools, but aren't published to PyPI. In those cases, you can directly specify in ``install_requries`` with the syntax ``package_name @ URL`` (checkout PEP 508 for syntax) the URLs where the package can be downloaded, along with some additional hints, and setuptools will find and install the package correctly. For example, if a library is published on GitHub, you can specify it like:: setup( ... - dependency_links=['http://github.com/user/repo/tarball/master#egg=package-1.0'] + install_requires=['repo @ git+http://github.com/user/repo/'] ... )