botletics / SIM7000-LTE-Shield

Botletics SIM7000 LTE CAT-M1/NB-IoT Shield for Arduino
https://www.botletics.com/products/sim7000-shield
GNU General Public License v3.0
483 stars 215 forks source link

Set up for inclusion as an Arduino library. #314

Closed bendory closed 2 years ago

bendory commented 2 years ago

Documentation is available here.

This PR will work for submission as-is, but it turns out there are two issues that make it a little uglier than desired:

1) I've re-arranged everything to comply with the Library layout, and that means that I've broken all existing deep links into your Github repo. That's not friendly.

2) I've included everything in your original repo under the /extras/ directory, but most of this is not needed for the Arduino library, and it makes the download unnecessarily large.

IMO, a cleaner way to prepare the Arduino Library submission would be to:

1) Fork your repo into a new botletics/SIM7000-Shield-Library (or you pick some other name). 2) Delete all the non-code from there -- this is likely the entire /extras/ subdir. 3) Migrate code to the /src/ directory as I have done. 4) Update botletics/SIM7000-LTE-Shield to delete the /Code/ directory; in its place, add a README that sends users to the new Library.

So this is your choice here as the Botletics owner -- you can accept this PR as is and I'll follow it with a PR for submission OR set up a fork (or even a completely empty repo) called botletics/SIM7000-Shield-Library (or feel free to pick some other name that you like) and I'll do the rest of the work to prepare the submission to Arduino.

(There is a third option -- I can just fork your repo and prepare the Library submission completely independently from you, but I have to be honest and admit that I'm unlikely to keep my fork in sync with your ongoing development of the source code.)

LMK how I can help!

botletics commented 2 years ago

Thank you so much, I really appreciate it! I'll aim for the cleaner option, but I'm not the most GitHub savvy, so I'll see what I can do.

botletics commented 2 years ago

OK, so I created a new repo with GitHub Desktop for botletics/SIM7000-Shield-Library. I rearranged the files according to how you described with /src/ and /extras/. Please let me know if I did it correctly and I'll proceed to delete code from this repo and replace with README.

botletics commented 2 years ago

Some questions:

Thanks! 😁

bendory commented 2 years ago
  • Would it be better to delete the /extras/ directory in the new repo and just manage that here in this repo (along with the wiki), so I don't have copies in 2 different places?

Yes, I would do exactly that. Specifically:

Once you've got the above, ping me and I'll make the Arduino submission.

bendory commented 2 years ago

Actually, all that's needed to move forward with the Library submission is in this PR; if you accept that PR, then my above comments are reduced to:

But neither of these are blockers for the library submission -- once the PR is accepted, I can go ahead and submit.

botletics commented 2 years ago

Thanks! I merged the PR on the new repo!

botletics commented 2 years ago

What about versioning/releases though? When I create new releases, will it show up in Arduino IDE?

bendory commented 2 years ago

I think you're going to do releases by setting up tags in the new repo -- will send you details once I figure it all out.

botletics commented 2 years ago

OK thank you!