-
Notifications
You must be signed in to change notification settings - Fork 18
Make Watcher3 pip installable and unvendor libs. #206
base: develop
Are you sure you want to change the base?
Conversation
@barbequesauce Let me know how you feel about this PR. |
This PR beings the implementation of a system to meet the goal of #161 using |
I think you shouldn't unvendor some libs which were changed in Watcher3, check the changes: I think PTN got many changes, I would like to replace it with something else as it isn't maintained, so probably it should never be unvendored. The changes on cheroot and transmissionrpc may not be needed if they are related to some bug which is fixed in a newer version, but it should be checked before unvendoring them |
About PTN, another way to unbundle it would be creating a fork and pushing our changes there. |
@scambra like in #205 I'm not yet addressing the issues in mods.txt, mainly just to provide a functional proof of concept before it makes its way into master. Some of the changes may be obsolete. For example I'll be using my fork of |
@scambra oh and I forgot to say, thanks for pointing out the |
@labrys agree with you, I don't like vendoring, I had to upgrade some lib and it's a pain. Although I think vendoring PTN is ok as it's not maintained, and probably is better to replace it with guessit or something else later. Although forking it with our changes is probably better than vendoring. If the changes on transmission or cheroot are not needed anymore, it's great, otherwise we should send a PR, and fork or monkey patch them until fix is merged into upstream. |
@scambra @labrys did either of you had further thoughts on PTN? Other than that this patch has been running nicely on my system since PR submission, I'm ok to merge it other than the PTN question... transmission changes dont seem to be needed (tx is my torrent client of choice) and cheroot hasn't shown any issues. |
@barbequesauce In my opinion the easiest path forward is forking PTN. While replacing it in the future would probably advisable, there's no reason to delay this for a significant change like that. |
I agree, I wanted to fork PTN and push the changes, but I had no time yesterday |
@labrys Can you change parse-torrent-name with parse-torrent-title? |
This begins the work on making Watcher3 pip installable. It opts for setuptools instead of Poetry. Steps to install:
The above steps are currently functional. I'd like to continue development to make the project fully pip-installable through a command like
pip install watcher3@git+https://github.com/barbequesauce/watcher3@master
or if you create a pypi package simplypip install watcher3
. This would completely remove the requirement to git clone the repo and would give the added benefit of being able to upgrade Watcher3 withpip install --upgrade watcher3
.