Skip to content

Commit 4e82670

Browse files
committed
fix: standardize import paths from cloudevents_v1 to cloudevents.v1 to fix compatibility layer
Signed-off-by: Yurii Serhiichuk <[email protected]>
1 parent aea397a commit 4e82670

50 files changed

Lines changed: 175 additions & 175 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/cloudevents/v1/abstract/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
# License for the specific language governing permissions and limitations
1313
# under the License.
1414

15-
from cloudevents_v1.abstract.event import AnyCloudEvent, CloudEvent
15+
from cloudevents.v1.abstract.event import AnyCloudEvent, CloudEvent
1616

1717
__all__ = ["AnyCloudEvent", "CloudEvent"]

src/cloudevents/v1/conversion.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
import json
1717
import typing
1818

19-
from cloudevents_v1 import exceptions as cloud_exceptions
20-
from cloudevents_v1.abstract import AnyCloudEvent
21-
from cloudevents_v1.sdk import converters, marshaller, types
22-
from cloudevents_v1.sdk.converters import is_binary
23-
from cloudevents_v1.sdk.event import v03, v1
19+
from cloudevents.v1 import exceptions as cloud_exceptions
20+
from cloudevents.v1.abstract import AnyCloudEvent
21+
from cloudevents.v1.sdk import converters, marshaller, types
22+
from cloudevents.v1.sdk.converters import is_binary
23+
from cloudevents.v1.sdk.event import v03, v1
2424

2525

2626
def _best_effort_serialize_to_json( # type: ignore[no-untyped-def]

src/cloudevents/v1/http/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@
1313
# under the License.
1414

1515

16-
from cloudevents_v1.http.conversion import from_dict, from_http, from_json
17-
from cloudevents_v1.http.event import CloudEvent
18-
from cloudevents_v1.http.event_type import is_binary, is_structured # deprecated
19-
from cloudevents_v1.http.http_methods import ( # deprecated
16+
from cloudevents.v1.http.conversion import from_dict, from_http, from_json
17+
from cloudevents.v1.http.event import CloudEvent
18+
from cloudevents.v1.http.event_type import is_binary, is_structured # deprecated
19+
from cloudevents.v1.http.http_methods import ( # deprecated
2020
to_binary,
2121
to_binary_http,
2222
to_structured,
2323
to_structured_http,
2424
)
25-
from cloudevents_v1.http.json_methods import to_json # deprecated
25+
from cloudevents.v1.http.json_methods import to_json # deprecated
2626

2727
__all__ = [
2828
"to_binary",

src/cloudevents/v1/http/conversion.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414

1515
import typing
1616

17-
from cloudevents_v1.conversion import from_dict as _abstract_from_dict
18-
from cloudevents_v1.conversion import from_http as _abstract_from_http
19-
from cloudevents_v1.conversion import from_json as _abstract_from_json
20-
from cloudevents_v1.http.event import CloudEvent
21-
from cloudevents_v1.sdk import types
17+
from cloudevents.v1.conversion import from_dict as _abstract_from_dict
18+
from cloudevents.v1.conversion import from_http as _abstract_from_http
19+
from cloudevents.v1.conversion import from_json as _abstract_from_json
20+
from cloudevents.v1.http.event import CloudEvent
21+
from cloudevents.v1.sdk import types
2222

2323

2424
def from_json(

src/cloudevents/v1/http/event.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
import typing
1717
import uuid
1818

19-
import cloudevents_v1.exceptions as cloud_exceptions
20-
from cloudevents_v1 import abstract
21-
from cloudevents_v1.sdk.event import v03, v1
19+
import cloudevents.v1.exceptions as cloud_exceptions
20+
from cloudevents.v1 import abstract
21+
from cloudevents.v1.sdk.event import v03, v1
2222

2323
_required_by_version = {
2424
"1.0": v1.Event._ce_required_fields,

src/cloudevents/v1/http/event_type.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# under the License.
1414
import typing
1515

16-
from cloudevents_v1.sdk.converters import is_binary as _moved_is_binary
17-
from cloudevents_v1.sdk.converters import is_structured as _moved_is_structured
16+
from cloudevents.v1.sdk.converters import is_binary as _moved_is_binary
17+
from cloudevents.v1.sdk.converters import is_structured as _moved_is_structured
1818
from deprecation import deprecated
1919

2020
# THIS MODULE IS DEPRECATED, YOU SHOULD NOT ADD NEW FUNCTIONALLY HERE

src/cloudevents/v1/http/http_methods.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414

1515
import typing
1616

17-
from cloudevents_v1.abstract import AnyCloudEvent
18-
from cloudevents_v1.conversion import to_binary as _moved_to_binary
19-
from cloudevents_v1.conversion import to_structured as _moved_to_structured
20-
from cloudevents_v1.http.conversion import from_http as _moved_from_http
21-
from cloudevents_v1.http.event import CloudEvent
22-
from cloudevents_v1.sdk import types
23-
from deprecation import deprecated
17+
from cloudevents.v1.abstract import AnyCloudEvent
18+
from cloudevents.v1.conversion import to_binary as _moved_to_binary
19+
from cloudevents.v1.conversion import to_structured as _moved_to_structured
20+
from cloudevents.v1.http.conversion import from_http as _moved_from_http
21+
from cloudevents.v1.http.event import CloudEvent
22+
from cloudevents.v1.sdk import types
23+
from cloudevents.v1 import deprecated
2424

2525
# THIS MODULE IS DEPRECATED, YOU SHOULD NOT ADD NEW FUNCTIONALLY HERE
2626

src/cloudevents/v1/http/json_methods.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414

1515
import typing
1616

17-
from cloudevents_v1.abstract import AnyCloudEvent
18-
from cloudevents_v1.conversion import to_json as _moved_to_json
19-
from cloudevents_v1.http import CloudEvent
20-
from cloudevents_v1.http.conversion import from_json as _moved_from_json
21-
from cloudevents_v1.sdk import types
17+
from cloudevents.v1.abstract import AnyCloudEvent
18+
from cloudevents.v1.conversion import to_json as _moved_to_json
19+
from cloudevents.v1.http import CloudEvent
20+
from cloudevents.v1.http.conversion import from_json as _moved_from_json
21+
from cloudevents.v1.sdk import types
2222
from deprecation import deprecated
2323

2424
# THIS MODULE IS DEPRECATED, YOU SHOULD NOT ADD NEW FUNCTIONALLY HERE

src/cloudevents/v1/http/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# under the License.
1414
import typing
1515

16-
from cloudevents_v1.conversion import (
16+
from cloudevents.v1.conversion import (
1717
_best_effort_serialize_to_json as _moved_default_marshaller,
1818
)
1919
from deprecation import deprecated

src/cloudevents/v1/kafka/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# License for the specific language governing permissions and limitations
1313
# under the License.
1414

15-
from cloudevents_v1.kafka.conversion import (
15+
from cloudevents.v1.kafka.conversion import (
1616
KafkaMessage,
1717
KeyMapper,
1818
from_binary,

0 commit comments

Comments
 (0)