Skip to content

Avoid pkg_resources for package version#103

Draft
Mirochill wants to merge 1 commit into
hydroshare:masterfrom
Mirochill:fix-101-drop-pkg-resources
Draft

Avoid pkg_resources for package version#103
Mirochill wants to merge 1 commit into
hydroshare:masterfrom
Mirochill:fix-101-drop-pkg-resources

Conversation

@Mirochill

@Mirochill Mirochill commented May 24, 2026

Copy link
Copy Markdown

Summary

  • replace pkg_resources.get_distribution() with importlib.metadata.version() for the hsclient User-Agent version
  • remove setuptools from runtime install requirements since it is no longer used by the package code

Fixes #101

Validation

  • Not run locally
  • git diff --check HEAD~1..HEAD
  • rg 'pkg_resources' (no matches in project files)
  • Remote CI: Run tests and lint failed during checkout before install/lint/test steps. The workflow tried to check out fix-101-drop-pkg-resources from hydroshare/hsclient, while this PR branch exists on the fork.

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.

pkg_resources removed from setuptools

1 participant