excel-list-transform 0.8.0__tar.gz → 0.8.2__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 (45) hide show
  1. {excel_list_transform-0.8.0/excel_list_transform.egg-info → excel_list_transform-0.8.2}/PKG-INFO +4 -4
  2. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/README.md +2 -2
  3. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/README_pypi.md +2 -2
  4. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2/excel_list_transform.egg-info}/PKG-INFO +4 -4
  5. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/pyproject.toml +2 -2
  6. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/setup.py +2 -2
  7. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/commontypes.py +1 -1
  8. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/config.py +0 -5
  9. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/config_excel_list_transform.py +2 -16
  10. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/rewrite_value.py +1 -2
  11. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/version_information.py +4 -4
  12. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/LICENSE.txt +0 -0
  13. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/excel_list_transform.egg-info/SOURCES.txt +0 -0
  14. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/excel_list_transform.egg-info/dependency_links.txt +0 -0
  15. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/excel_list_transform.egg-info/requires.txt +0 -0
  16. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/excel_list_transform.egg-info/top_level.txt +0 -0
  17. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/setup.cfg +0 -0
  18. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/__init__.py +0 -0
  19. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/__main__.py +0 -0
  20. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/assert_dict_equal.py +0 -0
  21. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/check_indata_common.py +0 -0
  22. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/config_auto_change_hook.py +0 -0
  23. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/config_enums.py +0 -0
  24. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/config_factory.py +0 -0
  25. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/config_xls_list_transf_name.py +0 -0
  26. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/config_xls_list_transf_num.py +0 -0
  27. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/file_extension.py +0 -0
  28. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/file_must_exist.py +0 -0
  29. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/generate_cfg.py +0 -0
  30. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/generate_txt.py +0 -0
  31. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/handle_csv.py +0 -0
  32. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/handle_empty_column.py +0 -0
  33. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/handle_excel.py +0 -0
  34. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/migrate_cfg.py +0 -0
  35. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/migrate_cfg_warn_hook.py +0 -0
  36. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/num_named_conversion.py +0 -0
  37. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/py.typed +0 -0
  38. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/recode.py +0 -0
  39. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/row_split_merge.py +0 -0
  40. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/str_to_enum.py +0 -0
  41. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/transform_cmd.py +0 -0
  42. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/transform_func.py +0 -0
  43. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/transform_func_common.py +0 -0
  44. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/transform_func_named.py +0 -0
  45. {excel_list_transform-0.8.0 → excel_list_transform-0.8.2}/src/excel_list_transform/transform_func_num.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: excel-list-transform
3
- Version: 0.8.0
3
+ Version: 0.8.2
4
4
  Summary: Transform a list in excel or CSV
5
5
  Author: Tom Björkholm
6
6
  Author-email: Tom Björkholm <klausuler_linnet0q@icloud.com>
@@ -8,7 +8,7 @@ Project-URL: Source code, https://bitbucket.org/tom-bjorkholm/excel-list-transfo
8
8
  Classifier: Programming Language :: Python :: 3
9
9
  Classifier: License :: OSI Approved :: MIT License
10
10
  Classifier: Operating System :: OS Independent
11
- Requires-Python: <3.11,>=3.10
11
+ Requires-Python: <3.13,>=3.12
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE.txt
14
14
  Requires-Dist: openpyxl>=3.1.5
