Skip to content

Commit e4e9e28

Browse files
authored
Release v1.1.1
2 parents f13d799 + 2813f46 commit e4e9e28

File tree

9 files changed

+14
-22
lines changed

9 files changed

+14
-22
lines changed

.github/workflows/coverage.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
- name: Install dependencies
2121
run: |
2222
python -m pip install --upgrade pip
23-
pip install -r ./requirements.txt
2423
pip install coverage
2524
- name: Test with coverage
2625
run: |

.github/workflows/release.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jobs:
2828
run: |
2929
python -m pip install --upgrade pip
3030
pip install setuptools wheel
31-
pip install -r ./requirements.txt
3231
- name: Set version env
3332
run: |
3433
echo "LIBRARY_VERSION=$(python -c "import sys; sys.path.append('.'); from zabbix_utils.version import __version__; print(__version__)")" >> $GITHUB_ENV

.github/workflows/tests.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ jobs:
3232
- name: Install dependencies
3333
run: |
3434
python -m pip install --upgrade pip
35-
pip install -r ./requirements.txt
3635
pip install -r ./requirements-dev.txt
3736
pip install coverage
3837
- name: Lint with flake8

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [1.1.1](https://github.com/zabbix/python-zabbix-utils/compare/v1.1.0...v1.1.1) (2024-03-06)
2+
3+
### Changes:
4+
5+
- removed external requirements
6+
17
## [1.1.0](https://github.com/zabbix/python-zabbix-utils/compare/v1.0.3...v1.1.0) (2024-01-23)
28

39
### Breaking Changes:

requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
test_suite='tests',
4646
packages=["zabbix_utils"],
4747
tests_require=["unittest"],
48-
install_requires=["typing_extensions>=4.0.0;python_version<'3.11'"],
48+
install_requires=[],
4949
python_requires='>=3.8',
5050
project_urls={
5151
'Zabbix': 'https://www.zabbix.com/documentation/current',

zabbix_utils/api.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@
3535
from urllib.error import URLError
3636

3737
from typing import Callable, Union, Any, List
38-
# For Python less 3.11 compatibility
39-
try:
40-
from typing import Self # type: ignore
41-
except ImportError:
42-
from typing_extensions import Self
4338

4439
from .common import ModuleUtils
4540
from .logger import EmptyHandler, SensitiveFilter
@@ -74,7 +69,7 @@ def __getattr__(self, name: str) -> Callable:
7469
TypeError: Raises if gets unexpected arguments.
7570
7671
Returns:
77-
Self: Zabbix API method.
72+
Callable: Zabbix API method.
7873
"""
7974

8075
# For compatibility with Python less 3.9 versions
@@ -256,13 +251,13 @@ def __getattr__(self, name: str) -> Callable:
256251

257252
return APIObject(name, self)
258253

259-
def __enter__(self) -> Self:
254+
def __enter__(self) -> Callable:
260255
return self
261256

262257
def __exit__(self, *args) -> None:
263258
self.logout()
264259

265-
def __basic_auth(self, user: str, password: str) -> Self:
260+
def __basic_auth(self, user: str, password: str) -> None:
266261
"""Enable Basic Authentication using.
267262
268263
Args:
@@ -302,7 +297,7 @@ def version(self) -> APIVersion:
302297
return self.api_version()
303298

304299
def login(self, token: Union[str, None] = None, user: Union[str, None] = None,
305-
password: Union[str, None] = None) -> Self:
300+
password: Union[str, None] = None) -> None:
306301
"""Login to Zabbix API.
307302
308303
Args:

zabbix_utils/sender.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@
3030
from decimal import Decimal
3131

3232
from typing import Callable, Union
33-
# For Python less 3.11 compatibility
34-
try:
35-
from typing import Self # type: ignore
36-
except ImportError:
37-
from typing_extensions import Self
3833

3934
from .logger import EmptyHandler
4035
from .common import ZabbixProtocol
@@ -100,7 +95,7 @@ def parse(self, response: dict) -> dict:
10095

10196
return res
10297

103-
def add(self, response: dict, chunk: Union[int, None] = None) -> Self:
98+
def add(self, response: dict, chunk: Union[int, None] = None):
10499
"""Add and merge response data from Zabbix.
105100
106101
Args:
@@ -285,7 +280,7 @@ def nodes(self) -> list:
285280
"""Returns list of Node objects.
286281
287282
Returns:
288-
list List of Node objects
283+
list: List of Node objects
289284
"""
290285

291286
return self.__nodes

zabbix_utils/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
2323
# OTHER DEALINGS IN THE SOFTWARE.
2424

25-
__version__ = "1.1.0"
25+
__version__ = "1.1.1"
2626

2727
__min_supported__ = 5.0
2828
__max_supported__ = 7.0

0 commit comments

Comments
 (0)