Skip to content

Commit

Permalink
feat: revert remove python-dateutil dependency (#231)
Browse files Browse the repository at this point in the history
This reverts commit 8ea4aa0.

Fixes #226
  • Loading branch information
jooola authored Jul 3, 2023
1 parent 27f21bc commit 945bfde
Show file tree
Hide file tree
Showing 20 changed files with 32 additions and 64 deletions.
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

0 comments on commit 945bfde

Please sign in to comment.