Skip to content

Commit a353447

Browse files
committed
Dynamic discovery for distribution.
1 parent c2c8b27 commit a353447

File tree

5 files changed

+18
-5
lines changed

5 files changed

+18
-5
lines changed

c8y_tk/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2020 Software AG,
2+
# Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA,
3+
# and/or its subsidiaries and/or its affiliates and/or their licensors.
4+
# Use, reproduction, transfer, publication or disclosure is prohibited except
5+
# as specifically provided for in your License Agreement with Software AG.

c8y_tk/notification2/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright (c) 2020 Software AG,
2+
# Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA,
3+
# and/or its subsidiaries and/or its affiliates and/or their licensors.
4+
# Use, reproduction, transfer, publication or disclosure is prohibited except
5+
# as specifically provided for in your License Agreement with Software AG.
6+
7+
from c8y_tk.notification2.listener import *
8+
9+
__all__ = ['Listener', 'AsyncListener']

samples/notification2_asynchronous.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
from c8y_api.app import SimpleCumulocityApp
1212
from c8y_api.model import ManagedObject
13-
from c8y_tk.notification2.listener import AsyncListener
13+
from c8y_tk.notification2 import AsyncListener
1414
from model.notification2 import Subscription
1515

1616
from tests import RandomNameGenerator

samples/notification2_synchronous.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
from c8y_api.app import SimpleCumulocityApp
1313
from c8y_api.model import ManagedObject, Subscription
14-
from c8y_tk.notification2.listener import Listener
14+
from c8y_tk.notification2 import Listener
1515

1616
from tests import RandomNameGenerator
1717
from util import load_dotenv

setup.cfg

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@ install_requires =
2323
Deprecated
2424
cachetools
2525

26-
packages =
27-
c8y_api
28-
c8y_tk
26+
packages = find:
2927

3028
[options.packages.find]
3129
exclude =
3230
integration_tests
3331
tests
3432
build
33+
util

0 commit comments

Comments
 (0)