pytest-csv-params 2.2.2__tar.gz → 2.2.5__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 (21) hide show
  1. {pytest_csv_params-2.2.2 → pytest_csv_params-2.2.5}/PKG-INFO +8 -3
  2. {pytest_csv_params-2.2.2 → pytest_csv_params-2.2.5}/README.md +7 -2
  3. {pytest_csv_params-2.2.2 → pytest_csv_params-2.2.5}/_ptcsvp/version.py +11 -2
  4. {pytest_csv_params-2.2.2 → pytest_csv_params-2.2.5}/pyproject.toml +2 -1
  5. {pytest_csv_params-2.2.2 → pytest_csv_params-2.2.5}/.gitignore +0 -0
  6. {pytest_csv_params-2.2.2 → pytest_csv_params-2.2.5}/LICENSE.txt +0 -0
  7. {pytest_csv_params-2.2.2 → pytest_csv_params-2.2.5}/_ptcsvp/__init__.py +0 -0
  8. {pytest_csv_params-2.2.2 → pytest_csv_params-2.2.5}/_ptcsvp/cmdline.py +0 -0
  9. {pytest_csv_params-2.2.2 → pytest_csv_params-2.2.5}/_ptcsvp/configure.py +0 -0
  10. {pytest_csv_params-2.2.2 → pytest_csv_params-2.2.5}/_ptcsvp/exception.py +0 -0
  11. {pytest_csv_params-2.2.2 → pytest_csv_params-2.2.5}/_ptcsvp/parametrize.py +0 -0
  12. {pytest_csv_params-2.2.2 → pytest_csv_params-2.2.5}/_ptcsvp/plugin.py +0 -0
  13. {pytest_csv_params-2.2.2 → pytest_csv_params-2.2.5}/_ptcsvp/varname.py +0 -0
  14. {pytest_csv_params-2.2.2 → pytest_csv_params-2.2.5}/pytest_csv_params/__init__.py +0 -0
  15. {pytest_csv_params-2.2.2 → pytest_csv_params-2.2.5}/pytest_csv_params/decorator.py +0 -0
  16. {pytest_csv_params-2.2.2 → pytest_csv_params-2.2.5}/pytest_csv_params/dialect.py +0 -0
  17. {pytest_csv_params-2.2.2 → pytest_csv_params-2.2.5}/pytest_csv_params/exception.py +0 -0
  18. {pytest_csv_params-2.2.2 → pytest_csv_params-2.2.5}/pytest_csv_params/plugin.py +0 -0
  19. {pytest_csv_params-2.2.2 → pytest_csv_params-2.2.5}/pytest_csv_params/shortcut.py +0 -0
  20. {pytest_csv_params-2.2.2 → pytest_csv_params-2.2.5}/pytest_csv_params/types.py +0 -0
  21. {pytest_csv_params-2.2.2 → pytest_csv_params-2.2.5}/pytest_csv_params/warning.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: pytest-csv-params
3
- Version: 2.2.2
3
+ Version: 2.2.5
4
4
  Summary: Pytest plugin for Test Case Parametrization with CSV files
5
5
  Project-URL: repository, https://git.codebau.dev/pytest-plugins/pytest-csv-params
6
6
  Project-URL: homepage, https://git.codebau.dev/pytest-plugins/pytest-csv-params
@@ -34,14 +34,14 @@ Requires-Python: <3.16,>=3.10
34
34
  Requires-Dist: pytest<10,>=8.3
35
35
  Description-Content-Type: text/markdown
36
36
 
