Python setuptools: How can I list a private repository under install_requires?

前端 未结 8 1456
南旧
南旧 2020-12-04 15:07

I am creating a setup.py file for a project which depends on private GitHub repositories. The relevant parts of the file look like this:

from s         


        
8条回答
  •  无人及你
    2020-12-04 15:43

    I was trying to get this to work for installing with pip, but the above was not working for me. From [1] I understood the PEP508 standard should be used, from [2] I retrieved an example which actually does work (at least for my case).

    Please note; this is with pip 20.0.2 on Python 3.7.4

    setup(
        name='',
    ...
        install_requires=[
            '',
             # Private repository
            ' @ git+ssh://git@github.com//@',
             # Public repository
            ' @ git+https://github.com//@',
        ],
    )
    

    After specifying my package this way installation works fine (also with -e settings and without the need to specify --process-dependency-links).

    References [1] https://github.com/pypa/pip/issues/4187 [2] https://github.com/pypa/pip/issues/5566

提交回复
热议问题