testgres 1.13.6__tar.gz → 1.13.7__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. {testgres-1.13.6/testgres.egg-info → testgres-1.13.7}/PKG-INFO +1 -1
  2. {testgres-1.13.6 → testgres-1.13.7}/pyproject.toml +4 -1
  3. {testgres-1.13.6 → testgres-1.13.7}/src/__init__.py +2 -0
  4. {testgres-1.13.6 → testgres-1.13.7/testgres.egg-info}/PKG-INFO +1 -1
  5. {testgres-1.13.6 → testgres-1.13.7}/tests/test_testgres_common.py +16 -0
  6. {testgres-1.13.6 → testgres-1.13.7}/LICENSE +0 -0
  7. {testgres-1.13.6 → testgres-1.13.7}/README.md +0 -0
  8. {testgres-1.13.6 → testgres-1.13.7}/setup.cfg +0 -0
  9. {testgres-1.13.6 → testgres-1.13.7}/src/api.py +0 -0
  10. {testgres-1.13.6 → testgres-1.13.7}/src/backup.py +0 -0
  11. {testgres-1.13.6 → testgres-1.13.7}/src/cache.py +0 -0
  12. {testgres-1.13.6 → testgres-1.13.7}/src/config.py +0 -0
  13. {testgres-1.13.6 → testgres-1.13.7}/src/connection.py +0 -0
  14. {testgres-1.13.6 → testgres-1.13.7}/src/consts.py +0 -0
  15. {testgres-1.13.6 → testgres-1.13.7}/src/decorators.py +0 -0
  16. {testgres-1.13.6 → testgres-1.13.7}/src/defaults.py +0 -0
  17. {testgres-1.13.6 → testgres-1.13.7}/src/enums.py +0 -0
  18. {testgres-1.13.6 → testgres-1.13.7}/src/exceptions.py +0 -0
  19. {testgres-1.13.6 → testgres-1.13.7}/src/impl/internal_utils.py +0 -0
  20. {testgres-1.13.6 → testgres-1.13.7}/src/impl/platforms/internal_platform_utils.py +0 -0
  21. {testgres-1.13.6 → testgres-1.13.7}/src/impl/platforms/internal_platform_utils_factory.py +0 -0
  22. {testgres-1.13.6 → testgres-1.13.7}/src/impl/platforms/linux/internal_platform_utils.py +0 -0
  23. {testgres-1.13.6 → testgres-1.13.7}/src/impl/platforms/win32/internal_platform_utils.py +0 -0
  24. {testgres-1.13.6 → testgres-1.13.7}/src/impl/port_manager__generic.py +0 -0
  25. {testgres-1.13.6 → testgres-1.13.7}/src/impl/port_manager__this_host.py +0 -0
  26. {testgres-1.13.6 → testgres-1.13.7}/src/logger.py +0 -0
  27. {testgres-1.13.6 → testgres-1.13.7}/src/node.py +0 -0
  28. {testgres-1.13.6 → testgres-1.13.7}/src/node_app.py +0 -0
  29. {testgres-1.13.6 → testgres-1.13.7}/src/port_manager.py +0 -0
  30. {testgres-1.13.6 → testgres-1.13.7}/src/pubsub.py +0 -0
  31. {testgres-1.13.6 → testgres-1.13.7}/src/raise_error.py +0 -0
  32. {testgres-1.13.6 → testgres-1.13.7}/src/standby.py +0 -0
  33. {testgres-1.13.6 → testgres-1.13.7}/src/utils.py +0 -0
  34. {testgres-1.13.6 → testgres-1.13.7}/testgres.egg-info/SOURCES.txt +0 -0
  35. {testgres-1.13.6 → testgres-1.13.7}/testgres.egg-info/dependency_links.txt +0 -0
  36. {testgres-1.13.6 → testgres-1.13.7}/testgres.egg-info/requires.txt +0 -0
  37. {testgres-1.13.6 → testgres-1.13.7}/testgres.egg-info/top_level.txt +0 -0
  38. {testgres-1.13.6 → testgres-1.13.7}/tests/test_config.py +0 -0
  39. {testgres-1.13.6 → testgres-1.13.7}/tests/test_os_ops_common.py +0 -0
  40. {testgres-1.13.6 → testgres-1.13.7}/tests/test_os_ops_local.py +0 -0
  41. {testgres-1.13.6 → testgres-1.13.7}/tests/test_os_ops_remote.py +0 -0
  42. {testgres-1.13.6 → testgres-1.13.7}/tests/test_raise_error.py +0 -0
  43. {testgres-1.13.6 → testgres-1.13.7}/tests/test_testgres_local.py +0 -0
  44. {testgres-1.13.6 → testgres-1.13.7}/tests/test_testgres_remote.py +0 -0
  45. {testgres-1.13.6 → testgres-1.13.7}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testgres
