issues
search
exasol
/
integration-test-docker-environment
A docker-based environment for integration tests with the EXASOL DB.
https://exasol.github.io/integration-test-docker-environment/
MIT License
6
stars
2
forks
source link
Refactor pkg_resources usage to importlib.resources
#119
Open
tkilias
opened
2 years ago
tkilias
commented
2 years ago
Background
At the moment, we use
pkg_resources
to access package resources.
https://github.com/exasol/integration-test-docker-environment/blob/0e240365cf81e112d47291aa0acdc5ac5d2105aa/exasol_integration_test_docker_environment/lib/test_environment/spawn_test_database.py#L211
With python 3.7 a better alternative is available
https://docs.python.org/3/library/importlib.html#module-importlib.resources
For older python version there is a backport available
https://importlib-resources.readthedocs.io/en/latest/index.html
Acceptance Criteria
When transitioning to python 3.7 usepkg_resources
importlib.resources
instead of
pkg_resources
Background
pkg_resources
to access package resources. https://github.com/exasol/integration-test-docker-environment/blob/0e240365cf81e112d47291aa0acdc5ac5d2105aa/exasol_integration_test_docker_environment/lib/test_environment/spawn_test_database.py#L211Acceptance Criteria
importlib.resources
instead ofpkg_resources