Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-hcloud for openSUSE:Factory checked in at 2024-04-21 20:28:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-hcloud (Old) and /work/SRC/openSUSE:Factory/.python-hcloud.new.26366 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-hcloud" Sun Apr 21 20:28:13 2024 rev:8 rq:1169410 version:1.35.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-hcloud/python-hcloud.changes 2024-01-05 21:46:41.409862666 +0100 +++ /work/SRC/openSUSE:Factory/.python-hcloud.new.26366/python-hcloud.changes 2024-04-21 20:29:50.743568887 +0200 @@ -1,0 +2,9 @@ +Sat Apr 20 20:39:37 UTC 2024 - Dirk Müller <dmuel...@suse.com> + +- update to 1.35.0: + * add `include_deprecated` option when fetching images by name + * raise warnings for the `ImagesClient.get_by_name` deprecation + * add `has_id_or_name` to `DomainIdentityMixin` + * invalid type for load balancer private network property + +------------------------------------------------------------------- Old: ---- hcloud-1.33.2.tar.gz New: ---- hcloud-1.35.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-hcloud.spec ++++++ --- /var/tmp/diff_new_pack.RsuGwp/_old 2024-04-21 20:29:51.315589886 +0200 +++ /var/tmp/diff_new_pack.RsuGwp/_new 2024-04-21 20:29:51.315589886 +0200 @@ -17,7 +17,7 @@ Name: python-hcloud -Version: 1.33.2 +Version: 1.35.0 Release: 0 Summary: Hetzner Cloud Python library License: MIT ++++++ hcloud-1.33.2.tar.gz -> hcloud-1.35.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hcloud-1.33.2/CHANGELOG.md new/hcloud-1.35.0/CHANGELOG.md --- old/hcloud-1.33.2/CHANGELOG.md 2024-01-02 18:18:37.000000000 +0100 +++ new/hcloud-1.35.0/CHANGELOG.md 2024-04-02 19:10:45.000000000 +0200 @@ -1,5 +1,51 @@ # Changelog +## [1.35.0](https://github.com/hetznercloud/hcloud-python/compare/v1.34.0...v1.35.0) (2024-04-02) + + +### Features + +* add `include_deprecated` option when fetching images by name ([#375](https://github.com/hetznercloud/hcloud-python/issues/375)) ([6d86f86](https://github.com/hetznercloud/hcloud-python/commit/6d86f86677fec23e6fd8a69d20d787e234e0fb53)) + + +### Bug Fixes + +* raise warnings for the `ImagesClient.get_by_name` deprecation ([#376](https://github.com/hetznercloud/hcloud-python/issues/376)) ([b24de80](https://github.com/hetznercloud/hcloud-python/commit/b24de80684db142ebbe11b62a38d9c61f248e216)) + +## [1.34.0](https://github.com/hetznercloud/hcloud-python/compare/v1.33.3...v1.34.0) (2024-03-27) + + +### Features + +* add `has_id_or_name` to `DomainIdentityMixin` ([#373](https://github.com/hetznercloud/hcloud-python/issues/373)) ([8facaf6](https://github.com/hetznercloud/hcloud-python/commit/8facaf6d4dd2bbfb4137e7066b49c5f4c1db773c)) + +## [1.33.3](https://github.com/hetznercloud/hcloud-python/compare/v1.33.2...v1.33.3) (2024-03-27) + + +### Bug Fixes + +* invalid type for load balancer private network property ([#372](https://github.com/hetznercloud/hcloud-python/issues/372)) ([903e92f](https://github.com/hetznercloud/hcloud-python/commit/903e92faab745b7f8270f6195da67f4d9f8b1ba7)) + + +### Dependencies + +* update codecov/codecov-action action to v4 ([#359](https://github.com/hetznercloud/hcloud-python/issues/359)) ([a798979](https://github.com/hetznercloud/hcloud-python/commit/a79897977abe970181d19584e51448ff5976b5e2)) +* update dependency mypy to >=1.9,<1.10 ([#368](https://github.com/hetznercloud/hcloud-python/issues/368)) ([4b9328c](https://github.com/hetznercloud/hcloud-python/commit/4b9328ceae1e393ff55b3ca6f030cb5ac565be00)) +* update dependency pylint to >=3,<3.2 ([#364](https://github.com/hetznercloud/hcloud-python/issues/364)) ([d71d17f](https://github.com/hetznercloud/hcloud-python/commit/d71d17fd6f2968a8c19052753265ef7f514a8955)) +* update dependency pytest to >=8,<8.2 ([#366](https://github.com/hetznercloud/hcloud-python/issues/366)) ([8665dcf](https://github.com/hetznercloud/hcloud-python/commit/8665dcff335c755c1ff4d95621334a3f5e196d34)) +* update dependency pytest to v8 ([#357](https://github.com/hetznercloud/hcloud-python/issues/357)) ([f8f756f](https://github.com/hetznercloud/hcloud-python/commit/f8f756fe0a492e284bd2a700514c0ba38358b4a8)) +* update dependency pytest-cov to v5 ([#371](https://github.com/hetznercloud/hcloud-python/issues/371)) ([04a6a42](https://github.com/hetznercloud/hcloud-python/commit/04a6a42028606ed66657605d98b1f21545eb2e0d)) +* update dependency watchdog to v4 ([#360](https://github.com/hetznercloud/hcloud-python/issues/360)) ([cb8d383](https://github.com/hetznercloud/hcloud-python/commit/cb8d38396a8665506e3be64a09450343d7671586)) +* update pre-commit hook asottile/pyupgrade to v3.15.1 ([#362](https://github.com/hetznercloud/hcloud-python/issues/362)) ([dd2a521](https://github.com/hetznercloud/hcloud-python/commit/dd2a521eccec8e15b6d1d7fd843d866bf6ea5bcf)) +* update pre-commit hook asottile/pyupgrade to v3.15.2 ([3d02ad7](https://github.com/hetznercloud/hcloud-python/commit/3d02ad71e9200f5cc94b2d33eea62035edc1e33a)) +* update pre-commit hook psf/black-pre-commit-mirror to v24 ([#356](https://github.com/hetznercloud/hcloud-python/issues/356)) ([b46397d](https://github.com/hetznercloud/hcloud-python/commit/b46397d761caa60014bd32f7142b79bef9a92e18)) +* update pre-commit hook psf/black-pre-commit-mirror to v24.1.1 ([#358](https://github.com/hetznercloud/hcloud-python/issues/358)) ([7e4645e](https://github.com/hetznercloud/hcloud-python/commit/7e4645e3e38a106f38a7f63810d71a628fead939)) +* update pre-commit hook psf/black-pre-commit-mirror to v24.2.0 ([#361](https://github.com/hetznercloud/hcloud-python/issues/361)) ([5b56ace](https://github.com/hetznercloud/hcloud-python/commit/5b56ace93b8b4fddddbf5610c11fd20bf6f9a561)) +* update pre-commit hook psf/black-pre-commit-mirror to v24.3.0 ([3bbac5d](https://github.com/hetznercloud/hcloud-python/commit/3bbac5dc41ca509d6679fd6b06ae99ca33fd62ee)) +* update pre-commit hook pycqa/flake8 to v7 ([#354](https://github.com/hetznercloud/hcloud-python/issues/354)) ([66a582f](https://github.com/hetznercloud/hcloud-python/commit/66a582f3ce728d92045625885d0634fc96fbc6a0)) +* update pypa/gh-action-pypi-publish action to v1.8.12 ([#365](https://github.com/hetznercloud/hcloud-python/issues/365)) ([55db255](https://github.com/hetznercloud/hcloud-python/commit/55db2551dd0f0ea6a29da4e7a6dce2af8de86eaf)) +* update pypa/gh-action-pypi-publish action to v1.8.14 ([#367](https://github.com/hetznercloud/hcloud-python/issues/367)) ([0cb615f](https://github.com/hetznercloud/hcloud-python/commit/0cb615fe0d852cddbf636c1fdb8538ad60f5a3d9)) + ## [1.33.2](https://github.com/hetznercloud/hcloud-python/compare/v1.33.1...v1.33.2) (2024-01-02) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hcloud-1.33.2/PKG-INFO new/hcloud-1.35.0/PKG-INFO --- old/hcloud-1.33.2/PKG-INFO 2024-01-02 18:18:54.792610400 +0100 +++ new/hcloud-1.35.0/PKG-INFO 2024-04-02 19:11:00.325800000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: hcloud -Version: 1.33.2 +Version: 1.35.0 Summary: Official Hetzner Cloud python library Home-page: https://github.com/hetznercloud/hcloud-python Author: Hetzner Cloud GmbH @@ -30,12 +30,13 @@ Requires-Dist: sphinx<7.3,>=7.2.2; extra == "docs" Requires-Dist: sphinx-rtd-theme<2.1,>=2; extra == "docs" Requires-Dist: myst-parser<2.1,>=2.0.0; extra == "docs" -Requires-Dist: watchdog<3.1,>=3.0.0; extra == "docs" +Requires-Dist: watchdog<4.1,>=4; extra == "docs" Provides-Extra: test Requires-Dist: coverage<7.5,>=7.4; extra == "test" -Requires-Dist: pylint<3.1,>=3; extra == "test" -Requires-Dist: pytest<7.5,>=7.4; extra == "test" -Requires-Dist: mypy<1.9,>=1.8; extra == "test" +Requires-Dist: pylint<3.2,>=3; extra == "test" +Requires-Dist: pytest<8.2,>=8; extra == "test" +Requires-Dist: pytest-cov<5.1,>=5; extra == "test" +Requires-Dist: mypy<1.10,>=1.9; extra == "test" Requires-Dist: types-python-dateutil; extra == "test" Requires-Dist: types-requests; extra == "test" @@ -43,6 +44,7 @@ [](https://github.com/hetznercloud/hcloud-python/actions/workflows/test.yml) [](https://github.com/hetznercloud/hcloud-python/actions/workflows/lint.yml) +[](https://codecov.io/github/hetznercloud/hcloud-python/tree/main) [](https://hcloud-python.readthedocs.io) [](https://pypi.org/project/hcloud/) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hcloud-1.33.2/README.md new/hcloud-1.35.0/README.md --- old/hcloud-1.33.2/README.md 2024-01-02 18:18:37.000000000 +0100 +++ new/hcloud-1.35.0/README.md 2024-04-02 19:10:45.000000000 +0200 @@ -2,6 +2,7 @@ [](https://github.com/hetznercloud/hcloud-python/actions/workflows/test.yml) [](https://github.com/hetznercloud/hcloud-python/actions/workflows/lint.yml) +[](https://codecov.io/github/hetznercloud/hcloud-python/tree/main) [](https://hcloud-python.readthedocs.io) [](https://pypi.org/project/hcloud/) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hcloud-1.33.2/hcloud/__version__.py new/hcloud-1.35.0/hcloud/__version__.py --- old/hcloud-1.33.2/hcloud/__version__.py 2024-01-02 18:18:37.000000000 +0100 +++ new/hcloud-1.35.0/hcloud/__version__.py 2024-04-02 19:10:45.000000000 +0200 @@ -1,3 +1,3 @@ from __future__ import annotations -VERSION = "1.33.2" # x-release-please-version +VERSION = "1.35.0" # x-release-please-version diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hcloud-1.33.2/hcloud/core/domain.py new/hcloud-1.35.0/hcloud/core/domain.py --- old/hcloud-1.33.2/hcloud/core/domain.py 2024-01-02 18:18:37.000000000 +0100 +++ new/hcloud-1.35.0/hcloud/core/domain.py 2024-04-02 19:10:45.000000000 +0200 @@ -34,6 +34,24 @@ return self.name raise ValueError("id or name must be set") + def has_id_or_name(self, id_or_name: int | str) -> bool: + """ + Return whether this domain has the same id or same name as the other. + + The domain calling this method MUST be a bound domain or be populated, otherwise + the comparison will not work as expected (e.g. the domains are the same but + cannot be equal, if one provides an id and the other the name). + """ + values: list[int | str] = [] + if self.id is not None: + values.append(self.id) + if self.name is not None: + values.append(self.name) + if not values: + raise ValueError("id or name must be set") + + return id_or_name in values + class Pagination(BaseDomain): __slots__ = ( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hcloud-1.33.2/hcloud/firewalls/domain.py new/hcloud-1.35.0/hcloud/firewalls/domain.py --- old/hcloud-1.33.2/hcloud/firewalls/domain.py 2024-01-02 18:18:37.000000000 +0100 +++ new/hcloud-1.35.0/hcloud/firewalls/domain.py 2024-04-02 19:10:45.000000000 +0200 @@ -4,7 +4,7 @@ from dateutil.parser import isoparse -from ..core import BaseDomain +from ..core import BaseDomain, DomainIdentityMixin if TYPE_CHECKING: from ..actions import BoundAction @@ -12,7 +12,7 @@ from .client import BoundFirewall -class Firewall(BaseDomain): +class Firewall(BaseDomain, DomainIdentityMixin): """Firewall Domain :param id: int diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hcloud-1.33.2/hcloud/floating_ips/domain.py new/hcloud-1.35.0/hcloud/floating_ips/domain.py --- old/hcloud-1.33.2/hcloud/floating_ips/domain.py 2024-01-02 18:18:37.000000000 +0100 +++ new/hcloud-1.35.0/hcloud/floating_ips/domain.py 2024-04-02 19:10:45.000000000 +0200 @@ -4,7 +4,7 @@ from dateutil.parser import isoparse -from ..core import BaseDomain +from ..core import BaseDomain, DomainIdentityMixin if TYPE_CHECKING: from ..actions import BoundAction @@ -13,7 +13,7 @@ from .client import BoundFloatingIP -class FloatingIP(BaseDomain): +class FloatingIP(BaseDomain, DomainIdentityMixin): """Floating IP Domain :param id: int diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hcloud-1.33.2/hcloud/images/client.py new/hcloud-1.35.0/hcloud/images/client.py --- old/hcloud-1.33.2/hcloud/images/client.py 2024-01-02 18:18:37.000000000 +0100 +++ new/hcloud-1.35.0/hcloud/images/client.py 2024-04-02 19:10:45.000000000 +0200 @@ -1,5 +1,6 @@ from __future__ import annotations +import warnings from typing import TYPE_CHECKING, Any, NamedTuple from ..actions import ActionsPageResult, BoundAction, ResourceActionsClient @@ -305,18 +306,27 @@ def get_by_name(self, name: str) -> BoundImage | None: """Get image by name - Deprecated: Use get_by_name_and_architecture instead. - :param name: str Used to get image by name. :return: :class:`BoundImage <hcloud.images.client.BoundImage>` + + .. deprecated:: 1.19 + Use :func:`hcloud.images.client.ImagesClient.get_by_name_and_architecture` instead. """ + warnings.warn( + "The 'hcloud.images.client.ImagesClient.get_by_name' method is deprecated, please use the " + "'hcloud.images.client.ImagesClient.get_by_name_and_architecture' method instead.", + DeprecationWarning, + stacklevel=2, + ) return self._get_first_by(name=name) def get_by_name_and_architecture( self, name: str, architecture: str, + *, + include_deprecated: bool | None = None, ) -> BoundImage | None: """Get image by name @@ -324,9 +334,15 @@ Used to identify the image. :param architecture: str Used to identify the image. + :param include_deprecated: bool (optional) + Include deprecated images. Default: False :return: :class:`BoundImage <hcloud.images.client.BoundImage>` """ - return self._get_first_by(name=name, architecture=[architecture]) + return self._get_first_by( + name=name, + architecture=[architecture], + include_deprecated=include_deprecated, + ) def update( self, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hcloud-1.33.2/hcloud/load_balancers/domain.py new/hcloud-1.35.0/hcloud/load_balancers/domain.py --- old/hcloud-1.33.2/hcloud/load_balancers/domain.py 2024-01-02 18:18:37.000000000 +0100 +++ new/hcloud-1.35.0/hcloud/load_balancers/domain.py 2024-04-02 19:10:45.000000000 +0200 @@ -4,7 +4,7 @@ from dateutil.parser import isoparse -from ..core import BaseDomain +from ..core import BaseDomain, DomainIdentityMixin if TYPE_CHECKING: from ..actions import BoundAction @@ -17,7 +17,7 @@ from .client import BoundLoadBalancer -class LoadBalancer(BaseDomain): +class LoadBalancer(BaseDomain, DomainIdentityMixin): """LoadBalancer Domain :param id: int @@ -76,7 +76,7 @@ id: int, name: str | None = None, public_net: PublicNetwork | None = None, - private_net: PrivateNet | None = None, + private_net: list[PrivateNet] | None = None, location: BoundLocation | None = None, algorithm: LoadBalancerAlgorithm | None = None, services: list[LoadBalancerService] | None = None, @@ -200,9 +200,9 @@ if self.health_check.http.response is not None: health_check_http["response"] = self.health_check.http.response if self.health_check.http.status_codes is not None: - health_check_http[ - "status_codes" - ] = self.health_check.http.status_codes + health_check_http["status_codes"] = ( + self.health_check.http.status_codes + ) if self.health_check.http.tls is not None: health_check_http["tls"] = self.health_check.http.tls diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hcloud-1.33.2/hcloud/networks/domain.py new/hcloud-1.35.0/hcloud/networks/domain.py --- old/hcloud-1.33.2/hcloud/networks/domain.py 2024-01-02 18:18:37.000000000 +0100 +++ new/hcloud-1.35.0/hcloud/networks/domain.py 2024-04-02 19:10:45.000000000 +0200 @@ -4,7 +4,7 @@ from dateutil.parser import isoparse -from ..core import BaseDomain +from ..core import BaseDomain, DomainIdentityMixin if TYPE_CHECKING: from ..actions import BoundAction @@ -12,7 +12,7 @@ from .client import BoundNetwork -class Network(BaseDomain): +class Network(BaseDomain, DomainIdentityMixin): """Network Domain :param id: int diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hcloud-1.33.2/hcloud/placement_groups/domain.py new/hcloud-1.35.0/hcloud/placement_groups/domain.py --- old/hcloud-1.33.2/hcloud/placement_groups/domain.py 2024-01-02 18:18:37.000000000 +0100 +++ new/hcloud-1.35.0/hcloud/placement_groups/domain.py 2024-04-02 19:10:45.000000000 +0200 @@ -4,14 +4,14 @@ from dateutil.parser import isoparse -from ..core import BaseDomain +from ..core import BaseDomain, DomainIdentityMixin if TYPE_CHECKING: from ..actions import BoundAction from .client import BoundPlacementGroup -class PlacementGroup(BaseDomain): +class PlacementGroup(BaseDomain, DomainIdentityMixin): """Placement Group Domain :param id: int diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hcloud-1.33.2/hcloud/primary_ips/domain.py new/hcloud-1.35.0/hcloud/primary_ips/domain.py --- old/hcloud-1.33.2/hcloud/primary_ips/domain.py 2024-01-02 18:18:37.000000000 +0100 +++ new/hcloud-1.35.0/hcloud/primary_ips/domain.py 2024-04-02 19:10:45.000000000 +0200 @@ -4,7 +4,7 @@ from dateutil.parser import isoparse -from ..core import BaseDomain +from ..core import BaseDomain, DomainIdentityMixin if TYPE_CHECKING: from ..actions import BoundAction @@ -12,7 +12,7 @@ from .client import BoundPrimaryIP -class PrimaryIP(BaseDomain): +class PrimaryIP(BaseDomain, DomainIdentityMixin): """Primary IP Domain :param id: int diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hcloud-1.33.2/hcloud/servers/domain.py new/hcloud-1.35.0/hcloud/servers/domain.py --- old/hcloud-1.33.2/hcloud/servers/domain.py 2024-01-02 18:18:37.000000000 +0100 +++ new/hcloud-1.35.0/hcloud/servers/domain.py 2024-04-02 19:10:45.000000000 +0200 @@ -4,7 +4,7 @@ from dateutil.parser import isoparse -from ..core import BaseDomain +from ..core import BaseDomain, DomainIdentityMixin if TYPE_CHECKING: from ..actions import BoundAction @@ -22,7 +22,7 @@ from .client import BoundServer -class Server(BaseDomain): +class Server(BaseDomain, DomainIdentityMixin): """Server Domain :param id: int diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hcloud-1.33.2/hcloud.egg-info/PKG-INFO new/hcloud-1.35.0/hcloud.egg-info/PKG-INFO --- old/hcloud-1.33.2/hcloud.egg-info/PKG-INFO 2024-01-02 18:18:54.000000000 +0100 +++ new/hcloud-1.35.0/hcloud.egg-info/PKG-INFO 2024-04-02 19:11:00.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: hcloud -Version: 1.33.2 +Version: 1.35.0 Summary: Official Hetzner Cloud python library Home-page: https://github.com/hetznercloud/hcloud-python Author: Hetzner Cloud GmbH @@ -30,12 +30,13 @@ Requires-Dist: sphinx<7.3,>=7.2.2; extra == "docs" Requires-Dist: sphinx-rtd-theme<2.1,>=2; extra == "docs" Requires-Dist: myst-parser<2.1,>=2.0.0; extra == "docs" -Requires-Dist: watchdog<3.1,>=3.0.0; extra == "docs" +Requires-Dist: watchdog<4.1,>=4; extra == "docs" Provides-Extra: test Requires-Dist: coverage<7.5,>=7.4; extra == "test" -Requires-Dist: pylint<3.1,>=3; extra == "test" -Requires-Dist: pytest<7.5,>=7.4; extra == "test" -Requires-Dist: mypy<1.9,>=1.8; extra == "test" +Requires-Dist: pylint<3.2,>=3; extra == "test" +Requires-Dist: pytest<8.2,>=8; extra == "test" +Requires-Dist: pytest-cov<5.1,>=5; extra == "test" +Requires-Dist: mypy<1.10,>=1.9; extra == "test" Requires-Dist: types-python-dateutil; extra == "test" Requires-Dist: types-requests; extra == "test" @@ -43,6 +44,7 @@ [](https://github.com/hetznercloud/hcloud-python/actions/workflows/test.yml) [](https://github.com/hetznercloud/hcloud-python/actions/workflows/lint.yml) +[](https://codecov.io/github/hetznercloud/hcloud-python/tree/main) [](https://hcloud-python.readthedocs.io) [](https://pypi.org/project/hcloud/) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hcloud-1.33.2/hcloud.egg-info/requires.txt new/hcloud-1.35.0/hcloud.egg-info/requires.txt --- old/hcloud-1.33.2/hcloud.egg-info/requires.txt 2024-01-02 18:18:54.000000000 +0100 +++ new/hcloud-1.35.0/hcloud.egg-info/requires.txt 2024-04-02 19:11:00.000000000 +0200 @@ -5,12 +5,13 @@ sphinx<7.3,>=7.2.2 sphinx-rtd-theme<2.1,>=2 myst-parser<2.1,>=2.0.0 -watchdog<3.1,>=3.0.0 +watchdog<4.1,>=4 [test] coverage<7.5,>=7.4 -pylint<3.1,>=3 -pytest<7.5,>=7.4 -mypy<1.9,>=1.8 +pylint<3.2,>=3 +pytest<8.2,>=8 +pytest-cov<5.1,>=5 +mypy<1.10,>=1.9 types-python-dateutil types-requests diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hcloud-1.33.2/setup.py new/hcloud-1.35.0/setup.py --- old/hcloud-1.33.2/setup.py 2024-01-02 18:18:37.000000000 +0100 +++ new/hcloud-1.35.0/setup.py 2024-04-02 19:10:45.000000000 +0200 @@ -48,13 +48,14 @@ "sphinx>=7.2.2,<7.3", "sphinx-rtd-theme>=2,<2.1", "myst-parser>=2.0.0,<2.1", - "watchdog>=3.0.0,<3.1", + "watchdog>=4,<4.1", ], "test": [ "coverage>=7.4,<7.5", - "pylint>=3,<3.1", - "pytest>=7.4,<7.5", - "mypy>=1.8,<1.9", + "pylint>=3,<3.2", + "pytest>=8,<8.2", + "pytest-cov>=5,<5.1", + "mypy>=1.9,<1.10", "types-python-dateutil", "types-requests", ], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hcloud-1.33.2/tests/unit/core/test_domain.py new/hcloud-1.35.0/tests/unit/core/test_domain.py --- old/hcloud-1.33.2/tests/unit/core/test_domain.py 2024-01-02 18:18:37.000000000 +0100 +++ new/hcloud-1.35.0/tests/unit/core/test_domain.py 2024-04-02 19:10:45.000000000 +0200 @@ -65,10 +65,25 @@ domain = SomeDomain() with pytest.raises(ValueError) as exception_info: - domain.id_or_name + _ = domain.id_or_name error = exception_info.value assert str(error) == "id or name must be set" + @pytest.mark.parametrize( + "other, expected", + [ + (SomeDomain(id=1), True), + (SomeDomain(name="name1"), True), + (SomeDomain(id=1, name="name1"), True), + (SomeDomain(id=2), False), + (SomeDomain(name="name2"), False), + (SomeDomain(id=2, name="name2"), False), + ], + ) + def test_has_id_or_name_exception(self, other, expected): + domain = SomeDomain(id=1, name="name1") + assert domain.has_id_or_name(other.id_or_name) == expected + class ActionDomain(BaseDomain, DomainIdentityMixin): __slots__ = ("id", "name", "started")