3
- Version: 1.13.6
3
+ Version: 1.13.7
4
4
  Summary: Testing utility for PostgreSQL and its extensions
5
5
  Author-email: Postgres Professional <testgres@postgrespro.ru>
6
6
  License: PostgreSQL
@@ -5,6 +5,9 @@ build-backend = "setuptools.build_meta"
5
5
  [tool.setuptools.package-dir]
6
6
  "testgres" = "src"
7
7
 
8
+ [tool.setuptools.dynamic]
9
+ version = {attr = "testgres.__version__"}
10
+
8
11
  [tool.flake8]
9
12
  extend-ignore = ["E501"]
10
13
  exclude = [".git", "__pycache__", "env", "venv"]
@@ -19,7 +22,7 @@ log_file_date_format = "%Y-%m-%d %H:%M:%S"
19
22
 
20
23
  [project]
21
24
  name = "testgres"
22
- version = "1.13.6"
25
+ dynamic = ["version"]
23
26
 
24
27
  description = "Testing utility for PostgreSQL and its extensions"
25
28
  readme = "README.md"
@@ -56,6 +56,8 @@ from testgres.operations.os_ops import OsOperations, ConnectionParams
56
56
  from testgres.operations.local_ops import LocalOperations
57
57
  from testgres.operations.remote_ops import RemoteOperations
58
58
 
59
+ __version__ = "1.13.7"
60
+
59
61
  __all__ = [
60
62
  "get_new_node",
61
63
  "get_remote_node",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testgres
3
- Version: 1.13.6
3
+ Version: 1.13.7
4
4
  Summary: Testing utility for PostgreSQL and its extensions
5
5
  Author-email: Postgres Professional <testgres@postgrespro.ru>
6
6
  License: PostgreSQL
@@ -5,6 +5,7 @@ from .helpers.global_data import PostgresNodeServices
5
5
  from .helpers.global_data import OsOperations
6
6
  from .helpers.global_data import PortManager
7
7
 
8
+ from src import __version__ as testgres_version
8
9
  from src.node import PgVer
9
10
  from src.node import PostgresNode
10
11
  from src.node import NodeConnection
@@ -51,6 +52,8 @@ import typing
51
52
  import types
52
53
  import psutil
53
54
 
55
+ from packaging.version import Version
56
+
54
57
 
55
58
  @contextmanager
56
59
  def removing(os_ops: OsOperations, f):
@@ -84,6 +87,19 @@ class TestTestgresCommon:
84
87
  assert isinstance(request.param.port_manager, PortManager)
85
88
  return request.param
86
89
 
90
+ def test_testgres_version(self):
91
+ assert type(testgres_version) is str
92
+
93
+ v = Version(testgres_version)
94
+
95
+ # Author: Mark G.
96
+ assert v.major == 1
97
+ assert v.minor == 13
98
+ assert v.micro == 7
99
+
100
+ assert str(v) == testgres_version
101
+ return
102
+
87
103
  def test_version_management(self, node_svc: PostgresNodeService):
88
104
  assert isinstance(node_svc, PostgresNodeService)
89
105
 
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