Skip to content

Commit 29fdf8a

Browse files
committed
Intermediate changes
commit_hash:f57d2c87e0eaaab821faa70c3864ec0e7320355d
1 parent a7a5bcf commit 29fdf8a

File tree

14 files changed

+47
-31
lines changed

14 files changed

+47
-31
lines changed

contrib/python/allure-python-commons/.dist-info/METADATA

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Metadata-Version: 2.1
1+
Metadata-Version: 2.4
22
Name: allure-python-commons
3-
Version: 2.13.5
4-
Summary: ('Contains the API for end users as well as helper functions and classes to build Allure adapters for Python test frameworks',)
3+
Version: 2.14.0
4+
Summary: Contains the API for end users as well as helper functions and classes to build Allure adapters for Python test frameworks
55
Home-page: https://allurereport.org/
66
Author: Qameta Software Inc., Stanislav Seliverstov
77
Author-email: sseliverstov@qameta.io
@@ -15,16 +15,28 @@ Classifier: Topic :: Software Development :: Quality Assurance
1515
Classifier: Topic :: Software Development :: Testing
1616
Classifier: Programming Language :: Python :: 3
1717
Classifier: Programming Language :: Python :: 3 :: Only
18-
Classifier: Programming Language :: Python :: 3.7
1918
Classifier: Programming Language :: Python :: 3.8
2019
Classifier: Programming Language :: Python :: 3.9
2120
Classifier: Programming Language :: Python :: 3.10
2221
Classifier: Programming Language :: Python :: 3.11
2322
Classifier: Programming Language :: Python :: 3.12
23+
Classifier: Programming Language :: Python :: 3.13
2424
Requires-Python: >=3.6
2525
Description-Content-Type: text/markdown
26-
Requires-Dist: attrs >=16.0.0
27-
Requires-Dist: pluggy >=0.4.0
26+
Requires-Dist: attrs>=16.0.0
27+
Requires-Dist: pluggy>=0.4.0
28+
Dynamic: author
29+
Dynamic: author-email
30+
Dynamic: classifier
31+
Dynamic: description
32+
Dynamic: description-content-type
33+
Dynamic: home-page
34+
Dynamic: keywords
35+
Dynamic: license
36+
Dynamic: project-url
37+
Dynamic: requires-dist
38+
Dynamic: requires-python
39+
Dynamic: summary
2840

2941
## Allure Common API
3042

contrib/python/allure-python-commons/allure.py renamed to contrib/python/allure-python-commons/allure/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from allure_commons._allure import label
44
from allure_commons._allure import severity
55
from allure_commons._allure import tag
6-
from allure_commons._allure import id
6+
from allure_commons._allure import id # noqa: A004
77
from allure_commons._allure import suite, parent_suite, sub_suite
88
from allure_commons._allure import epic, feature, story
99
from allure_commons._allure import link, issue, testcase

contrib/python/allure-python-commons/allure/py.typed

Whitespace-only changes.

contrib/python/allure-python-commons/allure_commons/_allure.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from functools import wraps
2-
from typing import Any, Callable, TypeVar
2+
from typing import Any, Callable, TypeVar, Union, overload
33

44
from allure_commons._core import plugin_manager
55
from allure_commons.types import LabelType, LinkType, ParameterMode
@@ -133,7 +133,7 @@ def link(url, link_type=LinkType.LINK, name=None):
133133
plugin_manager.hook.add_link(url=url, link_type=link_type, name=name)
134134

135135
@staticmethod
136-
def parameter(name, value, excluded=None, mode: ParameterMode = None):
136+
def parameter(name, value, excluded=None, mode: Union[ParameterMode, None] = None):
137137
plugin_manager.hook.add_parameter(name=name, value=value, excluded=excluded, mode=mode)
138138

139139
@staticmethod
@@ -161,6 +161,16 @@ def manual():
161161
return Dynamic.label(LabelType.MANUAL, True)
162162

163163

164+
@overload
165+
def step(title: str) -> "StepContext":
166+
...
167+
168+
169+
@overload
170+
def step(title: _TFunc) -> _TFunc:
171+
...
172+
173+
164174
def step(title):
165175
if callable(title):
166176
return StepContext(title.__name__, {})(title)
@@ -191,7 +201,7 @@ def impl(*a, **kw):
191201
with StepContext(self.title.format(*args, **params), params):
192202
return func(*a, **kw)
193203

194-
return impl
204+
return impl # type: ignore
195205

196206

197207
class Attach:

contrib/python/allure-python-commons/allure_commons/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class AllureFileLogger:
1515
def __init__(self, report_dir, clean=False):
1616
self._report_dir = Path(report_dir).absolute()
1717
if self._report_dir.is_dir() and clean:
18-
shutil.rmtree(self._report_dir)
18+
shutil.rmtree(self._report_dir, ignore_errors=True)
1919
self._report_dir.mkdir(parents=True, exist_ok=True)
2020

2121
def _report_item(self, item):

contrib/python/allure-python-commons/allure_commons/model2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class TestResult(ExecutableItem):
5353

5454
@attrs
5555
class TestStepResult(ExecutableItem):
56-
id = attrib(default=None)
56+
id = attrib(default=None) # noqa: A003
5757

5858

5959
@attrs
@@ -82,7 +82,7 @@ class Label:
8282

8383
@attrs
8484
class Link:
85-
type = attrib(default=None)
85+
type = attrib(default=None) # noqa: A003
8686
url = attrib(default=None)
8787
name = attrib(default=None)
8888

@@ -99,7 +99,7 @@ class StatusDetails:
9999
class Attachment:
100100
name = attrib(default=None)
101101
source = attrib(default=None)
102-
type = attrib(default=None)
102+
type = attrib(default=None) # noqa: A003
103103

104104

105105
class Status:

contrib/python/allure-python-commons/allure_commons/py.typed

Whitespace-only changes.

contrib/python/allure-python-commons/allure_commons/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __init__(self, mime_type, extension):
5353

5454
PNG = ("image/png", "png")
5555
JPG = ("image/jpg", "jpg")
56-
SVG = ("image/svg-xml", "svg")
56+
SVG = ("image/svg+xml", "svg")
5757
GIF = ("image/gif", "gif")
5858
BMP = ("image/bmp", "bmp")
5959
TIFF = ("image/tiff", "tiff")

contrib/python/allure-python-commons/ya.make

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
PY3_LIBRARY()
44

5-
VERSION(2.13.5)
5+
VERSION(2.14.0)
66

77
LICENSE(Apache-2.0)
88

@@ -15,7 +15,7 @@ NO_LINT()
1515

1616
PY_SRCS(
1717
TOP_LEVEL
18-
allure.py
18+
allure/__init__.py
1919
allure_commons/__init__.py
2020
allure_commons/_allure.py
2121
allure_commons/_core.py
@@ -33,6 +33,8 @@ RESOURCE_FILES(
3333
PREFIX contrib/python/allure-python-commons/
3434
.dist-info/METADATA
3535
.dist-info/top_level.txt
36+
allure/py.typed
37+
allure_commons/py.typed
3638
)
3739

3840
END()

contrib/python/argcomplete/py3/.dist-info/METADATA

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 2.4
22
Name: argcomplete
3-
Version: 3.6.1
3+
Version: 3.6.2
44
Summary: Bash tab completion for argparse
55
Project-URL: Homepage, https://github.com/kislyuk/argcomplete
66
Project-URL: Documentation, https://kislyuk.github.io/argcomplete

0 commit comments

Comments
 (0)