Open DavidLSmyth opened 4 years ago
Thank you very much for your suggestion! I was also thinking about a similar approach. But one concern here is that changing the name will also change the repository URL, which may not be desirable.
Another possible approach in my mind is to create a new fork project with a different name with a slightly different goal, in which the helper functions (currently under the utils
directory) can be organized in a more module-like manner.
I think you can actually avoid needing to change the repository URL, git should automatically redirect to the new URL (see here). You could also just add a line in the readme for existing users to update the remote url using
git remote set-url origin new_url
which is pretty straightforward. I'd also recommend updating your __init__.py file in utils as it breaks things when using this repo as a dependency. Perhaps you'd consider trying to re-factor so that this can be cleanly installed using pip? Like you say, if you organize in a more module-like manner it could be more useful. Thanks for the great repo by the way!
At the moment to use this as a dependency in a project it's necessary to use importlib or some other workaround to import modules since python is not a fan of hypens in module names. Renaming may be a simple solution