I'm doing my first real project on Github (in Python) and I'm using functions from two other repos (which I'll call foo and bar) as well as rewriting some of their modules.
I have two options.
- Option 1: separate my code and theirs, rewrite what I need and import the rest.
Structure on my computer:
.
├── foo
├── bar
└── mypackage
Structure on Github (When someone clones my repo then they need to clone foo and bar as well)
.
└── mypackage
- Option 2: mix my code and theirs, such that it may be indistiguishable that I used another code.
Structure on my computer and on Github:
.
└── mypackage
I feel like option 2 is simpler since my code is standalone, but I also feel like it does not make clear what I reused and what I coded myself.
Of course in both options I would mention foo and bar in my README. Foo has licence Apache 2.0 and bar has licence CC BY-NC-SA 4.0.
So my question is: which option should I choose?