Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace pkg_resources with importlib_resources #207

Merged
merged 2 commits into from
Nov 17, 2020

Conversation

rahulporuri
Copy link
Contributor

@rahulporuri rahulporuri commented Nov 13, 2020

This PR replaces the use of pkg_resources.resource_filename with importlib_resources.files. Ref the migration guide for importlib_resources - https://importlib-resources.readthedocs.io/en/latest/migration.html#pkg-resources-resource-filename

Checklist

  • Add a news fragment if this PR is news-worthy for end users. (see docs/releases/README.rst) This has no effect on the end users so this does not warrant a news fragment.

with importlib_resources

	modified:   apptools/persistence/tests/test_file_path.py
	modified:   apptools/preferences/tests/test_preference_binding.py
	modified:   apptools/preferences/tests/test_preferences.py
	modified:   apptools/preferences/tests/test_preferences_helper.py
	modified:   apptools/preferences/tests/test_py_config_file.py
	modified:   apptools/preferences/tests/test_scoped_preferences.py
	modified:   etstool.py
etstool.py Outdated Show resolved Hide resolved
	modified:   etstool.py
	modified:   setup.py
Copy link
Contributor

@kitchoi kitchoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rahulporuri
Copy link
Contributor Author

Appveyor CI MacOS job didn't start. at all. restarting it to see if it works this time around.

@rahulporuri rahulporuri merged commit 141580e into master Nov 17, 2020
@rahulporuri rahulporuri deleted the dev/replace-pkg-resources branch November 17, 2020 14:14
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.

2 participants