Hi, your project aerialbot requires "tweepy==3.10.0" in its dependency. After analyzing the source code, we found that the following versions of tweepy can also be suitable without affecting your project, i.e., tweepy 3.9.0. Therefore, we suggest to loosen the dependency on tweepy from "tweepy==3.10.0" to "tweepy>=3.9.0,<=3.10.0" to avoid any possible conflict for importing more packages or for downstream projects that may use aerialbot.
May I pull a request to further loosen the dependency on tweepy?
By the way, could you please tell us whether such dependency analysis may be potentially helpful for maintaining dependencies easier during your development?
We also give our detailed analysis as follows for your reference:
Your project aerialbot directly uses 3 APIs from package tweepy.
tweepy.api.API.__init__, tweepy.auth.OAuthHandler.__init__, tweepy.auth.OAuthHandler.set_access_token
Beginning from the 3 APIs above, 1 functions are then indirectly called, including 0 tweepy's internal APIs and 1 outsider APIs. The specific call graph is listed as follows (neglecting some repeated function occurrences).
[/doersino/aerialbot]
+--tweepy.api.API.__init__
| +--tweepy.parsers.ModelParser.__init__
+--tweepy.auth.OAuthHandler.__init__
| +--requests_oauthlib.OAuth1Session
+--tweepy.auth.OAuthHandler.set_access_token
We scan tweepy's versions and observe that during its evolution between any version from [3.9.0] and 3.10.0, the changing functions (diffs being listed below) have none intersection with any function or API we mentioned above (either directly or indirectly called by this project).
diff: 3.10.0(original) 3.9.0
['tweepy.parsers.JSONParser', 'tweepy.cursor.Cursor.__init__', 'tweepy.models.Model', 'tweepy.api.API.mutes', 'tweepy.cursor.NextIterator', 'tweepy.api.API.update_profile_background_image', 'tweepy.binder.pagination', 'tweepy.api.API.search_full_archive', 'tweepy.api.API.search_30_day', 'tweepy.cursor.NextIterator.next', 'tweepy.api.API.media_upload', 'tweepy.models.Model.parse_list', 'tweepy.cursor.NextIterator.prev', 'tweepy.models.User.lists_memberships', 'tweepy.cursor.NextIterator.__init__', 'tweepy.models.User.lists', 'tweepy.api.API.mutes_ids', 'tweepy.api.API.home_timeline', 'tweepy.models.User.lists_subscriptions', 'tweepy.api.API', 'tweepy.api.API.get_oembed', 'tweepy.api.API._pack_image', 'tweepy.parsers.JSONParser.parse', 'tweepy.models.User', 'tweepy.cursor.Cursor', 'tweepy.binder.bind_api']
As for other packages, the APIs of requests_oauthlib are called by tweepy in the call graph and the dependencies on these packages also stay the same in our suggested versions, thus avoiding any outside conflict.
Therefore, we believe that it is quite safe to loose your dependency on tweepy from "tweepy==3.10.0" to "tweepy>=3.9.0,<=3.10.0". This will improve the applicability of aerialbot and reduce the possibility of any further dependency conflict with other projects.