testgres 1.14.3__tar.gz → 1.14.4__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 (46) hide show
  1. {testgres-1.14.3/testgres.egg-info → testgres-1.14.4}/PKG-INFO +1 -1
  2. {testgres-1.14.3 → testgres-1.14.4}/src/__init__.py +4 -3
  3. {testgres-1.14.3 → testgres-1.14.4}/src/utils.py +2 -1
  4. {testgres-1.14.3 → testgres-1.14.4/testgres.egg-info}/PKG-INFO +1 -1
  5. {testgres-1.14.3 → testgres-1.14.4}/tests/test_testgres_common.py +1 -1
  6. {testgres-1.14.3 → testgres-1.14.4}/tests/test_utils.py +3 -0
  7. {testgres-1.14.3 → testgres-1.14.4}/LICENSE +0 -0
  8. {testgres-1.14.3 → testgres-1.14.4}/README.md +0 -0
  9. {testgres-1.14.3 → testgres-1.14.4}/pyproject.toml +0 -0
  10. {testgres-1.14.3 → testgres-1.14.4}/setup.cfg +0 -0
  11. {testgres-1.14.3 → testgres-1.14.4}/src/api.py +0 -0
  12. {testgres-1.14.3 → testgres-1.14.4}/src/backup.py +0 -0
  13. {testgres-1.14.3 → testgres-1.14.4}/src/cache.py +0 -0
  14. {testgres-1.14.3 → testgres-1.14.4}/src/config.py +0 -0
  15. {testgres-1.14.3 → testgres-1.14.4}/src/connection.py +0 -0
  16. {testgres-1.14.3 → testgres-1.14.4}/src/consts.py +0 -0
  17. {testgres-1.14.3 → testgres-1.14.4}/src/decorators.py +0 -0
  18. {testgres-1.14.3 → testgres-1.14.4}/src/defaults.py +0 -0
  19. {testgres-1.14.3 → testgres-1.14.4}/src/enums.py +0 -0
  20. {testgres-1.14.3 → testgres-1.14.4}/src/exceptions.py +0 -0
  21. {testgres-1.14.3 → testgres-1.14.4}/src/impl/internal_utils.py +0 -0
  22. {testgres-1.14.3 → testgres-1.14.4}/src/impl/platforms/internal_platform_utils.py +0 -0
  23. {testgres-1.14.3 → testgres-1.14.4}/src/impl/platforms/internal_platform_utils_factory.py +0 -0
  24. {testgres-1.14.3 → testgres-1.14.4}/src/impl/platforms/linux/internal_platform_utils.py +0 -0
  25. {testgres-1.14.3 → testgres-1.14.4}/src/impl/platforms/win32/internal_platform_utils.py +0 -0
  26. {testgres-1.14.3 → testgres-1.14.4}/src/impl/port_manager__generic.py +0 -0
  27. {testgres-1.14.3 → testgres-1.14.4}/src/impl/port_manager__this_host.py +0 -0
  28. {testgres-1.14.3 → testgres-1.14.4}/src/logger.py +0 -0
  29. {testgres-1.14.3 → testgres-1.14.4}/src/node.py +0 -0
  30. {testgres-1.14.3 → testgres-1.14.4}/src/node_app.py +0 -0
  31. {testgres-1.14.3 → testgres-1.14.4}/src/port_manager.py +0 -0
  32. {testgres-1.14.3 → testgres-1.14.4}/src/pubsub.py +0 -0
  33. {testgres-1.14.3 → testgres-1.14.4}/src/raise_error.py +0 -0
  34. {testgres-1.14.3 → testgres-1.14.4}/src/standby.py +0 -0
  35. {testgres-1.14.3 → testgres-1.14.4}/testgres.egg-info/SOURCES.txt +0 -0
  36. {testgres-1.14.3 → testgres-1.14.4}/testgres.egg-info/dependency_links.txt +0 -0
  37. {testgres-1.14.3 → testgres-1.14.4}/testgres.egg-info/requires.txt +0 -0
  38. {testgres-1.14.3 → testgres-1.14.4}/testgres.egg-info/top_level.txt +0 -0
  39. {testgres-1.14.3 → testgres-1.14.4}/tests/test_api.py +0 -0
  40. {testgres-1.14.3 → testgres-1.14.4}/tests/test_config.py +0 -0
  41. {testgres-1.14.3 → testgres-1.14.4}/tests/test_os_ops_common.py +0 -0
  42. {testgres-1.14.3 → testgres-1.14.4}/tests/test_os_ops_local.py +0 -0
  43. {testgres-1.14.3 → testgres-1.14.4}/tests/test_os_ops_remote.py +0 -0
  44. {testgres-1.14.3 → testgres-1.14.4}/tests/test_raise_error.py +0 -0
  45. {testgres-1.14.3 → testgres-1.14.4}/tests/test_testgres_local.py +0 -0
  46. {testgres-1.14.3 → testgres-1.14.4}/tests/test_testgres_remote.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testgres
