Skip to content

fix: upgrade uplink to v0.10.0 for python 3.10+ to resolve pkg_resources deprecation#150

Merged
fredvisser merged 8 commits intomasterfrom
users/fvisser/upgrade-uplink
Jul 23, 2025
Merged

fix: upgrade uplink to v0.10.0 for python 3.10+ to resolve pkg_resources deprecation#150
fredvisser merged 8 commits intomasterfrom
users/fvisser/upgrade-uplink

Conversation

@fredvisser
Copy link
Contributor

@fredvisser fredvisser commented Jul 21, 2025

What does this Pull Request accomplish?

The latest version of uplink resolves a deprecated package warning, but also requires Python 3.10+. This PR conditionally upgrades uplink for applications that support 3.10+.

  • Upgrades uplink from 0.9.7 to 0.10.0 with pydantic extras for Python 3.10+, but maintains uplink 0.9.7 for Python 3.9.
  • Resolves pkg_resources deprecation warning by using importlib.metadata

Why should this Pull Request be merged?

Fixes #91

Every time the nisystemlink-client library is called, the following warning is printed to the console:

[...]python3.11/site-packages/uplink/_extras.py:4: UserWarning: pkg_resources is deprecated as an API. See 
https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as 
early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.

Uplink 0.10.0 was released in June to resolve this dependency issue, but requires the use of Python 3.10+.

What testing has been done?

  • All tests pass and code quality checks pass

@fredvisser fredvisser changed the title feat!: upgrade uplink to v0.10.0 to resolve pkg_resources deprecation fix!: upgrade uplink to v0.10.0 for python 3.10+ to resolve pkg_resources deprecation Jul 21, 2025
@rbell517 rbell517 changed the title fix!: upgrade uplink to v0.10.0 for python 3.10+ to resolve pkg_resources deprecation fix: upgrade uplink to v0.10.0 for python 3.10+ to resolve pkg_resources deprecation Jul 21, 2025
@fredvisser fredvisser merged commit c613a78 into master Jul 23, 2025
12 checks passed
@fredvisser fredvisser deleted the users/fvisser/upgrade-uplink branch July 23, 2025 19:34
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.

Uplink (base for clients) seems to be abandoned

2 participants