37
- from typing import Dict![pytest-csv-params](https://docs.codebau.dev/pytest-plugins/pytest-csv-params/_images/pytest-csv-params.png)
37
+ ![pytest-csv-params](https://docs.codebau.dev/pytest-plugins/pytest-csv-params/_images/pytest-csv-params.png)
38
38
 
39
39
  # pytest-csv-params
40
40
 
41
41
  A pytest plugin to parametrize data-driven tests by CSV files.
42
42
 
43
43
  ![CI Pipeline Build Status](https://build.codebau.dev/buildStatus/icon?job=pytest-csv-params&subject=CI+Pipeline)
44
- ![Carnary Build Status](https://build.codebau.dev/buildStatus/icon?job=pytest-csv-params_canary&subject=Carnary+Build)
44
+ ![Canary Build Status](https://build.codebau.dev/buildStatus/icon?job=pytest-csv-params_canary&subject=Canary+Build)
45
45
  [![PyPI - Downloads](https://img.shields.io/pypi/dw/pytest-csv-params?label=PyPI%20downloads&style=flat&logo=pypi)](https://pypi.org/project/pytest-csv-params/)
46
46
  [![PyPI - Version](https://img.shields.io/pypi/v/pytest-csv-params?label=PyPI%20version&style=flat&logo=pypi)](https://pypi.org/project/pytest-csv-params/)
47
47
  [![PyPI - Status](https://img.shields.io/pypi/status/pytest-csv-params?label=PyPI%20status&style=flat&logo=pypi)](https://pypi.org/project/pytest-csv-params/)
@@ -54,6 +54,11 @@ A pytest plugin to parametrize data-driven tests by CSV files.
54
54
 
55
55
  There's no operating system dependent code in this plugin, so it should run anywhere where pytest runs.
56
56
 
57
+ **Attention!**
58
+
59
+ - One of the next versions will **drop Pytest 8.x support**
60
+ - One of the next versions will **drop Python 3.10 support**
61
+
57
62
  ## Installation
58
63
 
59
64
  Simply install it with pip...
@@ -1,11 +1,11 @@
1
- from typing import Dict![pytest-csv-params](https://docs.codebau.dev/pytest-plugins/pytest-csv-params/_images/pytest-csv-params.png)
1
+ ![pytest-csv-params](https://docs.codebau.dev/pytest-plugins/pytest-csv-params/_images/pytest-csv-params.png)
2
2
 
3
3
  # pytest-csv-params
4
4
 
5
5
  A pytest plugin to parametrize data-driven tests by CSV files.
6
6
 
7
7
  ![CI Pipeline Build Status](https://build.codebau.dev/buildStatus/icon?job=pytest-csv-params&subject=CI+Pipeline)
8
- ![Carnary Build Status](https://build.codebau.dev/buildStatus/icon?job=pytest-csv-params_canary&subject=Carnary+Build)
8
+ ![Canary Build Status](https://build.codebau.dev/buildStatus/icon?job=pytest-csv-params_canary&subject=Canary+Build)
9
9
  [![PyPI - Downloads](https://img.shields.io/pypi/dw/pytest-csv-params?label=PyPI%20downloads&style=flat&logo=pypi)](https://pypi.org/project/pytest-csv-params/)
10
10
  [![PyPI - Version](https://img.shields.io/pypi/v/pytest-csv-params?label=PyPI%20version&style=flat&logo=pypi)](https://pypi.org/project/pytest-csv-params/)
11
11
  [![PyPI - Status](https://img.shields.io/pypi/status/pytest-csv-params?label=PyPI%20status&style=flat&logo=pypi)](https://pypi.org/project/pytest-csv-params/)
@@ -18,6 +18,11 @@ A pytest plugin to parametrize data-driven tests by CSV files.
18
18
 
19
19
  There's no operating system dependent code in this plugin, so it should run anywhere where pytest runs.
20
20
 
21
+ **Attention!**
22
+
23
+ - One of the next versions will **drop Pytest 8.x support**
24
+ - One of the next versions will **drop Python 3.10 support**
25
+
21
26
  ## Installation
22
27
 
23
28
  Simply install it with pip...
@@ -6,29 +6,35 @@ During the setup phase of the plugin (see :mod:`pytest_csv_params.plugin`) these
6
6
  """
7
7
 
8
8
  import sys
9
+ import warnings
9
10
 
10
11
  from packaging.version import parse
11
12
 
12
13
  from .exception import PytestVersionTooOldException, PythonVersionTooOldException
13
14
 
14
15
 
15
- def check_python_version(min_version: tuple[int, int] = (3, 10)) -> None:
16
+ def check_python_version(min_version: tuple[int, int] = (3, 10), deprecation_below: tuple[int, int] = (3, 11)) -> None:
16
17
  """
17
18
  Check if the current version is at least 3.10
18
19
 
19
20
  :param min_version: The minimum version required, as tuple, default is 3.10
21
+ :param deprecation_below: The version below which a deprecation warning is raised, as tuple, default is 3.11
20
22
  :raises PythonVersionTooOldException: When the python version is too old/unsupported
21
23
  """
22
24
 
23
25
  if sys.version_info < min_version:
24
26
  raise PythonVersionTooOldException(f"At least Python {'.'.join(map(str, min_version))} required")
25
27
 
28
+ if sys.version_info < deprecation_below:
29
+ warnings.warn(f"Python {'.'.join(map(str, deprecation_below))} is deprecated", DeprecationWarning)
26
30
 
27
- def check_pytest_version(min_version: tuple[int, int] = (8, 3)) -> None:
31
+
32
+ def check_pytest_version(min_version: tuple[int, int] = (8, 3), deprecation_below: tuple[int, int] = (9, 0)) -> None:
28
33
  """
29
34
  Check if the current version is at least 8.3
30
35
 
31
36
  :param min_version: The minimum version required, as tuple, default is 8.3
37
+ :param deprecation_below: The version below which a deprecation warning is raised, as tuple, default is 9.0
32
38
  :raises PytestVersionTooOldException: When the pytest version is too old/unsupported
33
39
  """
34
40
 
@@ -39,3 +45,6 @@ def check_pytest_version(min_version: tuple[int, int] = (8, 3)) -> None:
39
45
  parsed_actual_version = parse(pytest_version)
40
46
  if parsed_actual_version < parsed_min_version:
41
47
  raise PytestVersionTooOldException(f"At least Pytest {pytest_min_version} required")
48
+
49
+ if parsed_actual_version < parse(".".join(map(str, deprecation_below))):
50
+ warnings.warn(f"Pytest {'.'.join(map(str, deprecation_below))} is deprecated", DeprecationWarning)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pytest-csv-params"
3
- version = "2.2.2"
3
+ version = "2.2.5"
4
4
  description = "Pytest plugin for Test Case Parametrization with CSV files"
5
5
  authors = [
6
6
  { name = "Juergen Edelbluth", email = "csv_params@jued.de" },
@@ -44,6 +44,7 @@ dev = [
44
44
  "pytest-clarity>=1.0.1",
45
45
  "pytest-order>=1.0.1",
46
46
  "ruff>=0.16.10",
47
+ "packaging>=26.3",
47
48
  ]
48
49
 
49
50
  docs = [