iker-python-common 1.0.30__tar.gz → 1.0.32__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 (71) hide show
  1. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/.github/workflows/pr.yml +3 -0
  2. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/.github/workflows/push.yml +1 -0
  3. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/PKG-INFO +1 -1
  4. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker_python_common.egg-info/PKG-INFO +1 -1
  5. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/test/iker_tests/common/utils/dtutils_test.py +33 -1
  6. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/.editorconfig +0 -0
  7. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/.gitignore +0 -0
  8. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/MANIFEST.in +0 -0
  9. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/README.md +0 -0
  10. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/VERSION +0 -0
  11. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/pyproject.toml +0 -0
  12. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/resources/unittest/config/config.cfg +0 -0
  13. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/resources/unittest/csv/data.csv +0 -0
  14. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/resources/unittest/csv/data.tsv +0 -0
  15. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/resources/unittest/shutils/dir.baz/file.bar.baz +0 -0
  16. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/resources/unittest/shutils/dir.baz/file.foo.bar +0 -0
  17. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/resources/unittest/shutils/dir.baz/file.foo.baz +0 -0
  18. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/resources/unittest/shutils/dir.foo/dir.foo.bar/dir.foo.bar.baz/file.foo.bar.baz +0 -0
  19. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/resources/unittest/shutils/dir.foo/dir.foo.bar/file.bar.baz +0 -0
  20. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/resources/unittest/shutils/dir.foo/dir.foo.bar/file.foo.bar +0 -0
  21. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/resources/unittest/shutils/dir.foo/dir.foo.bar/file.foo.baz +0 -0
  22. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/resources/unittest/shutils/dir.foo/file.bar +0 -0
  23. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/resources/unittest/shutils/dir.foo/file.baz +0 -0
  24. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/resources/unittest/shutils/dir.foo/file.foo +0 -0
  25. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/setup.cfg +0 -0
  26. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/setup.py +0 -0
  27. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker/common/__init__.py +0 -0
  28. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker/common/utils/__init__.py +0 -0
  29. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker/common/utils/argutils.py +0 -0
  30. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker/common/utils/config.py +0 -0
  31. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker/common/utils/csv.py +0 -0
  32. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker/common/utils/dbutils.py +0 -0
  33. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker/common/utils/dockerutils.py +0 -0
  34. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker/common/utils/dtutils.py +0 -0
  35. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker/common/utils/funcutils.py +0 -0
  36. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker/common/utils/jsonutils.py +0 -0
  37. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker/common/utils/logger.py +0 -0
  38. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker/common/utils/numutils.py +0 -0
  39. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker/common/utils/randutils.py +0 -0
  40. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker/common/utils/retry.py +0 -0
  41. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker/common/utils/s3utils.py +0 -0
  42. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker/common/utils/sequtils.py +0 -0
  43. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker/common/utils/shutils.py +0 -0
  44. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker/common/utils/span.py +0 -0
  45. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker/common/utils/strutils.py +0 -0
  46. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker/common/utils/testutils.py +0 -0
  47. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker_python_common.egg-info/SOURCES.txt +0 -0
  48. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker_python_common.egg-info/dependency_links.txt +0 -0
  49. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker_python_common.egg-info/not-zip-safe +0 -0
  50. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker_python_common.egg-info/requires.txt +0 -0
  51. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/src/iker_python_common.egg-info/top_level.txt +0 -0
  52. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/test/iker_test.py +0 -0
  53. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/test/iker_tests/__init__.py +0 -0
  54. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/test/iker_tests/common/utils/argutils_test.py +0 -0
  55. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/test/iker_tests/common/utils/config_test.py +0 -0
  56. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/test/iker_tests/common/utils/csv_test.py +0 -0
  57. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/test/iker_tests/common/utils/dbutils_test.py +0 -0
  58. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/test/iker_tests/common/utils/dockerutils_test.py +0 -0
  59. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/test/iker_tests/common/utils/funcutils_test.py +0 -0
  60. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/test/iker_tests/common/utils/jsonutils_test.py +0 -0
  61. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/test/iker_tests/common/utils/logger_test.py +0 -0
  62. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/test/iker_tests/common/utils/numutils_test.py +0 -0
  63. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/test/iker_tests/common/utils/randutils_test.py +0 -0
  64. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/test/iker_tests/common/utils/retry_test.py +0 -0
  65. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/test/iker_tests/common/utils/s3utils_test.py +0 -0
  66. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/test/iker_tests/common/utils/sequtils_test.py +0 -0
  67. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/test/iker_tests/common/utils/shutils_test.py +0 -0
  68. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/test/iker_tests/common/utils/span_test.py +0 -0
  69. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/test/iker_tests/common/utils/strutils_test.py +0 -0
  70. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/test/iker_tests/common/utils/testutils_test.py +0 -0
  71. {iker_python_common-1.0.30 → iker_python_common-1.0.32}/test/iker_tests/docker_fixtures.py +0 -0
@@ -21,6 +21,7 @@ jobs:
21
21
 
22
22
  - name: Build and Test
23
23
  run: |
24
+ sudo apt-get update
24
25
  sudo apt-get install libxml2-dev libxslt1-dev llvm-14-dev
25
26
  python -m pip install --upgrade pip
26
27
  python -m pip install .[test]
@@ -39,6 +40,7 @@ jobs:
39
40
 
40
41
  - name: Build and Test
41
42
  run: |
43
+ sudo apt-get update
42
44
  sudo apt-get install libxml2-dev libxslt1-dev llvm-14-dev
43
45
  python -m pip install --upgrade pip
44
46
  python -m pip install .[test]
@@ -57,6 +59,7 @@ jobs:
57
59
 
