kiwitcms-django-plugin 11.3__tar.gz → 16.1__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.
Files changed (20) hide show
  1. {kiwitcms-django-plugin-11.3/kiwitcms_django_plugin.egg-info → kiwitcms_django_plugin-16.1}/PKG-INFO +38 -4
  2. {kiwitcms-django-plugin-11.3 → kiwitcms_django_plugin-16.1}/README.rst +19 -0
  3. {kiwitcms-django-plugin-11.3 → kiwitcms_django_plugin-16.1/kiwitcms_django_plugin.egg-info}/PKG-INFO +38 -4
  4. {kiwitcms-django-plugin-11.3 → kiwitcms_django_plugin-16.1}/kiwitcms_django_plugin.egg-info/SOURCES.txt +1 -0
  5. kiwitcms_django_plugin-16.1/kiwitcms_django_plugin.egg-info/requires.txt +2 -0
  6. kiwitcms_django_plugin-16.1/requirements.txt +2 -0
  7. kiwitcms_django_plugin-16.1/setup.cfg +19 -0
  8. kiwitcms_django_plugin-16.1/setup.py +53 -0
  9. {kiwitcms-django-plugin-11.3 → kiwitcms_django_plugin-16.1}/tcms_django_plugin/__init__.py +0 -1
  10. {kiwitcms-django-plugin-11.3 → kiwitcms_django_plugin-16.1}/tcms_django_plugin/result.py +32 -40
  11. kiwitcms_django_plugin-16.1/tcms_django_plugin/version.py +1 -0
  12. kiwitcms-django-plugin-11.3/kiwitcms_django_plugin.egg-info/requires.txt +0 -2
  13. kiwitcms-django-plugin-11.3/requirements.txt +0 -2
  14. kiwitcms-django-plugin-11.3/setup.cfg +0 -4
  15. kiwitcms-django-plugin-11.3/setup.py +0 -46
  16. kiwitcms-django-plugin-11.3/tcms_django_plugin/version.py +0 -1
  17. {kiwitcms-django-plugin-11.3 → kiwitcms_django_plugin-16.1}/LICENSE +0 -0
  18. {kiwitcms-django-plugin-11.3 → kiwitcms_django_plugin-16.1}/MANIFEST.in +0 -0
  19. {kiwitcms-django-plugin-11.3 → kiwitcms_django_plugin-16.1}/kiwitcms_django_plugin.egg-info/dependency_links.txt +0 -0
  20. {kiwitcms-django-plugin-11.3 → kiwitcms_django_plugin-16.1}/kiwitcms_django_plugin.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: kiwitcms-django-plugin
3
- Version: 11.3
3
+ Version: 16.1
4
4
  Summary: Django test runner plugin for Kiwi TCMS
5
5
  Home-page: https://github.com/kiwitcms/django-plugin
6
6
  Author: Bryan Mutai
@@ -14,14 +14,29 @@ Classifier: Intended Audience :: System Administrators
14
14
  Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
15
15
  Classifier: Operating System :: POSIX
16
16
  Classifier: Programming Language :: Python
17
- Classifier: Programming Language :: Python :: 3.7
17
+ Classifier: Programming Language :: Python :: 3.12
18
18
  Classifier: Topic :: Software Development
19
19
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
20
  Classifier: Topic :: Software Development :: Quality Assurance
21
21
  Classifier: Topic :: Software Development :: Testing
22
- Requires-Python: >=3.6
22
+ Requires-Python: >=3.12
23
23
  Description-Content-Type: text/x-rst
24
24
  License-File: LICENSE
25
+ Requires-Dist: Django>=6
26
+ Requires-Dist: tcms-api>=12.7
27
+ Dynamic: author
28
+ Dynamic: author-email
29
+ Dynamic: classifier
30
+ Dynamic: description
31
+ Dynamic: description-content-type
32
+ Dynamic: home-page
33
+ Dynamic: license
34
+ Dynamic: license-file
35
+ Dynamic: maintainer
36
+ Dynamic: maintainer-email
37
+ Dynamic: requires-dist
38
+ Dynamic: requires-python
39
+ Dynamic: summary
25
40
 
26
41
  Django Test Runner plugin for Kiwi TCMS
27
42
  =======================================
@@ -74,6 +89,25 @@ to determine what to do.
74
89
  Changelog
75
90
  ---------
76
91
 
