Skip to content

Commit dbff66d

Browse files
committed
Version 1.5.2
1 parent 5743267 commit dbff66d

File tree

6 files changed

+25
-46
lines changed

6 files changed

+25
-46
lines changed

README.md

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ and make sure you are reading the [latest version of this document](https://gith
4141
* [Read the manual](#read-the-manual)
4242
* [Let us help you](#let-us-help-you)
4343
- [Release notes and announcements](#release-notes-and-announcements)
44-
* [Announcements in November 2023](#announcements-in-november-2023)
45-
* [Version 1.5.1](#version-151)
44+
* [Version 1.5.2](#version-152)
4645
- [License](#license)
4746

4847
<!-- tocstop -->
@@ -834,7 +833,7 @@ If you are viewing the [GitHub repository](https://github.com/Dynatrace/OneAgent
834833
[here](#documentation).
835834
- `tests/`, `test-util-src/`: Contains tests and test support files that are
836835
useful (only) for developers wanting to contribute to the SDK itself.
837-
- `setup.py`, `setup.cfg`, `MANIFEST.in`, `project.toml`: Development files
836+
- `setup.py`, `setup.cfg`, `MANIFEST.in`, `pyproject.toml`: Development files
838837
required for creating e.g. the PyPI package for the Python OneAgent SDK.
839838
- `tox.ini`, `pylintrc`: Supporting files for developing the SDK itself. See
840839
<https://tox.readthedocs.io/en/latest/> and <https://www.pylint.org/>.
@@ -890,19 +889,14 @@ SLAs apply according to the customer's support level.
890889
For additional updates, see also [OneAgent release notes](https://docs.dynatrace.com/docs/shortlink/release-notes-oneagent)
891890
and [End of support announcements](https://docs.dynatrace.com/docs/shortlink/eos-announcements#dynatrace-oneagent).
892891

892+
### Version 1.5.2
893893

894-
### Announcements in November 2023
895-
896-
* ⚠️ **Deprecation announcement for older SDK versions:** Version 1.4 has been put on the path to deprecation and will no longer be supported starting June 1, 2024. Only version 1.5 of the SDK (or any newer version) will be supported from that date on.
897-
* ⚠️ **Deprecation announcement for using any SDK version with older Python versions:** SDK support for Python 3.4.x, 3.5.x, 3.6.x and 3.7.x has been put on the path to deprecation and no version of the SDK will be supported on Python 3.4.x, 3.5.x and 3.6.x starting June 1, 2024.
898-
Usage of the SDK on 3.7.x will remain supported until September 1, 2024.
899-
All Python versions below 3.8.x are already declared End of Life by the Python.org project, and customers are encouraged to upgrade to a newer Python version that is also supported by Python.org.
900-
901-
### Version 1.5.1
894+
This is a bugfix release that only includes packaging changes, if the package is already installed and working, there is no immediate reason to upgrade.
902895

903896
Changes:
904-
905-
* Fixes support of Python 3.12 and newer
897+
* Fixes installation using uv 0.9.16 or newer on musl/Alpine platforms (this only allows installing the SDK stub without C/C++-SDK-based implementation)
898+
* Removes hard dependency on `pkg_resources`, which should allow installation with `setuptools>=81`.
899+
* Fixes filename of `pyproject.toml` to prevent potential issues with outdated or missing `setuptools`.
906900

907901
See <https://github.com/Dynatrace/OneAgent-SDK-for-Python/releases> for older releases.
908902

File renamed without changes.

setup.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[bdist_wheel]
2-
# Py 2 AND 3 compatible
2+
# Claim to be Py 2 AND 3 compatible because we don't dare to change it in a bugfix release;
3+
# However, this actually requires Python 3.8+.
34
universal=1
45

56
[metadata]

setup.py

Lines changed: 14 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@
3939
from setuptools.command.install import install
4040
from setuptools.command.build_ext import build_ext
4141

42-
from pkg_resources import parse_version
43-
44-
4542
try:
4643
from wheel.bdist_wheel import bdist_wheel
4744
except ImportError:
@@ -96,10 +93,15 @@ def get_version_from_version_py():
9693
if not __version__:
9794
__version__ = get_version_from_version_py()
9895

99-
if __version__ != str(parse_version(__version__)):
100-
raise AssertionError(
101-
'Version {} normalizes to {}'.format(
102-
__version__, parse_version(__version__)))
96+
try:
97+
from pkg_resources import parse_version
98+
except ImportError:
99+
pass
100+
else:
101+
if __version__ != str(parse_version(__version__)):
102+
raise AssertionError(
103+
'Version {} normalizes to {}'.format(
104+
__version__, parse_version(__version__)))
103105

104106
# This function was adapted from https://www.python.org/dev/peps/pep-0513/
105107
# (public domain)
@@ -136,7 +138,8 @@ def unsupported_msg(plat_name):
136138
if glibc_ver:
137139
glibc = '\nGNU libc version: ' + glibc_ver + '\n'
138140
elif os.name != 'nt':
139-
glibc = '\nNot using GNU libc. Note that musl libc is not supported.\n'
141+
glibc = ('\nNot using GNU libc. Note that musl libc is not supported' +
142+
' using OneAgent SDK for C/C++ implementation.\n')
140143
else:
141144
glibc = ''
142145

@@ -166,25 +169,8 @@ def compilefile(fname, mode='exec'):
166169
codestr = srcfile.read()
167170
return compile(codestr, fname, mode)
168171

169-
def adjust_plat_name(self):
170-
#pylint:disable=access-member-before-definition
171-
if self.plat_name is not None:
172-
return
173-
baseplat = get_platform()
174-
if baseplat.startswith('linux'):
175-
platname = baseplat.split('-', 2)
176-
platname[0] = 'manylinux1'
177-
#pylint:disable=attribute-defined-outside-init
178-
self.plat_name = '-'.join(platname)
179-
else:
180-
self.plat_name = baseplat
181-
182172
if bdist_wheel is not None:
183173
class BdistWheel(bdist_wheel):
184-
def finalize_options(self):
185-
adjust_plat_name(self)
186-
bdist_wheel.finalize_options(self)
187-
188174
def get_tag(self):
189175
plat_name = self.plat_name or get_platform()
190176
plat_name = plat_name.replace('-', '_').replace('.', '_')
@@ -354,6 +340,9 @@ def main():
354340
package_dir={'': 'src'},
355341
include_package_data=True,
356342
zip_safe=True,
343+
# Because we don't dare to change it in a bugfix release,
344+
# this is claiming a wider range than we actually support.
345+
# Should be ">=3.8", README.md is authoritative here.
357346
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
358347
cmdclass=cmdclss,
359348
name='oneagent-sdk',
@@ -374,12 +363,7 @@ def main():
374363
'License :: OSI Approved',
375364
'License :: OSI Approved :: Apache Software License', # 2.0
376365
'Programming Language :: Python',
377-
'Programming Language :: Python :: 2',
378-
'Programming Language :: Python :: 2.7',
379366
'Programming Language :: Python :: 3',
380-
'Programming Language :: Python :: 3.4',
381-
'Programming Language :: Python :: 3.5',
382-
'Programming Language :: Python :: 3.6',
383367
'Programming Language :: Python :: Implementation :: CPython',
384368
#'Programming Language :: Python :: Implementation :: PyPy',
385369
'Operating System :: POSIX :: Linux',

src/oneagent/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# That's the OneAgent SDK for Python version.
2222
# See https://www.python.org/dev/peps/pep-0440/ "Version Identification and
2323
# Dependency Specification"
24-
__version__ = '1.5.1'
24+
__version__ = '1.5.2'
2525

2626
# Define the OneAgent SDK for C/C++ version which should be shipped with this
2727
# Python SDK version.

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = lint, py{34,35,36,37,37,39,310,311,312}-test, docs
2+
envlist = lint, py{38,39,310,311,312}-test, docs
33
skip_missing_interpreters=true
44

55
[testenv]

0 commit comments

Comments
 (0)