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

refactor: Avoid use of dockerpy. #157

Merged
merged 1 commit into from
Jul 20, 2022
Merged

refactor: Avoid use of dockerpy. #157

merged 1 commit into from
Jul 20, 2022

Conversation

DanCardin
Copy link
Contributor

@DanCardin DanCardin commented Jul 19, 2022

Docker-py hasn't had a commit in a very long time and appears to be being dropped by docker docker/docker-py#2989.

The relevance to us is that docker-py generates a bunch of internal deprecation warnings that have had PRs available to be merged for a very long time, but haven't been being merged.

https://gabrieldemarmiesse.github.io/python-on-whales/ appears to be an alternative library which avoid reimplementing the docker client functionality, which makes it much simpler, and presumably less likely to cause maintenance issues (such as those warnings).

The risk seems pretty low, given how small a portion of the api surface we use; so it should be trivial to switch back if this becomes a problem, or docker-py gets resumed maintenance and we decide it's better than python-on-whales for any reason

fixes #156

@DanCardin DanCardin force-pushed the dc/python-on-whales branch from ad58479 to cbb4744 Compare July 19, 2022 14:07
@DanCardin DanCardin marked this pull request as ready for review July 19, 2022 14:11
@DanCardin
Copy link
Contributor Author

#156

@DanCardin DanCardin force-pushed the dc/python-on-whales branch 2 times, most recently from a1ce817 to 462ef7a Compare July 19, 2022 14:38
@codecov
Copy link

codecov bot commented Jul 19, 2022

Codecov Report

Merging #157 (4420684) into main (dbdca54) will increase coverage by 0.25%.
The diff coverage is 54.54%.

❗ Current head 4420684 differs from pull request most recent head 93392d0. Consider uploading reports for the commit 93392d0 to get more accurate results

@@            Coverage Diff             @@
##             main     #157      +/-   ##
==========================================
+ Coverage   82.71%   82.96%   +0.25%     
==========================================
  Files          30       30              
  Lines        1313     1303      -10     
  Branches      185      186       +1     
==========================================
- Hits         1086     1081       -5     
+ Misses        187      182       -5     
  Partials       40       40              
Impacted Files Coverage Δ
src/pytest_mock_resources/cli.py 49.15% <50.00%> (+2.37%) ⬆️
src/pytest_mock_resources/hooks.py 71.42% <50.00%> (+1.93%) ⬆️
src/pytest_mock_resources/container/base.py 58.13% <60.00%> (-1.87%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 537fc5e...93392d0. Read the comment docs.

@DanCardin DanCardin force-pushed the dc/python-on-whales branch 3 times, most recently from 682752a to 4420684 Compare July 19, 2022 15:44
@DanCardin DanCardin force-pushed the dc/python-on-whales branch from 4420684 to 93392d0 Compare July 19, 2022 15:53
@DanCardin DanCardin merged commit 2a012dc into main Jul 20, 2022
@DanCardin DanCardin deleted the dc/python-on-whales branch July 20, 2022 17:51
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.

Dependabot warning for docker subdependency
2 participants