Skip to content

Commit 8e910de

Browse files
committed
ONE-26714: [Python SDK] prepare release 1.2.1 (GA)
- readme bug fixes - changed version info - bug fix: min. stub version corrected - adapted dev. status; this release is no longer in BETA state
1 parent fe06fda commit 8e910de

File tree

7 files changed

+14
-11
lines changed

7 files changed

+14
-11
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ init_result = oneagent.initialize()
121121
print('OneAgent SDK initialization result' + repr(init_result))
122122
if init_result:
123123
print('SDK should work (but agent might be inactive).')
124-
if not init_result:
125-
print('SDK will definitely not work (i.e. functions will be no-ops).')
124+
else:
125+
print('SDK will definitely not work (i.e. functions will be no-ops):', init_result)
126126
```
127127

128128
See the API documentation for the [`initialize` function](https://dynatrace.github.io/OneAgent-SDK-for-Python/docs/sdkref.html#oneagent.initialize)
@@ -453,7 +453,7 @@ to the respective messaging tracer, which is an outgoing message tracer in the e
453453
```python
454454
msi_handle = sdk.create_messaging_system_info(
455455
'myMessagingSystem', 'requestQueue', MessagingDestinationType.QUEUE,
456-
ChannelType.TCP_IP, '10.11.12.13')
456+
oneagent.sdk.Channel(oneagent.sdk.ChannelType.TCP_IP, '10.11.12.13'))
457457

458458
with msi_handle:
459459
with sdk.trace_outgoing_message(msi_handle) as tracer:
@@ -481,7 +481,7 @@ the received message. Therefore two different tracers are being used:
481481
```python
482482
msi_handle = sdk.create_messaging_system_info(
483483
'myMessagingSystem', 'requestQueue', MessagingDestinationType.QUEUE,
484-
ChannelType.TCP_IP, '10.11.12.13')
484+
oneagent.sdk.Channel(oneagent.sdk.ChannelType.TCP_IP, '10.11.12.13'))
485485

486486
with msi_handle:
487487
# Create the receive tracer for incoming messages.
@@ -508,7 +508,7 @@ IncomingMessageReceiveTracer - just trace processing of the message by using the
508508
```python
509509
msi_handle = sdk.create_messaging_system_info(
510510
'myMessagingSystem', 'requestQueue', MessagingDestinationType.QUEUE,
511-
ChannelType.TCP_IP, '10.11.12.13')
511+
oneagent.sdk.Channel(oneagent.sdk.ChannelType.TCP_IP, '10.11.12.13'))
512512

513513
def on_message_received(message):
514514
# Get the Dynatrace tag from the message.

docs/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
# import sys
3636
# sys.path.insert(0, os.path.abspath('.'))
3737

38+
import datetime
39+
3840
from oneagent import __version__ as version
3941

4042
# Fix spurious "= None" for instance attributes
@@ -77,7 +79,7 @@ def iad_add_directive_header(self, sig):
7779

7880
# General information about the project.
7981
project = 'Dynatrace OneAgent and SDK for Python'
80-
copyright = '2017, Dynatrace LLC'
82+
copyright = str(datetime.datetime.now().year) + ', Dynatrace LLC'
8183
author = 'Dynatrace LLC'
8284

8385
# The version info for the project you're documenting, acts as replacement for

pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pytest]
2+
markers = dependsnative : marks a test to depend on the stub binary

samples/basic-sdk-sample/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
name='oneagent-sdk-basic-sample',
2929
version='0.0', # This sample is not separately versioned
3030

31-
install_requires=['oneagent-sdk==1.*,>=1.0'],
31+
install_requires=['oneagent-sdk==1.*,>=1.2'],
3232

3333
description='OneAgent SDK for Python: Basic sample application',
3434
long_description=long_description,

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
'Version {} normalizes to {}'.format(
7474
__version__, parse_version(__version__)))
7575

76-
7776
def unsupported_msg(plat_name):
7877
try:
7978
import pip
@@ -295,7 +294,7 @@ def main():
295294
maintainer_email='[email protected]',
296295
license='Apache License 2.0',
297296
classifiers=[
298-
'Development Status :: 4 - Beta',
297+
'Development Status :: 5 - Production/Stable',
299298
'Intended Audience :: Developers',
300299
'License :: OSI Approved',
301300
'License :: OSI Approved :: Apache Software License', # 2.0

src/oneagent/__init__.py

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

9191
# See https://www.python.org/dev/peps/pep-0440/ "Version Identification and
9292
# Dependency Specification"
93-
__version__ = '1.2.0'
93+
__version__ = '1.2.1'
9494

9595
logger = logging.getLogger('py_sdk')
9696
logger.setLevel(logging.CRITICAL + 1) # Disabled by default

src/oneagent/_impl/native/sdkctypesiface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
CCSID_UTF16_BE = 1201
4141
CCSID_UTF16_LE = 1203
4242

43-
min_stub_version = OnesdkStubVersion(1, 3, 1)
43+
min_stub_version = OnesdkStubVersion(1, 4, 1)
4444
max_stub_version = OnesdkStubVersion(2, 0, 0)
4545

4646
bool_t = ctypes.c_int32

0 commit comments

Comments
 (0)