92
+ v16.1 (16 Jun 2026)
93
+ ~~~~~~~~~~~~~~~~~~~
94
+
95
+ - Minimum supported Django version is now 6, because
96
+ ``DebugSQLTestResult`` now relies on Django's internal
97
+ ``_read_logger_stream()`` API (the ``debug_sql_stream`` attribute was
98
+ removed in Django 6)
99
+ - Require Python >= 3.12
100
+
101
+
102
+ v12.7 (10 Dec 2023)
103
+ ~~~~~~~~~~~~~~~~~~~
104
+
105
+ - Update tcms-api from 11.4 to 12.7
106
+ - Build & test with Python 3.11
107
+ - Refactor issues found by newer pylint
108
+ - Refactor issues found by CodeQL
109
+ - Reformat source code with Black
110
+
77
111
 
78
112
  v11.3 (15 Jul 2022)
79
113
  ~~~~~~~~~~~~~~~~~~~
@@ -49,6 +49,25 @@ to determine what to do.
49
49
  Changelog
50
50
  ---------
51
51
 
52
+ v16.1 (16 Jun 2026)
53
+ ~~~~~~~~~~~~~~~~~~~
54
+
55
+ - Minimum supported Django version is now 6, because
56
+ ``DebugSQLTestResult`` now relies on Django's internal
57
+ ``_read_logger_stream()`` API (the ``debug_sql_stream`` attribute was
58
+ removed in Django 6)
59
+ - Require Python >= 3.12
60
+
61
+
62
+ v12.7 (10 Dec 2023)
63
+ ~~~~~~~~~~~~~~~~~~~
64
+
65
+ - Update tcms-api from 11.4 to 12.7
66
+ - Build & test with Python 3.11
67
+ - Refactor issues found by newer pylint
68
+ - Refactor issues found by CodeQL
69
+ - Reformat source code with Black
70
+
52
71
 
53
72
  v11.3 (15 Jul 2022)
54
73
  ~~~~~~~~~~~~~~~~~~~
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: kiwitcms-django-plugin
3
- Version: 11.3
3
+ Version: 16.1
4
4
  Summary: Django test runner plugin for Kiwi TCMS
5
5
  Home-page: https://github.com/kiwitcms/django-plugin
6
6
  Author: Bryan Mutai
@@ -14,14 +14,29 @@ Classifier: Intended Audience :: System Administrators
14
14
  Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
15
15
  Classifier: Operating System :: POSIX
16
16
  Classifier: Programming Language :: Python
17
- Classifier: Programming Language :: Python :: 3.7
17
+ Classifier: Programming Language :: Python :: 3.12
18
18
  Classifier: Topic :: Software Development
19
19
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
20
  Classifier: Topic :: Software Development :: Quality Assurance
21
21
  Classifier: Topic :: Software Development :: Testing
22
- Requires-Python: >=3.6
22
+ Requires-Python: >=3.12
23
23
  Description-Content-Type: text/x-rst
24
24
  License-File: LICENSE
25
+ Requires-Dist: Django>=6
26
+ Requires-Dist: tcms-api>=12.7
27
+ Dynamic: author
28
+ Dynamic: author-email
29
+ Dynamic: classifier
30
+ Dynamic: description
31
+ Dynamic: description-content-type
32
+ Dynamic: home-page
33
+ Dynamic: license
34
+ Dynamic: license-file
35
+ Dynamic: maintainer
36
+ Dynamic: maintainer-email
37
+ Dynamic: requires-dist
38
+ Dynamic: requires-python
39
+ Dynamic: summary
25
40
 
26
41
  Django Test Runner plugin for Kiwi TCMS
27
42
  =======================================
@@ -74,6 +89,25 @@ to determine what to do.
74
89
  Changelog
75
90
  ---------
76
91
 
92
+ v16.1 (16 Jun 2026)
93
+ ~~~~~~~~~~~~~~~~~~~
94
+
95
+ - Minimum supported Django version is now 6, because
96
+ ``DebugSQLTestResult`` now relies on Django's internal
97
+ ``_read_logger_stream()`` API (the ``debug_sql_stream`` attribute was
98
+ removed in Django 6)
99
+ - Require Python >= 3.12
100
+
101
+
102
+ v12.7 (10 Dec 2023)
103
+ ~~~~~~~~~~~~~~~~~~~
104
+
105
+ - Update tcms-api from 11.4 to 12.7
106
+ - Build & test with Python 3.11
107
+ - Refactor issues found by newer pylint
108
+ - Refactor issues found by CodeQL
109
+ - Reformat source code with Black
110
+
77
111
 
