61 Commits

Author SHA256 Message Date
28797121c8 Accepting request 1196998 from devel:languages:python
- Update to 7.1.0
  * Bumped minimum engine API version to 1.24
  * Bumped default engine API version to 1.44 (Moby 25.0)
  * Fixed issue with lang parsing when the registry address
    includes ports taht resulted in `invalid tag format` errors
  * Fixed issue preventing creating new configs (ConfigCollection),
    which failed with a KeyError due to the name field
  * Fixed an issue due to an update in the requests package breaking
    docker-py by applying the suggested fix
  * Documentation improvements
  * Updated Ruff (linter) and fixed minor linting issues
  * Started using hatch for packaging
  * Stopped checking for deprecated container and image related 
    fields (Container and ContainerConfig)
  * Updated tests that check NetworkSettings.Networks.<network>.Aliases
    due to engine changes
- change source url as release tarball doesn't include tests anymore
- drop patches which are now included upstream

OBS-URL: https://build.opensuse.org/request/show/1196998
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docker?expand=0&rev=29
2024-08-28 19:34:34 +00:00
22316b99b6 - mention remoived patch names in changelog
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=59
2024-08-28 13:57:40 +00:00
87710b63f7 - Update to 7.1.0
* Bumped minimum engine API version to 1.24
  * Bumped default engine API version to 1.44 (Moby 25.0)
  * Fixed issue with lang parsing when the registry address
    includes ports taht resulted in `invalid tag format` errors
  * Fixed issue preventing creating new configs (ConfigCollection),
    which failed with a KeyError due to the name field
  * Fixed an issue due to an update in the requests package breaking
    docker-py by applying the suggested fix
  * Documentation improvements
  * Updated Ruff (linter) and fixed minor linting issues
  * Started using hatch for packaging
  * Stopped checking for deprecated container and image related 
    fields (Container and ContainerConfig)
  * Updated tests that check NetworkSettings.Networks.<network>.Aliases
    due to engine changes
- change source url as release tarball doesn't include tests anymore
- drop patches which are now included upstream

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=58
2024-08-28 11:13:33 +00:00
1a87000016 Accepting request 1176178 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1176178
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docker?expand=0&rev=28
2024-05-23 13:35:52 +00:00
60322ccd89 Accepting request 1176158 from home:ojkastl_buildservice:Branch_devel_languages_python
- backport patches to fix errors with requests 2.32.x:
  * 2a059a9f19c7b37c6c71c233754c6845e325d1ec.patch
  * e33e0a437ecd895158c8cb4322a0cdad79312636.patch