58
60
  - name: Build and Test
59
61
  run: |
62
+ sudo apt-get update
60
63
  sudo apt-get install libxml2-dev libxslt1-dev llvm-14-dev
61
64
  python -m pip install --upgrade pip
62
65
  python -m pip install .[test]
@@ -21,6 +21,7 @@ jobs:
21
21
 
22
22
  - name: Build and Upload
23
23
  run: |
24
+ sudo apt-get update
24
25
  sudo apt-get install libxml2-dev libxslt1-dev llvm-14-dev
25
26
  python -m pip install --upgrade pip build twine
26
27
  python -m pip install .[test]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: iker-python-common
3
- Version: 1.0.30
3
+ Version: 1.0.32
4
4
  Classifier: Programming Language :: Python :: 3
5
5
  Classifier: Programming Language :: Python :: 3.11
6
6
  Classifier: Programming Language :: Python :: 3.12
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: iker-python-common
3
- Version: 1.0.30
3
+ Version: 1.0.32
4
4
  Classifier: Programming Language :: Python :: 3
5
5
  Classifier: Programming Language :: Python :: 3.11
6
6
  Classifier: Programming Language :: Python :: 3.12
@@ -38,8 +38,24 @@ class DtUtilsTest(unittest.TestCase):
38
38
  @ddt.data(
39
39
  (dt_utc(1970, 1, 1), 0.0),
40
40
  (dt_utc(1969, 12, 31, 23, 59, 59), -1.0),
41
+ (dt_utc(1969, 12, 31, 23, 59, 59, 1), -0.999999),
42
+ (dt_utc(1969, 12, 31, 23, 59, 59, 1000), -0.999),
43
+ (dt_utc(1969, 12, 31, 23, 59, 59, 999999), -0.000001),
41
44
  (dt_utc(1970, 1, 1, 0, 0, 1), 1.0),
45
+ (dt_utc(1970, 1, 1, 0, 0, 1, 1), 1.000001),
46
+ (dt_utc(1970, 1, 1, 0, 0, 1, 1000), 1.001),
47
+ (dt_utc(1970, 1, 1, 0, 0, 1, 999999), 1.999999),
48
+ (dt_utc(1970, 1, 1, 0, 0, 0, 1), 0.000001),
42
49
  (dt_utc(1970, 1, 1, 0, 0, 0, 1000), 0.001),
50
+ (dt_utc(1970, 1, 1, 0, 0, 0, 999999), 0.999999),
51
+ (dt_utc(2025, 1, 1, 0, 0, 0), 1735689600.0),
52
+ (dt_utc(2025, 1, 1, 0, 0, 0, 1), 1735689600.000001),
53
+ (dt_utc(2025, 1, 1, 0, 0, 0, 1000), 1735689600.001),
54
+ (dt_utc(2025, 1, 1, 0, 0, 0, 999999), 1735689600.999999),
55
+ (dt_utc(2100, 1, 1, 0, 0, 0), 4102444800.0),
56
+ (dt_utc(2100, 1, 1, 0, 0, 0, 1), 4102444800.000001),
57
+ (dt_utc(2100, 1, 1, 0, 0, 0, 1000), 4102444800.001),
58
+ (dt_utc(2100, 1, 1, 0, 0, 0, 999999), 4102444800.999999),
43
59
  )
44
60
  @ddt.unpack
45
61
  def test_dt_to_ts(self, data, expect):
@@ -48,11 +64,27 @@ class DtUtilsTest(unittest.TestCase):
48
64
  @ddt.data(
49
65
  (0.0, dt_utc(1970, 1, 1)),
50
66
  (-1.0, dt_utc(1969, 12, 31, 23, 59, 59)),
67
+ (-0.999999, dt_utc(1969, 12, 31, 23, 59, 59, 1)),
68
+ (-0.999, dt_utc(1969, 12, 31, 23, 59, 59, 1000)),
69
+ (-0.000001, dt_utc(1969, 12, 31, 23, 59, 59, 999999)),
51
70
  (1.0, dt_utc(1970, 1, 1, 0, 0, 1)),
71
+ (1.000001, dt_utc(1970, 1, 1, 0, 0, 1, 1)),
72
+ (1.001, dt_utc(1970, 1, 1, 0, 0, 1, 1000)),
73
+ (1.999999, dt_utc(1970, 1, 1, 0, 0, 1, 999999)),
74
+ (0.000001, dt_utc(1970, 1, 1, 0, 0, 0, 1)),
52
75
  (0.001, dt_utc(1970, 1, 1, 0, 0, 0, 1000)),
76
+ (0.999999, dt_utc(1970, 1, 1, 0, 0, 0, 999999)),
77
+ (1735689600.0, dt_utc(2025, 1, 1, 0, 0, 0)),
78
+ (1735689600.000001, dt_utc(2025, 1, 1, 0, 0, 0, 1)),
79
+ (1735689600.001, dt_utc(2025, 1, 1, 0, 0, 0, 1000)),
80
+ (1735689600.999999, dt_utc(2025, 1, 1, 0, 0, 0, 999999)),
81
+ (4102444800.0, dt_utc(2100, 1, 1, 0, 0, 0)),
82
+ (4102444800.000001, dt_utc(2100, 1, 1, 0, 0, 0, 1)),
83
+ (4102444800.001, dt_utc(2100, 1, 1, 0, 0, 0, 1000)),
84
+ (4102444800.999999, dt_utc(2100, 1, 1, 0, 0, 0, 999999)),
53
85
  )
54
86
  @ddt.unpack
55
- def test_dt_to_from(self, data, expect):
87
+ def test_dt_from_ts(self, data, expect):
56
88
  self.assertEqual(expect, dt_from_ts(data))
57
89
 
58
90
  @ddt.data(