78
112
  v11.3 (15 Jul 2022)
79
113
  ~~~~~~~~~~~~~~~~~~~
@@ -2,6 +2,7 @@ LICENSE
2
2
  MANIFEST.in
3
3
  README.rst
4
4
  requirements.txt
5
+ setup.cfg
5
6
  setup.py
6
7
  kiwitcms_django_plugin.egg-info/PKG-INFO
7
8
  kiwitcms_django_plugin.egg-info/SOURCES.txt
@@ -0,0 +1,2 @@
1
+ Django>=6
2
+ tcms-api>=12.7
@@ -0,0 +1,2 @@
1
+ Django>=6
2
+ tcms-api>=12.7
@@ -0,0 +1,19 @@
1
+ [flake8]
2
+ max-line-length = 102
3
+ extend-ignore = E203
4
+
5
+ [isort]
6
+ multi_line_output = 3
7
+ include_trailing_comma = True
8
+ force_grid_wrap = 0
9
+ use_parentheses = True
10
+ ensure_newline_before_comments = True
11
+ line_length = 88
12
+
13
+ [pylint]
14
+ max-line-length = 102
15
+
16
+ [egg_info]
17
+ tag_build =
18
+ tag_date = 0
19
+
@@ -0,0 +1,53 @@
1
+ #!/usr/bin/env python
2
+ import os
3
+ from setuptools import setup
4
+
5
+
6
+ def get_version():
7
+ version_py_path = os.path.join("tcms_django_plugin", "version.py")
8
+ with open(version_py_path, encoding="utf-8") as version_file:
9
+ version = version_file.read()
10
+ return (
11
+ version.replace(" ", "")
12
+ .replace("__version__=", "")
13
+ .strip()
14
+ .strip("'")
15
+ .strip('"')
16
+ )
17
+
18
+
19
+ with open("README.rst", encoding="utf-8") as file:
20
+ LONG_DESCRIPTION = file.read()
21
+
22
+ with open("requirements.txt", encoding="utf-8") as file:
23
+ REQUIREMENTS = file.readlines()
24
+
25
+ setup(
26
+ name="kiwitcms-django-plugin",
27
+ version=get_version(),
28
+ packages=["tcms_django_plugin"],
29
+ description="Django test runner plugin for Kiwi TCMS",
30
+ long_description=LONG_DESCRIPTION,
31
+ long_description_content_type="text/x-rst",
32
+ author="Bryan Mutai",
33
+ author_email="work@bryanmutai.co",
34
+ maintainer="Kiwi TCMS",
35
+ maintainer_email="info@kiwitcms.org",
36
+ license="GPLv3",
37
+ url="https://github.com/kiwitcms/django-plugin",
38
+ python_requires=">=3.12",
39
+ install_requires=REQUIREMENTS,
40
+ classifiers=[
41
+ "Development Status :: 3 - Alpha",
42
+ "Intended Audience :: Developers",
43
+ "Intended Audience :: System Administrators",
44
+ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
45
+ "Operating System :: POSIX",
46
+ "Programming Language :: Python",
47
+ "Programming Language :: Python :: 3.12",
48
+ "Topic :: Software Development",
49
+ "Topic :: Software Development :: Libraries :: Python Modules",
50
+ "Topic :: Software Development :: Quality Assurance",
51
+ "Topic :: Software Development :: Testing",
52
+ ],
53
+ )
@@ -8,7 +8,6 @@ from .result import TestResult, DebugSQLTestResult
8
8
 
9
9
 
10
10
  class TestRunner(DiscoverRunner):
11
-
12
11
  def get_resultclass(self):
13
12
  if self.debug_sql:
14
13
  return DebugSQLTestResult
@@ -11,12 +11,12 @@ class Backend(plugin_helpers.Backend):
11
11
 
12
12
 
13
13
  class KiwiTCMSIntegrationMixin: # pylint: disable=invalid-name
14
- prefix = ''
14
+ prefix = ""
15
15
 
16
16
  def __init__(self, stream, descriptions, verbosity, **kwargs):
17
17
  super().__init__(stream, descriptions, verbosity, **kwargs)
18
18
  self.backend = Backend(prefix=self.prefix)
19
- self.comment = ''
19
+ self.comment = ""
20
20
  self.status_id = 0
21
21
  self.test_executions = []
22
22
  self.failed_subtest = False
