Skip to content

Commit

Permalink
Update python requirements to 3.10 (#73)
Browse files Browse the repository at this point in the history
* change badge to 3.10

* fix lint

* bump version

* Return None if an attribute is not present in the snapshot

* Change python version to be exactly 3.10

* Bump version

* fix req

* lint

---------

Co-authored-by: dlopes7 <[email protected]>
  • Loading branch information
radu-stefan-dt and dlopes7 committed Jul 3, 2024
1 parent 69c9add commit c54ef21
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Dynatrace Extensions Python SDK

[![PyPI - Version](https://img.shields.io/pypi/v/dt-extensions-sdk.svg)](https://pypi.org/project/dt-extensions-sdk)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/dt-extensions-sdk.svg)](https://pypi.org/project/dt-extensions-sdk)
[![PyPI - Python Version](https://img.shields.io/badge/python-3.10-blue)](https://img.shields.io/badge/python-3.10-blue)

-----

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Requirements
``dt-extensions-sdk`` requires only the following dependencies to be
present in the environment.

- Python >= 3.10
- Python 3.10

Installing from PyPI
^^^^^^^^^^^^^^^^^^^^
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/migration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Migrating EF1 Extensions
Requirements
============

* `Python 3.10 or later <https://www.python.org/downloads/>`_
* `Python 3.10 <https://www.python.org/downloads/>`_
* ``dt-extensions-sdk`` installed and in your ``PATH`` (you can run with ``dt-sdk --help``).
* `VSCode <https://code.visualstudio.com>`_ with the `Dynatrace Extensions <https://marketplace.visualstudio.com/items?itemName=DynatracePlatformExtensions.dynatrace-extensions>`_ extension installed.

Expand Down
1 change: 0 additions & 1 deletion dynatrace_extension/sdk/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ def __init__(self, name: str = "") -> None:
api_logger.info(starting_message)
api_logger.info("-" * len(starting_message))


def __repr__(self):
return f"{self.__class__.__name__}(name={self.extension_name}, version={self.extension_version})"

Expand Down
6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "dt-extensions-sdk"
dynamic = ["version"]
description = ''
readme = "README.md"
requires-python = ">=3.10"
requires-python = ">=3.10,<3.11"
license = "MIT"
keywords = []
authors = [
Expand All @@ -17,8 +17,6 @@ classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
Expand Down Expand Up @@ -65,7 +63,7 @@ cov = [
]

[[tool.hatch.envs.all.matrix]]
python = ["3.7", "3.8", "3.9", "3.10", "3.11"]
python = ["3.10"]

[tool.hatch.envs.lint]
detached = true
Expand Down

0 comments on commit c54ef21

Please sign in to comment.