3
- Version: 1.14.3
3
+ Version: 1.14.4
4
4
  Summary: Testing utility for PostgreSQL and its extensions
5
5
  Author-email: Postgres Professional <testgres@postgrespro.ru>
6
6
  License: PostgreSQL
@@ -44,7 +44,8 @@ from .utils import \
44
44
  bound_ports, \
45
45
  get_bin_path, \
46
46
  get_pg_config, \
47
- get_pg_version
47
+ get_pg_version, \
48
+ parse_pg_version
48
49
 
49
50
  from .standby import \
50
51
  First, \
@@ -56,7 +57,7 @@ from testgres.operations.os_ops import OsOperations, ConnectionParams
56
57
  from testgres.operations.local_ops import LocalOperations
57
58
  from testgres.operations.remote_ops import RemoteOperations
58
59
 
59
- __version__ = "1.14.3"
60
+ __version__ = "1.14.4"
60
61
 
61
62
  __all__ = [
62
63
  "get_new_node",
@@ -71,7 +72,7 @@ __all__ = [
71
72
  "NodeApp",
72
73
  "PostgresNode",
73
74
  "PortManager",
74
- "reserve_port", "release_port", "bound_ports", "get_bin_path", "get_pg_config", "get_pg_version",
75
+ "reserve_port", "release_port", "bound_ports", "get_bin_path", "get_pg_config", "get_pg_version", "parse_pg_version",
75
76
  "First", "Any",
76
77
  "OsOperations", "LocalOperations", "RemoteOperations", "ConnectionParams"
77
78
  ]
@@ -304,7 +304,8 @@ def parse_pg_version(version_out):
304
304
  version = raw_ver.split(' ')[-1] \
305
305
  .partition('devel')[0] \
306
306
  .partition('beta')[0] \
307
- .partition('rc')[0]
307
+ .partition('rc')[0] \
308
+ .partition('-')[0]
308
309
  return version
309
310
 
310
311
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testgres
3
- Version: 1.14.3
3
+ Version: 1.14.4
4
4
  Summary: Testing utility for PostgreSQL and its extensions
5
5
  Author-email: Postgres Professional <testgres@postgrespro.ru>
6
6
  License: PostgreSQL
@@ -96,7 +96,7 @@ class TestTestgresCommon:
96
96
  # Author: Mark G.
97
97
  assert v.major == 1
98
98
  assert v.minor == 14
99
- assert v.micro == 3
99
+ assert v.micro == 4
100
100
 
101
101
  assert str(v) == testgres_version
102
102
  return
@@ -34,6 +34,9 @@ class TestUtils:
34
34
  assert parse_pg_version("postgres (PostgreSQL) 11.4") == "11.4"
35
35
  # Macos
36
36
  assert parse_pg_version("postgres (PostgreSQL) 14.9 (Homebrew)") == "14.9"
37
+ # Postgres Pro trial
38
+ assert parse_pg_version("postgres (PostgreSQL) 18.4-TRIAL") == "18.4"
39
+ assert parse_pg_version("PostgreSQL 18.4-TRIAL") == "18.4"
37
40
 
38
41
  def test_get_pg_config2(self, os_ops: OsOperations):
39
42
  assert isinstance(os_ops, OsOperations)
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