@@ -27,44 +27,41 @@ class KiwiTCMSIntegrationMixin: # pylint: disable=invalid-name
27
27
 
28
28
  def startTest(self, test):
29
29
  super().startTest(test)
30
- test_case, _ = self.backend.test_case_get_or_create(
31
- self.getDescription(test))
32
- self.backend.add_test_case_to_plan(
33
- test_case['id'],
34
- self.backend.plan_id)
30
+ test_case, _ = self.backend.test_case_get_or_create(self.getDescription(test))
31
+ self.backend.add_test_case_to_plan(test_case["id"], self.backend.plan_id)
35
32
  self.test_executions = self.backend.add_test_case_to_run(
36
- test_case['id'],
37
- self.backend.run_id)
33
+ test_case["id"], self.backend.run_id
34
+ )
38
35
 
39
36
  def addSuccess(self, test):
40
37
  super().addSuccess(test)
41
- self.status_id = self.backend.get_status_id('PASSED')
38
+ self.status_id = self.backend.get_status_id("PASSED")
42
39
 
43
40
  def addError(self, test, err):
44
41
  super().addError(test, err)
45
- self.status_id = self.backend.get_status_id('ERROR')
42
+ self.status_id = self.backend.get_status_id("ERROR")
46
43
  self.comment = self.errors[-1][1]
47
44
 
48
45
  def addFailure(self, test, err):
49
46
  super().addFailure(test, err)
50
- self.status_id = self.backend.get_status_id('FAILED')
47
+ self.status_id = self.backend.get_status_id("FAILED")
51
48
  self.comment = self.failures[-1][1]
52
49
 
53
50
  def addSkip(self, test, reason):
54
51
  super().addSkip(test, reason)
55
- self.status_id = self.backend.get_status_id('WAIVED')
52
+ self.status_id = self.backend.get_status_id("WAIVED")
56
53
  self.comment = reason
57
54
 
58
55
  def addExpectedFailure(self, test, err):
59
56
  super().addExpectedFailure(test, err)
60
- self.status_id = self.backend.get_status_id('PASSED')
57
+ self.status_id = self.backend.get_status_id("PASSED")
61
58
  expected_failure = self.expectedFailures[-1][1]
62
- self.comment = f'Expected failure:\n\n{expected_failure}'
59
+ self.comment = f"Expected failure:\n\n{expected_failure}"
63
60
 
64
61
  def addUnexpectedSuccess(self, test):
65
62
  super().addUnexpectedSuccess(test)
66
- self.status_id = self.backend.get_status_id('FAILED')
67
- self.comment = 'Test unexpectedly passed.'
63
+ self.status_id = self.backend.get_status_id("FAILED")
64
+ self.comment = "Test unexpectedly passed."
68
65
 
69
66
  def addSubTest(self, test, subtest, err):
70
67
  super().addSubTest(test, subtest, err)
@@ -73,19 +70,17 @@ class KiwiTCMSIntegrationMixin: # pylint: disable=invalid-name
73
70
  exception_info = self._exc_info_to_string(err, test)
74
71
 
75
72
  if issubclass(err[0], test.failureException):
76
- status_id = self.backend.get_status_id('FAILED')
73
+ status_id = self.backend.get_status_id("FAILED")
77
74
  for execution in self.test_executions:
78
75
  self.backend.update_test_execution(
79
- execution["id"],
80
- status_id,
81
- f"Subtest failure:{exception_info}")
76
+ execution["id"], status_id, f"Subtest failure:{exception_info}"
77
+ )
82
78
  else:
83
- status_id = self.backend.get_status_id('ERROR')
79
+ status_id = self.backend.get_status_id("ERROR")
84
80
  for execution in self.test_executions:
85
81
  self.backend.update_test_execution(
86
- execution["id"],
87
- status_id,
88
- f"Subtest error:{exception_info}")
82
+ execution["id"], status_id, f"Subtest error:{exception_info}"
83
+ )
89
84
 
90
85
  def stopTest(self, test):
91
86
  super().stopTest(test)
@@ -94,10 +89,10 @@ class KiwiTCMSIntegrationMixin: # pylint: disable=invalid-name
94
89
  return
95
90
 
96
91
  for execution in self.test_executions:
97
- self.backend.update_test_execution(execution["id"],
98
- self.status_id,
99
- self.comment)
100
- self.comment = ''
92
+ self.backend.update_test_execution(
93
+ execution["id"], self.status_id, self.comment
94
+ )
95
+ self.comment = ""
101
96
 
