Hi, your project ChessBot requires "discord.py==1.3.4" in its dependency. After analyzing the source code, we found that the following versions of discord.py can also be suitable without affecting your project, i.e., discord.py 1.3.2, 1.3.3. Therefore, we suggest to loosen the dependency on discord.py from "discord.py==1.3.4" to "discord.py>=1.3.2,<=1.3.4" to avoid any possible conflict for importing more packages or for downstream projects that may use ChessBot.
May I pull a request to further loosen the dependency on discord.py?
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 ChessBot directly uses 11 APIs from package discord.py.
discord.errors.Forbidden.__init__, discord.embeds.Embed.__init__, discord.embeds.Embed.set_author, discord.shard.AutoShardedClient.__init__, discord.embeds.Embed.add_field, discord.activity.Game.__init__, discord.colour.Colour.__init__, discord.file.File.__init__, discord.permissions.PermissionOverwrite.__init__, discord.embeds.Embed.set_thumbnail, discord.embeds.Embed.set_footer
Beginning from the 11 APIs above, 17 functions are then indirectly called, including -11 discord.py's internal APIs and 28 outsider APIs. The specific call graph is listed as follows (neglecting some repeated function occurrences).
[/qwertyquerty/ChessBot]
+--discord.errors.Forbidden.__init__
| +--discord.errors.HTTPException.__init__
| | +--discord.errors.flatten_error_dict
| | | +--discord.errors.flatten_error_dict
+--discord.embeds.Embed.__init__
+--discord.embeds.Embed.set_author
+--discord.shard.AutoShardedClient.__init__
| +--discord.client.Client.__init__
| | +--asyncio.get_event_loop
| | +--discord.http.HTTPClient.__init__
| | | +--asyncio.get_event_loop
| | | +--weakref.WeakValueDictionary
| | | +--asyncio.Event
| | +--discord.state.ConnectionState.__init__
| | | +--inspect.getmembers
| | | +--discord.state.ConnectionState.clear
| | | | +--weakref.WeakValueDictionary
| | | | +--collections.OrderedDict
| | | | +--collections.deque
| | | | +--gc.collect
| | +--asyncio.Event
| +--discord.errors.ClientException.__init__
| +--discord.state.AutoShardedConnectionState.__init__
| | +--discord.state.ConnectionState.__init__
+--discord.embeds.Embed.add_field
+--discord.activity.Game.__init__
| +--discord.activity.BaseActivity.__init__
| +--discord.activity.Game._extract_timestamp
+--discord.colour.Colour.__init__
+--discord.file.File.__init__
| +--os.path.split
+--discord.permissions.PermissionOverwrite.__init__
+--discord.embeds.Embed.set_thumbnail
+--discord.embeds.Embed.set_footer
We scan discord.py's versions and observe that during its evolution between any version from [1.3.2, 1.3.3] and 1.3.4, 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: 1.3.4(original) 1.3.2
['discord.py.client.Client.activity', 'discord.py.gateway.DiscordWebSocket', 'discord.py.shard.AutoShardedClient', 'discord.py.abc._Overwrites.__init__', 'discord.py.client.Client', 'discord.py.guild.Guild', 'discord.py.abc._Overwrites._asdict', 'discord.py.abc._Overwrites', 'discord.py.ext.commands.cooldowns._Semaphore']
diff: 1.3.4(original) 1.3.3
['discord.py.abc._Overwrites.__init__', 'discord.py.abc._Overwrites._asdict', 'discord.py.abc._Overwrites']
As for other packages, the APIs of os, asyncio, weakref, inspect, collections and gc are called by discord.py 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 discord.py from "discord.py==1.3.4" to "discord.py>=1.3.2,<=1.3.4". This will improve the applicability of ChessBot and reduce the possibility of any further dependency conflict with other projects.
Hi, your project ChessBot requires "discord.py==1.3.4" in its dependency. After analyzing the source code, we found that the following versions of discord.py can also be suitable without affecting your project, i.e., discord.py 1.3.2, 1.3.3. Therefore, we suggest to loosen the dependency on discord.py from "discord.py==1.3.4" to "discord.py>=1.3.2,<=1.3.4" to avoid any possible conflict for importing more packages or for downstream projects that may use ChessBot.
May I pull a request to further loosen the dependency on discord.py?
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 ChessBot directly uses 11 APIs from package discord.py.
Beginning from the 11 APIs above, 17 functions are then indirectly called, including -11 discord.py's internal APIs and 28 outsider APIs. The specific call graph is listed as follows (neglecting some repeated function occurrences).
We scan discord.py's versions and observe that during its evolution between any version from [1.3.2, 1.3.3] and 1.3.4, 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).
As for other packages, the APIs of os, asyncio, weakref, inspect, collections and gc are called by discord.py 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 discord.py from "discord.py==1.3.4" to "discord.py>=1.3.2,<=1.3.4". This will improve the applicability of ChessBot and reduce the possibility of any further dependency conflict with other projects.