@@ -506,7 +506,7 @@ Source code and tests are available at [https://bitbucket.org/tom-bjorkholm/exce
506
506
 
507
507
  ## Test summary
508
508
 
509
- * Test result: 4119 passed in 15s
509
+ * Test result: 4119 passed in 14s
510
510
  * No Flake8 warnings.
511
511
  * No mypy errors found.
512
- * 0.8.0 built and tested using python version: Python 3.10.5
512
+ * 0.8.2 built and tested using python version: Python 3.12.6
@@ -79,7 +79,7 @@ After running doBuild.zsh you can do manual test of the built and installed appl
79
79
 
80
80
  ## Test summary
81
81
 
82
- * Test result: 4119 passed in 15s
82
+ * Test result: 4119 passed in 14s
83
83
  * No Flake8 warnings.
84
84
  * No mypy errors found.
85
- * 0.8.0 built and tested using python version: Python 3.10.5
85
+ * 0.8.2 built and tested using python version: Python 3.12.6
@@ -475,7 +475,7 @@ Source code and tests are available at [https://bitbucket.org/tom-bjorkholm/exce
475
475
 
476
476
  ## Test summary
477
477
 
478
- * Test result: 4119 passed in 15s
478
+ * Test result: 4119 passed in 14s
479
479
  * No Flake8 warnings.
480
480
  * No mypy errors found.
481
- * 0.8.0 built and tested using python version: Python 3.10.5
481
+ * 0.8.2 built and tested using python version: Python 3.12.6
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: excel-list-transform
3
- Version: 0.8.0
3
+ Version: 0.8.2
4
4
  Summary: Transform a list in excel or CSV
5
5
  Author: Tom Björkholm
6
6
  Author-email: Tom Björkholm <klausuler_linnet0q@icloud.com>
@@ -8,7 +8,7 @@ Project-URL: Source code, https://bitbucket.org/tom-bjorkholm/excel-list-transfo
8
8
  Classifier: Programming Language :: Python :: 3
9
9
  Classifier: License :: OSI Approved :: MIT License
10
10
  Classifier: Operating System :: OS Independent
11
- Requires-Python: <3.11,>=3.10
11
+ Requires-Python: <3.13,>=3.12
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE.txt
14
14
  Requires-Dist: openpyxl>=3.1.5
@@ -506,7 +506,7 @@ Source code and tests are available at [https://bitbucket.org/tom-bjorkholm/exce
506
506
 
507
507
  ## Test summary
508
508
 
509
- * Test result: 4119 passed in 15s
509
+ * Test result: 4119 passed in 14s
510
510
  * No Flake8 warnings.
511
511
  * No mypy errors found.
512
- * 0.8.0 built and tested using python version: Python 3.10.5
512
+ * 0.8.2 built and tested using python version: Python 3.12.6
@@ -4,13 +4,13 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "excel-list-transform"
7
- version = "0.8.0"
7
+ version = "0.8.2"
8
8
  authors = [
9
9
  { name="Tom Björkholm", email="klausuler_linnet0q@icloud.com" },
10
10
  ]
11
11
  description = "Transform a list in excel or CSV"
12
12
  readme = "README_pypi.md"
13
- requires-python = "<3.11,>=3.10"
13
+ requires-python = "<3.13,>=3.12"
14
14
  classifiers = [
15
15
  "Programming Language :: Python :: 3",
16
16
  "License :: OSI Approved :: MIT License",
@@ -5,11 +5,11 @@ from setuptools import setup
5
5
 
6
6
  setup(
7
7
  name='excel-list-transform',
8
- version='0.8.0',
8
+ version='0.8.2',
9
9
  description='Transform a list in excel or CSV.',
10
10
  author='Tom Björkholm',
11
11
  author_email='klausuler_linnet0q@icloud.com',
12
- python_requires='<3.11,>=3.10',
12
+ python_requires='<3.13,>=3.12',
13
13
  packages=['excel_list_transform'],
14
14
  package_dir={'excel_list_transform': 'src/excel_list_transform'},
15
15
  package_data={'excel_list_transform': ['src/py.typed']},
@@ -23,7 +23,7 @@ NumData: TypeAlias = list[NumRow]
23
23
  NumDataSeq: TypeAlias = list[NumRowSeq]
24
24
  NameData: TypeAlias = list[NameRow]
25
25
  NameDataMap: TypeAlias = Sequence[NameRowMap]
26
- Data: TypeAlias = list[Row]
26
+ type Data[Row] = list[Row]
27
27
  DataCov = TypeVar('DataCov', NumDataSeq, NameDataMap)
28
28
 
29
29
  JsonType: TypeAlias = \
@@ -550,11 +550,6 @@ class Config():
550
550
  if 'unknown encoding' in str(exc):
551
551
  return False
552
552
  raise exc # pragma: no cover
553
- except OSError as exc:
554
- # workaround for Python 3.10 bug
555
- if 'Bad file descriptor' in str(exc):
556
- return False
557
- raise exc # pragma: no cover
558
553
  return True
559
554
 
560
555
  @staticmethod
@@ -8,7 +8,7 @@
8
8
  import sys
9
9
  from copy import deepcopy
10
10
  from enum import Enum
11
- from typing import Optional, Callable, TypeAlias, TypeVar, \
11
+ from typing import Optional, Callable, TypeAlias, TypeVar, NamedTuple, \
12
12
  Generic, TypedDict
13
13
  from csv import Dialect
14
14
  from excel_list_transform.config import Config, ParseConverter, \
@@ -54,7 +54,7 @@ NoDupKeydType: TypeAlias = \
54
54
  Rule[Column] | RuleMerge[Column] | RuleSplit[Column]
55
55
 
56
56
 
57
- class ColInfo(Generic[Column]): # pylint: disable=too-few-public-methods
57
+ class ColInfo(NamedTuple, Generic[Column]):
58
58
  """Information about columns to pass to ConfigExcelListTransform init."""
59
59
 
60
60
  split_last: str
@@ -65,20 +65,6 @@ class ColInfo(Generic[Column]): # pylint: disable=too-few-public-methods
65
65
  col_to_use_row: list[Column]
66
66
  tinfo: Column
67
67
 
68
- def __init__(self, # pylint: disable=too-many-arguments, too-many-positional-arguments # noqa: E501
69
- split_last: str, insert_last: Optional[str],
70
- s03: RuleSplit[Column], s08: Rule[Column],
71
- col_to_use: list[Column], col_to_use_row: list[Column],
72
- tinfo: Column):
73
- """Create a ColInfo object."""
74
- self.split_last = split_last
75
- self.insert_last = insert_last
76
- self.s03 = s03
77
- self.s08 = s08
78
- self.col_to_use = col_to_use
79
- self.col_to_use_row = col_to_use_row
80
- self.tinfo = tinfo
81
-
82
68
 
83
69
  class ConfigExcelListTransform(Config, Generic[Column]): # pylint: disable=too-many-instance-attributes, line-too-long # noqa: E501
84
70
  """Class with configuration for excel list transform."""
@@ -7,12 +7,11 @@
7
7
 
8
8
  from copy import deepcopy
9
9
  import sys
10
- from typing import Optional
10
+ from typing import Optional, assert_never
11
11
  from re import compile as re_compile
12
12
  from re import Pattern
13
13
  from re import IGNORECASE as re_IGNORECASE
14
14
  from re import error as re_error
15
- from typing_extensions import assert_never
16
15
  from excel_list_transform.commontypes import get_checked_type
17
16
  from excel_list_transform.config_enums import RewriteKind, CaseSensitivity
18
17
  from excel_list_transform.config_excel_list_transform import \
@@ -7,7 +7,7 @@
7
7
 
8
8
  import sys
9
9
  from importlib.metadata import version as metadata_version
10
- from typing import Optional, NamedTuple, TypeAlias
10
+ from typing import Optional, NamedTuple
11
11
  from datetime import date
12
12
  from pypi_simple import PyPISimple
13
13
  from pypi_simple.errors import NoSuchProjectError, \
@@ -16,8 +16,8 @@ from requests import HTTPError
16
16
  from packaging.version import Version
17
17
  from packaging.requirements import Requirement
18
18
 
19
- VersionInfo: TypeAlias = dict[str, Version]
20
- SupportExpires: TypeAlias = dict[date, str]
19
+ type VersionInfo = dict[str, Version]
20
+ type SupportExpires = dict[date, str]
21
21
 
22
22
 
23
23
  class AvailableVersion(NamedTuple):
@@ -30,7 +30,7 @@ class AvailableVersion(NamedTuple):
30
30
  pkgname: str
31
31
 
32
32
 
33
- AvailableVersions: TypeAlias = list[AvailableVersion]
33
+ type AvailableVersions = list[AvailableVersion]
34
34
 
35
35
 
36
36
  class VersionInformation():