102
97
  def stopTestRun(self):
103
98
  super().stopTestRun()
@@ -105,30 +100,27 @@ class KiwiTCMSIntegrationMixin: # pylint: disable=invalid-name
105
100
 
106
101
 
107
102
  class TestResult(KiwiTCMSIntegrationMixin, TextTestResult):
108
- prefix = '[DJANGO]'
103
+ prefix = "[DJANGO]"
109
104
 
110
105
 
111
106
  class DebugSQLTestResult(KiwiTCMSIntegrationMixin, DjangoDebugSQLResult):
112
- prefix = '[DJANGO --debug-sql]'
107
+ prefix = "[DJANGO --debug-sql]"
113
108
 
114
109
  def addError(self, test, err):
115
110
  super().addError(test, err)
116
- self.debug_sql_stream.seek(0)
111
+ sql_debug = self._read_logger_stream()
117
112
  for execution in self.test_executions:
118
- self.backend.add_comment(execution["id"],
119
- self.debug_sql_stream.read())
113
+ self.backend.add_comment(execution["id"], sql_debug)
120
114
 
121
115
  def addFailure(self, test, err):
122
116
  super().addFailure(test, err)
123
- self.debug_sql_stream.seek(0)
117
+ sql_debug = self._read_logger_stream()
124
118
  for execution in self.test_executions:
125
- self.backend.add_comment(execution["id"],
126
- self.debug_sql_stream.read())
119
+ self.backend.add_comment(execution["id"], sql_debug)
127
120
 
128
121
  def addSubTest(self, test, subtest, err):
129
122
  super().addSubTest(test, subtest, err)
130
123
  if err:
131
- self.debug_sql_stream.seek(0)
124
+ sql_debug = self._read_logger_stream()
132
125
  for execution in self.test_executions:
133
- self.backend.add_comment(execution["id"],
134
- self.debug_sql_stream.read())
126
+ self.backend.add_comment(execution["id"], sql_debug)
@@ -0,0 +1 @@
1
+ __version__ = "16.1"
@@ -1,2 +0,0 @@
1
- Django
2
- tcms-api>=11.4
@@ -1,2 +0,0 @@
1
- Django
2
- tcms-api>=11.4
@@ -1,4 +0,0 @@
1
- [egg_info]
2
- tag_build =
3
- tag_date = 0
4
-
@@ -1,46 +0,0 @@
1
- #!/usr/bin/env python
2
- import os
3
- from setuptools import setup
4
-
5
-
6
- def get_version():
7
- version_py_path = os.path.join('tcms_django_plugin', 'version.py')
8
- with open(version_py_path, encoding="utf-8") as version_file:
9
- version = version_file.read()
10
- return version.replace(
11
- ' ', ''
12
- ).replace('__version__=', '').strip().strip("'").strip('"')
13
-
14
-
15
- with open("README.rst", encoding="utf-8") as readme:
16
- LONG_DESCRIPTION = readme.read()
17
-
18
- REQUIREMENTS = open('requirements.txt', encoding="utf-8").readlines()
19
-
20
- setup(name='kiwitcms-django-plugin',
21
- version=get_version(),
22
- packages=['tcms_django_plugin'],
23
- description='Django test runner plugin for Kiwi TCMS',
24
- long_description=LONG_DESCRIPTION,
25
- long_description_content_type='text/x-rst',
26
- author='Bryan Mutai',
27
- author_email='work@bryanmutai.co',
28
- maintainer='Kiwi TCMS',
29
- maintainer_email='info@kiwitcms.org',
30
- license='GPLv3',
31
- url='https://github.com/kiwitcms/django-plugin',
32
- python_requires='>=3.6',
33
- install_requires=REQUIREMENTS,
34
- classifiers=[
35
- 'Development Status :: 3 - Alpha',
36
- 'Intended Audience :: Developers',
37
- 'Intended Audience :: System Administrators',
38
- 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
39
- 'Operating System :: POSIX',
40
- 'Programming Language :: Python',
41
- 'Programming Language :: Python :: 3.7',
42
- 'Topic :: Software Development',
43
- 'Topic :: Software Development :: Libraries :: Python Modules',
44
- 'Topic :: Software Development :: Quality Assurance',
45
- 'Topic :: Software Development :: Testing',
46
- ])
@@ -1 +0,0 @@
1
- __version__ = '11.3'