image that another Open-Source project on Github provides some parts that I would like to reuse in my project, like
- a few stylesheets,
- a CSS,
- a small module, or
- a LaTeX template.
All I need is a small subset of the other project. Often the scope and functionality of the other project is very far from mine.
What will be the best way to organize this from a practical (assuming the legal perspective is covered by the existing license)? Ideally, merging improvements from the upstream repository and sending pull requests for local improvements I create back to the original project would remain possible.
a) I could add the other Github repository to the requirements.txt of my project, install it and optionally delete all the parts that I do not need after installation in my installation procedure (setup.py etc.). b) I could fork the other Github repository, reduce my fork thereof to the files I need, and add my fork to the requirements of my new project.
I found Linking a single file from another git repository, but his does not really address my needs.
Of course, it is risky to establish a rigid link to the internal organization of another project. But that is not the issue in here.
Any ideas?