dg-itest 0.0.31.dev0__tar.gz → 0.0.31.dev1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/PKG-INFO +65 -8
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest/servers/test_handler/test_item.py +1 -1
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest/utils/logger.py +4 -4
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest.egg-info/PKG-INFO +65 -8
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest.egg-info/SOURCES.txt +3 -2
- dg_itest-0.0.31.dev1/dg_itest.egg-info/not-zip-safe +1 -0
- dg_itest-0.0.31.dev1/dg_itest.egg-info/requires.txt +50 -0
- dg_itest-0.0.31.dev1/publish.sh +9 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/requirements.txt +1 -6
- dg_itest-0.0.31.dev1/setup.py +33 -0
- dg_itest-0.0.31.dev0/dg_itest/_version.py +0 -1
- dg_itest-0.0.31.dev0/publish.sh +0 -31
- dg_itest-0.0.31.dev0/pyproject.toml +0 -34
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/.gitignore +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/README.md +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest/__init__.py +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest/servers/__init__.py +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest/servers/dg_servers/__init__.py +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest/servers/dg_servers/dg_after_handler.py +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest/servers/dg_servers/dg_requests.py +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest/servers/dg_servers/dg_singleton.py +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest/servers/file_handler/__init__.py +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest/servers/file_handler/file_handler.py +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest/servers/file_handler/xlsx_handler.py +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest/servers/file_handler/yaml_handler.py +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest/servers/test_handler/__init__.py +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest/servers/test_handler/test_file.py +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest/utils/__init__.py +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest/utils/cache.py +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest/utils/conftest.py +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest/utils/diff_helper.py +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest/utils/env_generater.py +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest/utils/file_helper.py +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest/utils/keywords.py +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest/utils/replace.py +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest/utils/string_helper.py +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest.egg-info/dependency_links.txt +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest.egg-info/top_level.txt +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/setup.cfg +0 -0
- {dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/test/test_replace.py +0 -0
|
@@ -1,13 +1,70 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
|
-
Name:
|
|
3
|
-
Version: 0.0.31.
|
|
4
|
-
Summary:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Requires-Python: >=3.7
|
|
2
|
+
Name: dg_itest
|
|
3
|
+
Version: 0.0.31.dev1
|
|
4
|
+
Summary: 接口自动化测试框架
|
|
5
|
+
Home-page: https://github.com/yaitza/dg-itest
|
|
6
|
+
Download-URL: https://github.com/yaitza/dg-itest/releases
|
|
7
|
+
Author: yaitza
|
|
8
|
+
Author-email: yaitza@foxmail.com
|
|
10
9
|
Description-Content-Type: text/markdown
|
|
10
|
+
Requires-Dist: allure-pytest==2.13.1
|
|
11
|
+
Requires-Dist: allure-python-commons==2.13.1
|
|
12
|
+
Requires-Dist: attrs==23.1.0
|
|
13
|
+
Requires-Dist: black==25.1.0
|
|
14
|
+
Requires-Dist: bleach==6.0.0
|
|
15
|
+
Requires-Dist: certifi==2022.12.7
|
|
16
|
+
Requires-Dist: charset-normalizer==3.1.0
|
|
17
|
+
Requires-Dist: click==8.1.8
|
|
18
|
+
Requires-Dist: docutils==0.19
|
|
19
|
+
Requires-Dist: et-xmlfile==1.1.0
|
|
20
|
+
Requires-Dist: exceptiongroup==1.1.1
|
|
21
|
+
Requires-Dist: idna==3.4
|
|
22
|
+
Requires-Dist: importlib-metadata==6.6.0
|
|
23
|
+
Requires-Dist: iniconfig==2.0.0
|
|
24
|
+
Requires-Dist: jaraco.classes==3.2.3
|
|
25
|
+
Requires-Dist: jsonpath==0.82
|
|
26
|
+
Requires-Dist: jsonschema==4.24.0
|
|
27
|
+
Requires-Dist: jsonschema-specifications==2025.4.1
|
|
28
|
+
Requires-Dist: keyring==23.13.1
|
|
29
|
+
Requires-Dist: loguru==0.7.2
|
|
30
|
+
Requires-Dist: markdown-it-py==2.2.0
|
|
31
|
+
Requires-Dist: mdurl==0.1.2
|
|
32
|
+
Requires-Dist: more-itertools==9.1.0
|
|
33
|
+
Requires-Dist: mypy-extensions==1.0.0
|
|
34
|
+
Requires-Dist: openpyxl==3.1.2
|
|
35
|
+
Requires-Dist: packaging==23.1
|
|
36
|
+
Requires-Dist: pathspec==0.12.1
|
|
37
|
+
Requires-Dist: pkginfo==1.9.6
|
|
38
|
+
Requires-Dist: platformdirs==4.3.7
|
|
39
|
+
Requires-Dist: pluggy==1.6.0
|
|
40
|
+
Requires-Dist: py==1.11.0
|
|
41
|
+
Requires-Dist: Pygments==2.15.1
|
|
42
|
+
Requires-Dist: pytest==8.4.1
|
|
43
|
+
Requires-Dist: python-common-cache==0.1
|
|
44
|
+
Requires-Dist: PyYAML==6.0
|
|
45
|
+
Requires-Dist: readme-renderer==37.3
|
|
46
|
+
Requires-Dist: referencing==0.36.2
|
|
47
|
+
Requires-Dist: requests==2.28.2
|
|
48
|
+
Requires-Dist: requests-toolbelt==0.10.1
|
|
49
|
+
Requires-Dist: rfc3986==2.0.0
|
|
50
|
+
Requires-Dist: rich==13.3.4
|
|
51
|
+
Requires-Dist: rpds-py==0.25.1
|
|
52
|
+
Requires-Dist: six==1.16.0
|
|
53
|
+
Requires-Dist: toml==0.10.2
|
|
54
|
+
Requires-Dist: tomli==2.0.1
|
|
55
|
+
Requires-Dist: twine==4.0.2
|
|
56
|
+
Requires-Dist: typing_extensions==4.12.2
|
|
57
|
+
Requires-Dist: urllib3==1.26.15
|
|
58
|
+
Requires-Dist: webencodings==0.5.1
|
|
59
|
+
Requires-Dist: zipp==3.15.0
|
|
60
|
+
Dynamic: author
|
|
61
|
+
Dynamic: author-email
|
|
62
|
+
Dynamic: description
|
|
63
|
+
Dynamic: description-content-type
|
|
64
|
+
Dynamic: download-url
|
|
65
|
+
Dynamic: home-page
|
|
66
|
+
Dynamic: requires-dist
|
|
67
|
+
Dynamic: summary
|
|
11
68
|
|
|
12
69
|
# 1. 文档说明
|
|
13
70
|
|
|
@@ -46,7 +46,7 @@ class TestItem(pytest.Item):
|
|
|
46
46
|
exec_count += 1
|
|
47
47
|
except Exception:
|
|
48
48
|
logger.error(traceback.format_exc())
|
|
49
|
-
allure.attach(traceback.format_exc(), 'error details info')
|
|
49
|
+
allure.attach(traceback.format_exc(), 'error details info', attachment_type=allure.attachment_type.TEXT)
|
|
50
50
|
pytest.fail(f'用例:{self.name} 执行失败,请检查!')
|
|
51
51
|
# raise Exception(f'用例:{self.name} 执行失败,请检查!')
|
|
52
52
|
|
|
@@ -31,7 +31,7 @@ def log_attach(log_data: str, name='compare_result'):
|
|
|
31
31
|
:return:
|
|
32
32
|
"""
|
|
33
33
|
logger.debug(log_data)
|
|
34
|
-
allure.attach(log_data, name=name)
|
|
34
|
+
allure.attach(log_data, name=name, attachment_type=allure.attachment_type.TEXT)
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
def allure_log(func):
|
|
@@ -41,15 +41,15 @@ def allure_log(func):
|
|
|
41
41
|
start = 1000 * time.time()
|
|
42
42
|
logger.debug(f"======================== Begin: {func.__name__} =================================")
|
|
43
43
|
logger.debug(str(kwargs))
|
|
44
|
-
allure.attach(str(kwargs), name='kwargs')
|
|
44
|
+
allure.attach(str(kwargs), name='kwargs', attachment_type=allure.attachment_type.TEXT)
|
|
45
45
|
result = func(*args, **kwargs)
|
|
46
46
|
|
|
47
47
|
if hasattr(result, 'json'):
|
|
48
48
|
logger.debug(str(result.json()))
|
|
49
|
-
allure.attach(json.dumps(result.json(), sort_keys=True, indent=4, separators=(',', ':')).encode().decode("unicode_escape"), name='response')
|
|
49
|
+
allure.attach(json.dumps(result.json(), sort_keys=True, indent=4, separators=(',', ':')).encode().decode("unicode_escape"), name='response', attachment_type=allure.attachment_type.JSON)
|
|
50
50
|
else:
|
|
51
51
|
logger.debug(str(result))
|
|
52
|
-
allure.attach(str(result).encode().decode("unicode_escape"), name='response')
|
|
52
|
+
allure.attach(str(result).encode().decode("unicode_escape"), name='response', attachment_type=allure.attachment_type.TEXT)
|
|
53
53
|
end = 1000 * time.time()
|
|
54
54
|
logger.debug(f"============= End: {func.__name__}; cost time: {end - start}ms =============")
|
|
55
55
|
return result
|
|
@@ -1,13 +1,70 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
|
-
Name:
|
|
3
|
-
Version: 0.0.31.
|
|
4
|
-
Summary:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Requires-Python: >=3.7
|
|
2
|
+
Name: dg_itest
|
|
3
|
+
Version: 0.0.31.dev1
|
|
4
|
+
Summary: 接口自动化测试框架
|
|
5
|
+
Home-page: https://github.com/yaitza/dg-itest
|
|
6
|
+
Download-URL: https://github.com/yaitza/dg-itest/releases
|
|
7
|
+
Author: yaitza
|
|
8
|
+
Author-email: yaitza@foxmail.com
|
|
10
9
|
Description-Content-Type: text/markdown
|
|
10
|
+
Requires-Dist: allure-pytest==2.13.1
|
|
11
|
+
Requires-Dist: allure-python-commons==2.13.1
|
|
12
|
+
Requires-Dist: attrs==23.1.0
|
|
13
|
+
Requires-Dist: black==25.1.0
|
|
14
|
+
Requires-Dist: bleach==6.0.0
|
|
15
|
+
Requires-Dist: certifi==2022.12.7
|
|
16
|
+
Requires-Dist: charset-normalizer==3.1.0
|
|
17
|
+
Requires-Dist: click==8.1.8
|
|
18
|
+
Requires-Dist: docutils==0.19
|
|
19
|
+
Requires-Dist: et-xmlfile==1.1.0
|
|
20
|
+
Requires-Dist: exceptiongroup==1.1.1
|
|
21
|
+
Requires-Dist: idna==3.4
|
|
22
|
+
Requires-Dist: importlib-metadata==6.6.0
|
|
23
|
+
Requires-Dist: iniconfig==2.0.0
|
|
24
|
+
Requires-Dist: jaraco.classes==3.2.3
|
|
25
|
+
Requires-Dist: jsonpath==0.82
|
|
26
|
+
Requires-Dist: jsonschema==4.24.0
|
|
27
|
+
Requires-Dist: jsonschema-specifications==2025.4.1
|
|
28
|
+
Requires-Dist: keyring==23.13.1
|
|
29
|
+
Requires-Dist: loguru==0.7.2
|
|
30
|
+
Requires-Dist: markdown-it-py==2.2.0
|
|
31
|
+
Requires-Dist: mdurl==0.1.2
|
|
32
|
+
Requires-Dist: more-itertools==9.1.0
|
|
33
|
+
Requires-Dist: mypy-extensions==1.0.0
|
|
34
|
+
Requires-Dist: openpyxl==3.1.2
|
|
35
|
+
Requires-Dist: packaging==23.1
|
|
36
|
+
Requires-Dist: pathspec==0.12.1
|
|
37
|
+
Requires-Dist: pkginfo==1.9.6
|
|
38
|
+
Requires-Dist: platformdirs==4.3.7
|
|
39
|
+
Requires-Dist: pluggy==1.6.0
|
|
40
|
+
Requires-Dist: py==1.11.0
|
|
41
|
+
Requires-Dist: Pygments==2.15.1
|
|
42
|
+
Requires-Dist: pytest==8.4.1
|
|
43
|
+
Requires-Dist: python-common-cache==0.1
|
|
44
|
+
Requires-Dist: PyYAML==6.0
|
|
45
|
+
Requires-Dist: readme-renderer==37.3
|
|
46
|
+
Requires-Dist: referencing==0.36.2
|
|
47
|
+
Requires-Dist: requests==2.28.2
|
|
48
|
+
Requires-Dist: requests-toolbelt==0.10.1
|
|
49
|
+
Requires-Dist: rfc3986==2.0.0
|
|
50
|
+
Requires-Dist: rich==13.3.4
|
|
51
|
+
Requires-Dist: rpds-py==0.25.1
|
|
52
|
+
Requires-Dist: six==1.16.0
|
|
53
|
+
Requires-Dist: toml==0.10.2
|
|
54
|
+
Requires-Dist: tomli==2.0.1
|
|
55
|
+
Requires-Dist: twine==4.0.2
|
|
56
|
+
Requires-Dist: typing_extensions==4.12.2
|
|
57
|
+
Requires-Dist: urllib3==1.26.15
|
|
58
|
+
Requires-Dist: webencodings==0.5.1
|
|
59
|
+
Requires-Dist: zipp==3.15.0
|
|
60
|
+
Dynamic: author
|
|
61
|
+
Dynamic: author-email
|
|
62
|
+
Dynamic: description
|
|
63
|
+
Dynamic: description-content-type
|
|
64
|
+
Dynamic: download-url
|
|
65
|
+
Dynamic: home-page
|
|
66
|
+
Dynamic: requires-dist
|
|
67
|
+
Dynamic: summary
|
|
11
68
|
|
|
12
69
|
# 1. 文档说明
|
|
13
70
|
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
.gitignore
|
|
2
2
|
README.md
|
|
3
3
|
publish.sh
|
|
4
|
-
pyproject.toml
|
|
5
4
|
requirements.txt
|
|
5
|
+
setup.py
|
|
6
6
|
dg_itest/__init__.py
|
|
7
|
-
dg_itest/_version.py
|
|
8
7
|
dg_itest.egg-info/PKG-INFO
|
|
9
8
|
dg_itest.egg-info/SOURCES.txt
|
|
10
9
|
dg_itest.egg-info/dependency_links.txt
|
|
10
|
+
dg_itest.egg-info/not-zip-safe
|
|
11
|
+
dg_itest.egg-info/requires.txt
|
|
11
12
|
dg_itest.egg-info/top_level.txt
|
|
12
13
|
dg_itest/servers/__init__.py
|
|
13
14
|
dg_itest/servers/dg_servers/__init__.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
allure-pytest==2.13.1
|
|
2
|
+
allure-python-commons==2.13.1
|
|
3
|
+
attrs==23.1.0
|
|
4
|
+
black==25.1.0
|
|
5
|
+
bleach==6.0.0
|
|
6
|
+
certifi==2022.12.7
|
|
7
|
+
charset-normalizer==3.1.0
|
|
8
|
+
click==8.1.8
|
|
9
|
+
docutils==0.19
|
|
10
|
+
et-xmlfile==1.1.0
|
|
11
|
+
exceptiongroup==1.1.1
|
|
12
|
+
idna==3.4
|
|
13
|
+
importlib-metadata==6.6.0
|
|
14
|
+
iniconfig==2.0.0
|
|
15
|
+
jaraco.classes==3.2.3
|
|
16
|
+
jsonpath==0.82
|
|
17
|
+
jsonschema==4.24.0
|
|
18
|
+
jsonschema-specifications==2025.4.1
|
|
19
|
+
keyring==23.13.1
|
|
20
|
+
loguru==0.7.2
|
|
21
|
+
markdown-it-py==2.2.0
|
|
22
|
+
mdurl==0.1.2
|
|
23
|
+
more-itertools==9.1.0
|
|
24
|
+
mypy-extensions==1.0.0
|
|
25
|
+
openpyxl==3.1.2
|
|
26
|
+
packaging==23.1
|
|
27
|
+
pathspec==0.12.1
|
|
28
|
+
pkginfo==1.9.6
|
|
29
|
+
platformdirs==4.3.7
|
|
30
|
+
pluggy==1.6.0
|
|
31
|
+
py==1.11.0
|
|
32
|
+
Pygments==2.15.1
|
|
33
|
+
pytest==8.4.1
|
|
34
|
+
python-common-cache==0.1
|
|
35
|
+
PyYAML==6.0
|
|
36
|
+
readme-renderer==37.3
|
|
37
|
+
referencing==0.36.2
|
|
38
|
+
requests==2.28.2
|
|
39
|
+
requests-toolbelt==0.10.1
|
|
40
|
+
rfc3986==2.0.0
|
|
41
|
+
rich==13.3.4
|
|
42
|
+
rpds-py==0.25.1
|
|
43
|
+
six==1.16.0
|
|
44
|
+
toml==0.10.2
|
|
45
|
+
tomli==2.0.1
|
|
46
|
+
twine==4.0.2
|
|
47
|
+
typing_extensions==4.12.2
|
|
48
|
+
urllib3==1.26.15
|
|
49
|
+
webencodings==0.5.1
|
|
50
|
+
zipp==3.15.0
|
|
@@ -9,13 +9,10 @@ click==8.1.8
|
|
|
9
9
|
docutils==0.19
|
|
10
10
|
et-xmlfile==1.1.0
|
|
11
11
|
exceptiongroup==1.1.1
|
|
12
|
-
id==1.5.0
|
|
13
12
|
idna==3.4
|
|
14
13
|
importlib-metadata==6.6.0
|
|
15
14
|
iniconfig==2.0.0
|
|
16
15
|
jaraco.classes==3.2.3
|
|
17
|
-
jaraco.context==6.0.1
|
|
18
|
-
jaraco.functools==4.3.0
|
|
19
16
|
jsonpath==0.82
|
|
20
17
|
jsonschema==4.24.0
|
|
21
18
|
jsonschema-specifications==2025.4.1
|
|
@@ -25,7 +22,6 @@ markdown-it-py==2.2.0
|
|
|
25
22
|
mdurl==0.1.2
|
|
26
23
|
more-itertools==9.1.0
|
|
27
24
|
mypy-extensions==1.0.0
|
|
28
|
-
nh3==0.3.1
|
|
29
25
|
openpyxl==3.1.2
|
|
30
26
|
packaging==23.1
|
|
31
27
|
pathspec==0.12.1
|
|
@@ -36,7 +32,7 @@ py==1.11.0
|
|
|
36
32
|
Pygments==2.15.1
|
|
37
33
|
pytest==8.4.1
|
|
38
34
|
python-common-cache==0.1
|
|
39
|
-
PyYAML==6.0
|
|
35
|
+
PyYAML==6.0
|
|
40
36
|
readme-renderer==37.3
|
|
41
37
|
referencing==0.36.2
|
|
42
38
|
requests==2.28.2
|
|
@@ -44,7 +40,6 @@ requests-toolbelt==0.10.1
|
|
|
44
40
|
rfc3986==2.0.0
|
|
45
41
|
rich==13.3.4
|
|
46
42
|
rpds-py==0.25.1
|
|
47
|
-
setuptools==80.9.0
|
|
48
43
|
six==1.16.0
|
|
49
44
|
toml==0.10.2
|
|
50
45
|
tomli==2.0.1
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
# @Time : 2023/4/20 11:17
|
|
4
|
+
# @Author : yaitza
|
|
5
|
+
# @Email : yaitza@foxmail.com
|
|
6
|
+
|
|
7
|
+
import os
|
|
8
|
+
from setuptools import setup, find_packages
|
|
9
|
+
|
|
10
|
+
def get_requirements():
|
|
11
|
+
requirements = 'requirements.txt'
|
|
12
|
+
if not os.path.exists(requirements): # install from tar
|
|
13
|
+
requirements = 'dg_itest.egg-info/requires.txt'
|
|
14
|
+
with open(requirements) as fp:
|
|
15
|
+
install_requires = fp.read()
|
|
16
|
+
return install_requires.split('\n')
|
|
17
|
+
|
|
18
|
+
with open("README.md", mode='r', encoding="utf-8") as f:
|
|
19
|
+
readme = f.read()
|
|
20
|
+
|
|
21
|
+
setup(name='dg_itest',
|
|
22
|
+
version='0.0.31.dev1',
|
|
23
|
+
description='接口自动化测试框架',
|
|
24
|
+
long_description=readme,
|
|
25
|
+
long_description_content_type="text/markdown",
|
|
26
|
+
url='https://github.com/yaitza/dg-itest',
|
|
27
|
+
download_url='https://github.com/yaitza/dg-itest/releases',
|
|
28
|
+
author='yaitza',
|
|
29
|
+
author_email='yaitza@foxmail.com',
|
|
30
|
+
packages=find_packages(),
|
|
31
|
+
package_data={'': ['*.py']},
|
|
32
|
+
install_requires=get_requirements(),
|
|
33
|
+
zip_safe=False)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.0.31.dev0"
|
dg_itest-0.0.31.dev0/publish.sh
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# !/bin/bash
|
|
2
|
-
|
|
3
|
-
rm -rf build
|
|
4
|
-
rm -rf dg_itest.egg-info
|
|
5
|
-
rm -rf dist
|
|
6
|
-
#
|
|
7
|
-
#python setup.py sdist
|
|
8
|
-
#python setup.py bdist_wheel
|
|
9
|
-
#twine upload dist/*
|
|
10
|
-
|
|
11
|
-
# 1. 确保工作目录干净
|
|
12
|
-
git status
|
|
13
|
-
|
|
14
|
-
# 2. 创建并推送标签
|
|
15
|
-
#git tag v0.0.30
|
|
16
|
-
#git push github --tags
|
|
17
|
-
|
|
18
|
-
# 安装最新工具
|
|
19
|
-
pip install --upgrade build twine
|
|
20
|
-
|
|
21
|
-
# 检查生成的版本号
|
|
22
|
-
python -c "import setuptools_scm; print(setuptools_scm.get_version(local_scheme='no-local-version'))"
|
|
23
|
-
|
|
24
|
-
# 构建包
|
|
25
|
-
python -m build
|
|
26
|
-
|
|
27
|
-
# 检查包元数据
|
|
28
|
-
twine check dist/*
|
|
29
|
-
|
|
30
|
-
# 上传到PyPI
|
|
31
|
-
twine upload dist/*
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
[build-system]
|
|
2
|
-
requires = ["setuptools>=45", "wheel", "setuptools_scm"]
|
|
3
|
-
build-backend = "setuptools.build_meta"
|
|
4
|
-
|
|
5
|
-
[project]
|
|
6
|
-
name = "dg-itest"
|
|
7
|
-
dynamic = ["version"]
|
|
8
|
-
authors = [
|
|
9
|
-
{name = "yaitza", email = "yaitza@foxmail.com"},
|
|
10
|
-
]
|
|
11
|
-
description = "API Automation Test Framework"
|
|
12
|
-
readme = "README.md"
|
|
13
|
-
requires-python = ">=3.7"
|
|
14
|
-
classifiers = [
|
|
15
|
-
"Programming Language :: Python :: 3",
|
|
16
|
-
"Operating System :: OS Independent",
|
|
17
|
-
]
|
|
18
|
-
|
|
19
|
-
[project.urls]
|
|
20
|
-
Homepage = "https://github.com/yaitza/dg-itest"
|
|
21
|
-
|
|
22
|
-
[tool.setuptools_scm]
|
|
23
|
-
write_to = "dg_itest/_version.py"
|
|
24
|
-
write_to_template = '__version__ = "{version}"'
|
|
25
|
-
# 本地方案:无本地版本(关键配置)
|
|
26
|
-
local_scheme = "no-local-version"
|
|
27
|
-
|
|
28
|
-
# Git 描述配置
|
|
29
|
-
git_describe_command = [
|
|
30
|
-
"git", "describe", "--dirty", "--tags", "--long",
|
|
31
|
-
"--match", "[0-9]*", "--match", "v[0-9]*"
|
|
32
|
-
]
|
|
33
|
-
# 仅从带版本号的标签生成版本
|
|
34
|
-
tag_regex = "^v?(?P<version>[0-9].*)$"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dg_itest-0.0.31.dev0 → dg_itest-0.0.31.dev1}/dg_itest/servers/dg_servers/dg_after_handler.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|