Skip to content

Commit b37a010

Browse files
committed
Update requirements
1 parent 83119ac commit b37a010

File tree

7 files changed

+28
-28
lines changed

7 files changed

+28
-28
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22

33
## [Unreleased]
4+
### Changed
5+
- `aiohttp` version updated to 3.13.4, by @HardNorth
6+
- `requests` version updated to 2.33.1, by @HardNorth
7+
### Removed
8+
- `aenum` dependency, by @HardNorth
49

510
## [5.7.1]
611
### Added

reportportal_client/__init__.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
import sys
1717
import warnings
18+
from enum import Enum
1819
from typing import Optional, TypedDict, Union
1920

2021
# noinspection PyUnreachableCode
@@ -23,8 +24,6 @@
2324
else:
2425
from typing_extensions import Unpack
2526

26-
import aenum # type: ignore
27-
2827
# noinspection PyProtectedMember
2928
from reportportal_client._internal.local import current, set_current
3029
from reportportal_client.aio.client import AsyncRPClient, BatchedRPClient, ThreadedRPClient
@@ -33,13 +32,13 @@
3332
from reportportal_client.steps import step
3433

3534

36-
class ClientType(aenum.Enum):
35+
class ClientType(Enum):
3736
"""Enum of possible type of ReportPortal clients."""
3837

39-
SYNC = aenum.auto()
40-
ASYNC = aenum.auto()
41-
ASYNC_THREAD = aenum.auto()
42-
ASYNC_BATCHED = aenum.auto()
38+
SYNC = 1
39+
ASYNC = 2
40+
ASYNC_THREAD = 3
41+
ASYNC_BATCHED = 4
4342

4443

4544
class _ClientOptions(TypedDict, total=False):

reportportal_client/_internal/aio/http.py

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

2424
import asyncio
2525
import sys
26+
from enum import Enum
2627
from types import TracebackType
2728
from typing import Any, Callable, Coroutine, Optional, Union
2829

29-
from aenum import Enum # type: ignore
3030
from aiohttp import ClientResponse, ClientResponseError
3131
from aiohttp import ClientSession as AioHttpClientSession
3232
from aiohttp import ServerConnectionError

reportportal_client/_internal/static/defines.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
# limitations under the License
1313

1414
"""This module provides RP client static objects and variables."""
15-
16-
import aenum as enum
15+
from enum import Enum, IntEnum
1716

1817
from reportportal_client.helpers import ATTRIBUTE_LENGTH_LIMIT as ATTRIBUTE_LIMIT
1918

@@ -47,7 +46,7 @@ def __nonzero__(self):
4746
__bool__ = __nonzero__ # Python3 support
4847

4948

50-
class ItemStartType(str, enum.Enum):
49+
class ItemStartType(str, Enum):
5150
"""This class defines item type mapping."""
5251

5352
BEFORE_CLASS = "before_class"
@@ -69,7 +68,7 @@ class ItemStartType(str, enum.Enum):
6968
AFTER_TEST = "after_test"
7069

7170

72-
class Priority(enum.IntEnum):
71+
class Priority(IntEnum):
7372
"""Generic enum for various operations' prioritization."""
7473

7574
PRIORITY_IMMEDIATE = 0x0

reportportal_client/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
import sys
2020
import warnings
2121
from abc import abstractmethod
22+
from enum import Enum
2223
from os import getenv
2324
from typing import Any, Optional, TextIO, Union
2425

25-
import aenum
2626
from requests.adapters import DEFAULT_RETRIES, HTTPAdapter, Retry
2727

2828
# noinspection PyProtectedMember
@@ -69,11 +69,11 @@
6969
logger.addHandler(logging.NullHandler())
7070

7171

72-
class OutputType(aenum.Enum):
72+
class OutputType(Enum):
7373
"""Enum of possible print output types."""
7474

75-
STDOUT = aenum.auto()
76-
STDERR = aenum.auto()
75+
STDOUT = 1
76+
STDERR = 2
7777

7878
def get_output(self) -> Optional[TextIO]:
7979
"""Return TextIO based on the current type."""

reportportal_client/core/worker.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@
1717
import queue
1818
import threading
1919
import warnings
20+
from enum import Enum
2021
from queue import PriorityQueue
2122
from threading import Thread, current_thread
2223
from typing import Optional, Union
2324

24-
from aenum import Enum, auto, unique
25-
2625
# noinspection PyProtectedMember
2726
from reportportal_client._internal.static.defines import Priority
2827
from reportportal_client.core.rp_requests import HttpRequest
@@ -33,15 +32,14 @@
3332
THREAD_TIMEOUT: int = 10 # Thread termination / wait timeout in seconds
3433

3534

36-
@unique
3735
class ControlCommand(Enum):
3836
"""This class stores worker control commands."""
3937

40-
CLEAR_QUEUE = auto()
41-
NOP = auto()
42-
REPORT_STATUS = auto()
43-
STOP = auto()
44-
STOP_IMMEDIATE = auto()
38+
CLEAR_QUEUE = 1
39+
NOP = 2
40+
REPORT_STATUS = 3
41+
STOP = 4
42+
STOP_IMMEDIATE = 5
4543

4644
def is_stop_cmd(self) -> bool:
4745
"""Verify if the command is the stop one."""

requirements.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
aenum==3.1.17
2-
typing-extensions==4.13.2
3-
requests==2.32.5
4-
aiohttp==3.11.18
1+
typing-extensions>=4.13.2, <=4.15.0
2+
requests==2.33.1
3+
aiohttp>=3.13.4, <=3.13.5
54
certifi==2026.2.25

0 commit comments

Comments
 (0)