Skip to content

Comments

Fix version mismatch in User-Agent (v2.0.1 showing as v1.3.11)#86

Open
shenjiecode wants to merge 1 commit intominibear2021:masterfrom
shenjiecode:fix-version-display
Open

Fix version mismatch in User-Agent (v2.0.1 showing as v1.3.11)#86
shenjiecode wants to merge 1 commit intominibear2021:masterfrom
shenjiecode:fix-version-display

Conversation

@shenjiecode
Copy link

Description
Currently, the version in core.py is hardcoded to 1.3.11, causing confusion in logs when 2.0.1 is installed via pip.
Changes
This PR introduces importlib.metadata to dynamically fetch the installed version number from the package metadata, ensuring the User-Agent string always matches the actual installed version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant