Peter Hyatt
d88f413e10
Strip extra escape codes on empty lines
...
Signed-off-by: Peter Hyatt <peter.hyatt@gmail.com>
2024-04-07 22:35:40 -04:00
Peter Hyatt
fc5438cbee
Remove excess whitespace
...
Signed-off-by: Peter Hyatt <peter.hyatt@gmail.com>
2024-04-07 22:35:40 -04:00
Peter Hyatt
adad7f8b22
Fix missing import
...
Signed-off-by: Peter Hyatt <peter.hyatt@gmail.com>
2024-04-07 22:35:40 -04:00
Peter Hyatt
777504af82
Fix parenths typo
...
Signed-off-by: Peter Hyatt <peter.hyatt@gmail.com>
2024-04-07 22:35:40 -04:00
Peter Hyatt
39e7280d02
Add stream and timestamp args to client.build
...
Signed-off-by: Peter Hyatt <peter.hyatt@gmail.com>
2024-04-07 22:35:40 -04:00
Milas Bowman
9ad4bddc9e
chore(ci): fix-ups across Make / Docker / GitHub Actions ( #3241 )
2024-04-03 08:44:29 -04:00
Milas Bowman
336e65fc3c
Merge pull request #3212 from valohai/ruff-i
2024-03-29 13:31:57 -04:00
Milas Bowman
4c6437d292
Merge pull request #3212 from valohai/ruff-i
2024-03-29 13:28:43 -04:00
Milas Bowman
0fd79c8c0d
Merge pull request #3207 from valohai/modernize-build
2024-03-29 13:14:36 -04:00
Paweł Gronowski
3d79ce8c60
Merge pull request #3231 from vvoland/engine-25
...
Bump default API version to 1.44 (Moby 25.0)
2024-03-25 17:36:55 +01:00
Paweł Gronowski
dd82f9ae8e
Bump minimum API version to 1.24
...
25.0 raised the minimum supported API verison: https://github.com/moby/moby/pull/46887
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2024-03-14 11:04:39 +01:00
Paweł Gronowski
e91b280074
Bump default API version to 1.44 (Moby 25.0)
...
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2024-03-14 11:04:37 +01:00
Rob Murray
cb21af7f69
Fix tests that look at 'Aliases'
...
Inspect output for 'NetworkSettings.Networks.<network>.Aliases'
includes the container's short-id (although it will be removed
in API v1.45, in moby 26.0).
Signed-off-by: Rob Murray <rob.murray@docker.com>
2024-03-13 14:54:25 +00:00
Aarni Koskela
1818712b8c
Untangle circular imports
...
Signed-off-by: Aarni Koskela <akx@iki.fi>
2024-01-03 21:40:11 +02:00
Aarni Koskela
d50cc429c2
Enable Ruff I (import sort), autofix
...
Signed-off-by: Aarni Koskela <akx@iki.fi>
2024-01-03 21:28:56 +02:00
Aarni Koskela
047df6b0d3
Build wheel in CI, upload artifact for perusal
...
Signed-off-by: Aarni Koskela <akx@iki.fi>
2024-01-03 21:20:13 +02:00
Aarni Koskela
ae45d477c4
Use `hatch` for packaging
...
Signed-off-by: Aarni Koskela <akx@iki.fi>
2024-01-03 21:20:11 +02:00
Aarni Koskela
f128956034
Use `build` instead of calling setup.py
...
Signed-off-by: Aarni Koskela <akx@iki.fi>
2024-01-03 21:20:02 +02:00
Milas Bowman
bd164f928a
Merge pull request #3205 from valohai/drop-packaging-dep
...
Drop `packaging` dependency
2024-01-03 14:19:02 -05:00
Aarni Koskela
249654d4d9
Drop `packaging` dependency
...
Compare versions like Moby (api/types/versions/compare.go)
Signed-off-by: Aarni Koskela <akx@iki.fi>
2024-01-03 21:12:37 +02:00
Milas Bowman
694d9792e6
lint: fix string formatting ( #3211 )
...
Merged a linter upgrade along with an older PR, so this was immediately in violation
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
2024-01-03 14:01:42 -05:00
Khushiyant
eeb9ea1937
docs: change image.history() return type to list ( #3202 )
...
Fixes #3076 .
Signed-off-by: Khushiyant <khushiyant2002@gmail.com>
2024-01-03 18:56:10 +00:00
Aarni Koskela
08956b5fbc
ci: update Ruff & fix some minor issues ( #3206 )
...
Signed-off-by: Aarni Koskela <akx@iki.fi>
2024-01-03 13:49:07 -05:00
Khushiyant
b8a6987cd5
fix: keyerror when creating new config ( #3200 )
...
Closes #3110 .
---------
Signed-off-by: Khushiyant <khushiyant2002@gmail.com>
2024-01-03 18:44:53 +00:00
Sebastiaan van Stijn
f467fd9df9
Merge pull request #3208 from vvoland/fix-datetime_to_timestamp
...
utils: Fix datetime_to_timestamp
2024-01-03 19:13:33 +01:00
Sven
3ec5a6849a
fix(build): tag regex should allow ports ( #3196 )
...
Update the regex and add test cases.
(There are some xfails here for cases that the regex is not currently
handling. It's too strict for IPv6 domains at the moment.)
Closes: https://github.com/docker/docker-py/issues/3195
Related: https://github.com/opencontainers/distribution-spec/pull/498
Signed-off-by: Sven Kieske <kieske@osism.tech>
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
Co-authored-by: Milas Bowman <milas.bowman@docker.com>
2024-01-03 10:48:45 -05:00
Paweł Gronowski
1784cc2962
utils: Fix datetime_to_timestamp
...
Replace usage of deprecated function `datetime.utcfromtimestamp` and
make sure the input date is UTC before subtracting.
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2023-12-22 10:57:52 +01:00
Guillaume Lours
6ceb08273c
Merge pull request #3203 from vvoland/deprecated-containerconfig
...
integration/commit: Don't check for deprecated fields
2023-12-20 17:43:12 +01:00
Guillaume Lours
097382b973
Merge pull request #3199 from vvoland/engine-24
...
Bump default API version to 1.43 (Moby 24.0)
2023-12-20 08:24:37 +01:00
Paweł Gronowski
0fad869cc6
integration/commit: Don't check for deprecated fields
...
Container related Image fields (`Container` and `ContainerConfig`) will
be deprecated in API v1.44 and will be removed in v1.45.
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2023-12-19 10:28:28 +01:00
Paweł Gronowski
2a5f354b50
Bump default API version to 1.43 (Moby 24.0)
...
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2023-12-15 10:40:27 +01:00
Guillaume Lours
7d8a161b12
Merge pull request #3193 from milas/prep-7.0
...
chore: update changelog and maintainer
2023-12-08 09:52:27 +01:00
Milas Bowman
5388413dde
chore: update changelog and maintainer
...
Preparing for the 7.0.0 final release 🎉
Added a couple more changelog items that came in as part of
`7.0.0b2` and updated the maintainer to be generically Docker,
Inc. instead of an individual.
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
2023-12-07 15:41:29 -05:00
Emran Batmanghelich
3d0a3f1d77
feat: accept all / filters / keep_storage in prune_builds ( #3192 )
...
Added in API v1.39.
---------
Signed-off-by: Emran Batmanghelich <emran.bm@gmail.com>
2023-12-05 10:05:44 -05:00
Daniel Lombardi
a9b5494fd0
fix: validate tag before build using OCI regex ( #3191 )
...
Sources:
* https://github.com/opencontainers/distribution-spec
* https://docs.docker.com/engine/reference/commandline/tag/
Closes #3153 .
---------
Signed-off-by: Daniel Lombardi <lombardi.daniel.o@gmail.com>
2023-12-05 00:03:13 -05:00
Milas Bowman
cb8f2c6630
chore: fix missing setuptools in CI ( #3189 )
...
Install `setuptools` in addition to `wheel` before trying to run
`python setup.py` manually.
Note that `setuptools` is already correctly listed in the
`pyproject.toml` file for consumers installing via `pip` etc, but
in CI the file is run directly to generate `sdist` and `bdist_wheel`
artifacts for PyPI.
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
2023-11-27 09:17:47 -05:00
Milas Bowman
7140969239
chore: update MAINTAINERS and remove CODEOWNERS ( #3188 )
...
Update `MAINTAINERS` with the current folks, adn remove the
`CODEOWNERS` file entirely -- it's not really helpful here,
as this project isn't big enough to have multiple subsections
with different maintainers/owners.
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
2023-11-21 12:17:12 -05:00
Milas Bowman
586988ce2d
chore: remove support for Python 3.7 ( #3187 )
...
Python 3.7 reached EOL in June 2023: https://endoflife.date/python
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
2023-11-21 12:14:23 -05:00
Milas Bowman
fd2f5029f0
chore: add changelog for 7.0.0 ( #3186 )
...
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
2023-11-21 12:08:25 -05:00
Milas Bowman
db4878118b
breaking: Python 3.12 compatibility & remove custom SSL adapter ( #3185 )
...
Add support for Python 3.12.
`match_hostname` is gone in Python 3.12 and has been unused by
Python since 3.7.
The custom SSL adapter allows passing a specific SSL version; this
was first introduced a looong time ago to handle some SSL issues
at the time.
Closes #3176 .
---------
Signed-off-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-11-21 10:42:53 -05:00
dependabot[bot]
976c84c481
build(deps): Bump urllib3 from 1.26.11 to 1.26.18 ( #3183 )
...
Bumps [urllib3](https://github.com/urllib3/urllib3 ) from 1.26.11 to 1.26.18.
- [Release notes](https://github.com/urllib3/urllib3/releases )
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst )
- [Commits](https://github.com/urllib3/urllib3/compare/1.26.11...1.26.18 )
---
updated-dependencies:
- dependency-name: urllib3
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-20 16:56:50 -05:00
Milas Bowman
b3349c88ef
Merge branch 'pr-3147'
2023-11-20 16:18:23 -05:00
Milas Bowman
b2378db7f1
chore: fix lint issue
...
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
2023-11-20 16:18:08 -05:00
Milas Bowman
911f866f72
Merge branch 'main' into patch-1
2023-11-20 16:15:52 -05:00
Milas Bowman
26e07251d4
chore: fix lint issues
...
ruff ruff ruff!
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
2023-11-20 16:11:06 -05:00
Aarni Koskela
c9e3efddb8
feat: move websocket-client to extra dependency ( #3123 )
...
Also bump minimum version to that prescribed by #3022
Signed-off-by: Aarni Koskela <akx@iki.fi>
2023-11-20 15:55:28 -05:00
Milas Bowman
4a88112345
Merge branch 'pr-3121'
...
https://github.com/docker/docker-py/pull/3121
2023-11-20 15:44:37 -05:00
Milas Bowman
b70cbd0129
Merge remote-tracking branch 'upstream/main' into Skazza94/main
2023-11-20 15:38:27 -05:00
Mariano Scazzariello
7752996f78
Replace `network_config` with a dict of EndpointConfig
...
- Renamed parameter from `network_config` to `networking_config` to be more semantically correct with the rest of the API.
2023-09-30 00:20:44 +02:00
Jay Turner
5abae2dc8e
Merge branch 'main' into patch-1
2023-09-12 13:35:03 +01:00