[Python] Best practice when adding foreign modules to a git repo [closed]

Discussão em 'Python' iniciado por Stack, Abril 19, 2025.

  1. Stack

    Stack Membro Participativo

    I have written a program which i want to share with others.

    The program uses numpy to generate random numbers.

    Now that I am done with the program, I would like to create a GitHub repository so it's easy to access for anyone who may be interested.

    My question is, what is the best way to add numpy to my repository, such that others can easily access it?

    I am of course aware that accessing numpy isn't hard, I have written my README in such a way that people who are unfamiliar with python should understand to use pip to download numpy.

    I am also aware of git submodules.

    But these solution rely on the continuedavailability of the numpy github repository, is there a good practice to "carry" a dependency independent of its parent repository?

    Of course I could just copy numpy and add it to my repository, but I figured there would be a more elegant solution. Or am I just worrying too much in the first place?

    Continue reading...

Compartilhe esta Página