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

feat: revert remove python-dateutil dependency #231

Merged
merged 1 commit into from
Jul 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions hcloud/_compat.py

This file was deleted.

3 changes: 2 additions & 1 deletion hcloud/actions/domain.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .._compat import isoparse
from dateutil.parser import isoparse

from .._exceptions import HCloudException
from ..core.domain import BaseDomain

Expand Down
3 changes: 2 additions & 1 deletion hcloud/certificates/domain.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .._compat import isoparse
from dateutil.parser import isoparse

from ..core.domain import BaseDomain, DomainIdentityMixin


Expand Down
3 changes: 2 additions & 1 deletion hcloud/deprecation/domain.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .._compat import isoparse
from dateutil.parser import isoparse

from ..core.domain import BaseDomain


Expand Down
3 changes: 2 additions & 1 deletion hcloud/firewalls/domain.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .._compat import isoparse
from dateutil.parser import isoparse

from ..core.domain import BaseDomain


Expand Down
3 changes: 2 additions & 1 deletion hcloud/floating_ips/domain.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .._compat import isoparse
from dateutil.parser import isoparse

from ..core.domain import BaseDomain


Expand Down
3 changes: 2 additions & 1 deletion hcloud/images/domain.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .._compat import isoparse
from dateutil.parser import isoparse

from ..core.domain import BaseDomain, DomainIdentityMixin


Expand Down
3 changes: 2 additions & 1 deletion hcloud/isos/domain.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .._compat import isoparse
from dateutil.parser import isoparse

from ..core.domain import BaseDomain, DomainIdentityMixin


Expand Down
3 changes: 2 additions & 1 deletion hcloud/load_balancers/domain.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .._compat import isoparse
from dateutil.parser import isoparse

from ..core.domain import BaseDomain


Expand Down
3 changes: 2 additions & 1 deletion hcloud/networks/domain.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .._compat import isoparse
from dateutil.parser import isoparse

from ..core.domain import BaseDomain


Expand Down
3 changes: 2 additions & 1 deletion hcloud/placement_groups/domain.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .._compat import isoparse
from dateutil.parser import isoparse

from ..core.domain import BaseDomain


Expand Down
3 changes: 2 additions & 1 deletion hcloud/primary_ips/domain.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .._compat import isoparse
from dateutil.parser import isoparse

from ..core.domain import BaseDomain


Expand Down
3 changes: 2 additions & 1 deletion hcloud/servers/domain.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .._compat import isoparse
from dateutil.parser import isoparse

from ..core.domain import BaseDomain


Expand Down
3 changes: 2 additions & 1 deletion hcloud/ssh_keys/domain.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .._compat import isoparse
from dateutil.parser import isoparse

from ..core.domain import BaseDomain, DomainIdentityMixin


Expand Down
3 changes: 2 additions & 1 deletion hcloud/volumes/domain.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .._compat import isoparse
from dateutil.parser import isoparse

from ..core.domain import BaseDomain, DomainIdentityMixin


Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
],
python_requires=">=3.7",
install_requires=[
"python-dateutil>=2.7.5",
"requests>=2.20",
],
extras_require={
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/core/test_domain.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest
from dateutil.parser import isoparse

from hcloud._compat import isoparse
from hcloud.core.domain import (
BaseDomain,
DomainIdentityMixin,
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/networks/test_client.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from unittest import mock

import pytest
from dateutil.parser import isoparse

from hcloud._compat import isoparse
from hcloud.actions.client import BoundAction
from hcloud.networks.client import BoundNetwork, NetworksClient
from hcloud.networks.domain import Network, NetworkRoute, NetworkSubnet
Expand Down
36 changes: 0 additions & 36 deletions tests/unit/test_compat.py

This file was deleted.

2 changes: 1 addition & 1 deletion tests/unit/volumes/test_client.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from unittest import mock

import pytest
from dateutil.parser import isoparse

from hcloud._compat import isoparse
from hcloud.actions.client import BoundAction
from hcloud.locations.client import BoundLocation
from hcloud.locations.domain import Location
Expand Down