OBS-URL: https://build.opensuse.org/request/show/1176158
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=56
2024-05-23 10:01:38 +00:00
2f9718caa5 Accepting request 1135242 from devel:languages:python
- update to 7.0.0:
  * Removed SSL version (`ssl_version`) and explicit hostname
    check (`assert_hostname`) options (#3185)
  * Python 3.7+ supports TLSv1.3 by default
  * Websocket support is no longer included by default (#3123)
  * Use `pip install docker[websockets]` to include `websocket-
    client` dependency
  * By default, `docker-py` hijacks the TCP connection and does
    not use Websockets
  * Websocket client is only required to use
    `attach_socket(container, ws=True)`
  * Python 3.7 no longer supported (reached end-of-life June
    2023) (#3187)
  * Python 3.12 support (#3185)
  * Full `networking_config` support for `containers.create()`
  * Replaces `network_driver_opt` (added in 6.1.0)
  * Add `health()` property to container that returns status
    (e.g. `unhealthy`)
  * Add `pause` option to `container.commit()` (#3159)
  * Add support for bind mount propagation (e.g. `rshared`,
    `private`)
  * Add support for `filters`, `keep_storage`, and `all` in
    `prune_builds()` on API v1.39+ (#3192)
  * Consistently return `docker.errors.NotFound` on 404 responses
  * Validate tag format before push (#3191)

- Bump required version of pycreds to 0.4.0 (sync with requirements.txt)
- update to 3.7.0 (mandatory for latest docker-compose)
- add python-dockerpycreds dependency in the spec file
  rebase hide_py_pckgmgmt.patch

OBS-URL: https://build.opensuse.org/request/show/1135242
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docker?expand=0&rev=27
2023-12-28 22:01:05 +00:00
d1af4fc2ea - update to 7.0.0:
* Removed SSL version (`ssl_version`) and explicit hostname
    check (`assert_hostname`) options (#3185)
  * Python 3.7+ supports TLSv1.3 by default
  * Websocket support is no longer included by default (#3123)
  * Use `pip install docker[websockets]` to include `websocket-
    client` dependency
  * By default, `docker-py` hijacks the TCP connection and does
    not use Websockets
  * Websocket client is only required to use
    `attach_socket(container, ws=True)`
  * Python 3.7 no longer supported (reached end-of-life June
    2023) (#3187)
  * Python 3.12 support (#3185)
  * Full `networking_config` support for `containers.create()`
  * Replaces `network_driver_opt` (added in 6.1.0)
  * Add `health()` property to container that returns status
    (e.g. `unhealthy`)
  * Add `pause` option to `container.commit()` (#3159)
  * Add support for bind mount propagation (e.g. `rshared`,
    `private`)
  * Add support for `filters`, `keep_storage`, and `all` in
    `prune_builds()` on API v1.39+ (#3192)
  * Consistently return `docker.errors.NotFound` on 404 responses
  * Validate tag format before push (#3191)
- Bump required version of pycreds to 0.4.0 (sync with requirements.txt)
- update to 3.7.0 (mandatory for latest docker-compose)
- add python-dockerpycreds dependency in the spec file
  rebase hide_py_pckgmgmt.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=54
2023-12-27 09:32:05 +00:00
6e0568de35 Accepting request 1095239 from devel:languages:python
Forwarded request #1094902 from ojkastl_buildservice

large update to 6.1.3 to fix builds; recreated spec file using py2pack

OBS-URL: https://build.opensuse.org/request/show/1095239
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docker?expand=0&rev=26
2023-06-26 16:15:43 +00:00
cb10485c2e Accepting request 1094902 from home:ojkastl_buildservice:Branch_devel_languages_python
large update to 6.1.3 to fix builds; recreated spec file using py2pack

OBS-URL: https://build.opensuse.org/request/show/1094902
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=52
2023-06-25 19:14:34 +00:00
02d9a7c5e7 Accepting request 1085822 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1085822
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docker?expand=0&rev=25
2023-05-10 14:18:44 +00:00
73c2c81090 Accepting request 1085684 from home:ojkastl_buildservice:Branch_devel_languages_python
add sle15_python_module_pythons

OBS-URL: https://build.opensuse.org/request/show/1085684
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=50
2023-05-09 20:50:21 +00:00
de9a242fe7 Accepting request 1010132 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1010132
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docker?expand=0&rev=24
2022-10-12 16:25:46 +00:00
d1a0f2a06c Accepting request 1010114 from home:pgajdos:python
- python-six is not required as well

OBS-URL: https://build.opensuse.org/request/show/1010114
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=48
2022-10-12 08:34:53 +00:00
4a8deb9ef2 Accepting request 962628 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/962628
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docker?expand=0&rev=23
2022-03-18 15:42:21 +00:00
96da78297f Accepting request 962496 from home:pgajdos:python
- python-mock actually not required for build

OBS-URL: https://build.opensuse.org/request/show/962496
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=46
2022-03-18 09:57:34 +00:00
12511b9bcf Accepting request 939988 from devel:languages:python
- update to 5.0.3:
  * Add cap_add and cap_drop parameters to service create and ContainerSpec
  * Add templating parameter to config create
  * Bump urllib3 to 1.26.5
  * Bump requests to 2.26.0
  * Remove support for Python 2.7
  * Make Python 3.6 the minimum version supported

OBS-URL: https://build.opensuse.org/request/show/939988
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docker?expand=0&rev=22
2021-12-12 20:27:38 +00:00
b98f99ced7 - update to 5.0.3:
* Add cap_add and cap_drop parameters to service create and ContainerSpec
  * Add templating parameter to config create
  * Bump urllib3 to 1.26.5
  * Bump requests to 2.26.0
  * Remove support for Python 2.7
  * Make Python 3.6 the minimum version supported

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=45
2021-12-11 22:15:02 +00:00
bc052afa0e Accepting request 878139 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/878139
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docker?expand=0&rev=21
2021-03-11 19:10:43 +00:00
a45b6f65ac Accepting request 877794 from home:cbcoutinho:branches:devel:languages:python
Update to 4.4.4, switch to pypi instead of github

OBS-URL: https://build.opensuse.org/request/show/877794
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=43
2021-03-10 09:57:42 +00:00
f49e54468a Accepting request 857122 from devel:languages:python
- update to 4.4.0:
  - Add an alternative SSH connection to the paramiko one, based on shelling out to the SSh client. Similar to the behaviour of Docker cli
  - Default image tag to `latest` on `pull`
  - Fix plugin model upgrade
  - Fix examples URL in ulimits
  - Improve exception messages for server and client errors
  - Bump cryptography from 2.3 to 3.2
  - Set default API version to `auto`
  - Fix conversion to bytes for `float`
  - Support OpenSSH `identityfile` option
  - Add `DeviceRequest` type to expose host resources such as GPUs
  - Add support for `DriverOpts` in EndpointConfig
  - Disable compression by default when using container.get_archive method
  - Update default API version to v1.39
  - Update test engine version to 19.03.12

OBS-URL: https://build.opensuse.org/request/show/857122
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docker?expand=0&rev=20
2020-12-23 13:19:21 +00:00
aa73a26d4d - update to 4.4.0:
- Add an alternative SSH connection to the paramiko one, based on shelling out to the SSh client. Similar to the behaviour of Docker cli
  - Default image tag to `latest` on `pull`
  - Fix plugin model upgrade
  - Fix examples URL in ulimits
  - Improve exception messages for server and client errors
  - Bump cryptography from 2.3 to 3.2
  - Set default API version to `auto`
  - Fix conversion to bytes for `float`
  - Support OpenSSH `identityfile` option
  - Add `DeviceRequest` type to expose host resources such as GPUs
  - Add support for `DriverOpts` in EndpointConfig
  - Disable compression by default when using container.get_archive method
  - Update default API version to v1.39
  - Update test engine version to 19.03.12

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=41
2020-12-20 09:56:54 +00:00
c361912f95 Accepting request 819986 from devel:languages:python
- update to 4.2.2:
  - Fix context load for non-docker endpoints

OBS-URL: https://build.opensuse.org/request/show/819986
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docker?expand=0&rev=19
2020-07-13 07:06:19 +00:00
27b9be6190 - update to 4.2.2:
- Fix context load for non-docker endpoints

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=39
2020-07-10 12:16:34 +00:00
d06bd3c14e Accepting request 814541 from devel:languages:python
- update to 4.2.1:
  - Add option on when to use `tls` on Context constructor
  - Make context orchestrator field optional

OBS-URL: https://build.opensuse.org/request/show/814541
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docker?expand=0&rev=18
2020-06-15 18:28:36 +00:00
313c37b44c - update to 4.2.1:
- Add option on when to use `tls` on Context constructor
  - Make context orchestrator field optional

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=37
2020-06-08 13:36:43 +00:00
ec3cd1cc9b Accepting request 772524 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/772524
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docker?expand=0&rev=17
2020-02-11 21:23:52 +00:00
Tomáš Chvátal
8412fc0bf8 Accepting request 772520 from home:apersaud:branches:devel:languages:python
update to latest version

OBS-URL: https://build.opensuse.org/request/show/772520
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=35
2020-02-09 18:33:09 +00:00
f66089e273 Accepting request 751832 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/751832
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docker?expand=0&rev=16
2019-12-02 10:28:31 +00:00
Tomáš Chvátal
b8dd3497ab Accepting request 750609 from home:apersaud:branches:devel:languages:python
update to latest version

OBS-URL: https://build.opensuse.org/request/show/750609
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=33
2019-11-29 09:44:03 +00:00
ef43fa6c2a Accepting request 719521 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/719521
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docker?expand=0&rev=15
2019-07-29 15:31:29 +00:00
Tomáš Chvátal
ee712f349e Accepting request 719411 from home:apersaud:branches:devel:languages:python
update to latest version

OBS-URL: https://build.opensuse.org/request/show/719411
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=31
2019-07-29 08:41:58 +00:00
475d3a6e8b Accepting request 690379 from devel:languages:python
- Update to 3.7.2:
  * Fix base_url to keep TCP protocol on utils.py by letting the responsability of changing the
    protocol to parse_host afterwards, letting base_url with the original value.
  * XFAIL test_attach_stream_and_cancel on TLS

OBS-URL: https://build.opensuse.org/request/show/690379
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docker?expand=0&rev=14
2019-04-02 07:22:51 +00:00
Tomáš Chvátal
c670b22d72 - Update to 3.7.2:
* Fix base_url to keep TCP protocol on utils.py by letting the responsability of changing the
    protocol to parse_host afterwards, letting base_url with the original value.
  * XFAIL test_attach_stream_and_cancel on TLS

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=29
2019-04-01 13:26:55 +00:00
fdaefd1270 Accepting request 688730 from devel:languages:python
- Update to 3.7.1:
  * Set a different default number (which is now 9) for SSH pools
  * Adds a BaseHTTPAdapter with a close method to ensure that the pools is clean on close()
  * Makes SSHHTTPAdapter reopen a closed connection when needed like the others

OBS-URL: https://build.opensuse.org/request/show/688730
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docker?expand=0&rev=13
2019-03-28 21:48:26 +00:00
Tomáš Chvátal
4a260cf6ad - Update to 3.7.1:
* Set a different default number (which is now 9) for SSH pools
  * Adds a BaseHTTPAdapter with a close method to ensure that the pools is clean on close()
  * Makes SSHHTTPAdapter reopen a closed connection when needed like the others

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=27
2019-03-26 13:39:38 +00:00
Stephan Kulow
3987496332 Accepting request 682605 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/682605
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docker?expand=0&rev=12
2019-03-10 08:37:31 +00:00
Tomáš Chvátal
8e18b7c78e Accepting request 682596 from home:jayvdb:py-check-failures
- Remove no longer necessary pytest argument -k 'not MatchHostnameTest'

OBS-URL: https://build.opensuse.org/request/show/682596
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=25
2019-03-07 16:45:20 +00:00
4f3a96a32b Accepting request 666190 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/666190
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docker?expand=0&rev=11
2019-01-24 13:10:25 +00:00
6c2e4b80ef Accepting request 666156 from home:mvyskocil:branches:devel:languages:python
- Bump required version of pycreds to 0.4.0 (sync with requirements.txt)

OBS-URL: https://build.opensuse.org/request/show/666156
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=23
2019-01-15 11:24:07 +00:00
Tomáš Chvátal
7689030c7c Accepting request 665716 from home:mvyskocil:branches:devel:languages:python
- update to 3.7.0 (mandatory for latest docker-compose) 
  * Added support for multiplexed streams (for `attach` and `exec_start`). Learn
    more at https://docker-py.readthedocs.io/en/stable/user_guides/multiplex.html
  * Added the `use_config_proxy` parameter to the following methods:
    `APIClient.build`, `APIClient.create_container`, `DockerClient.images.build`
     and `DockerClient.containers.run` (`False` by default). **This parameter**
    **will become `True` by default in the 4.0.0 release.**
  * Placement preferences for Swarm services are better validated on the client
    and documentation has been updated accordingly
  * see https://github.com/docker/docker-py/releases/tag/3.7.0
    https://github.com/docker/docker-py/releases/tag/3.6.0 for more
    info

OBS-URL: https://build.opensuse.org/request/show/665716
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=22
2019-01-14 12:31:30 +00:00
9012fe3a55 Accepting request 648938 from devel:languages:python
- Fix the fdupes call to match up reality

OBS-URL: https://build.opensuse.org/request/show/648938
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docker?expand=0&rev=10
2018-11-14 13:44:01 +00:00
Tomáš Chvátal
6f011e1953 - Fix the fdupes call to match up reality
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=20
2018-11-14 11:57:40 +00:00
06bceaaa25 Accepting request 643580 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/643580
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docker?expand=0&rev=9
2018-10-31 12:12:32 +00:00
Tomáš Chvátal
ef506df6c7 Accepting request 643510 from home:apersaud:branches:devel:languages:python
update to latest version

OBS-URL: https://build.opensuse.org/request/show/643510
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=18
2018-10-21 18:22:41 +00:00
92f91cfe3f Accepting request 632141 from devel:languages:python
- Fix build on older releases by not using new pytest syntax
  for test selection

OBS-URL: https://build.opensuse.org/request/show/632141
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docker?expand=0&rev=8
2018-08-31 08:46:15 +00:00
Tomáš Chvátal
3382e683bb - Fix build on older releases by not using new pytest syntax
for test selection

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=16
2018-08-29 11:14:11 +00:00
d4ffbb0fd7 Accepting request 621776 from devel:languages:python
- fix build for older python 3.x versions

OBS-URL: https://build.opensuse.org/request/show/621776
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docker?expand=0&rev=7
2018-07-10 14:16:55 +00:00
e42e95f81e OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=14 2018-07-09 20:31:46 +00:00
73f4ba23a3 - fix build for older python 3.x versions
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=13
2018-07-09 20:29:26 +00:00
07af5a8bfe Accepting request 621580 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/621580
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docker?expand=0&rev=6
2018-07-09 11:30:32 +00:00