Skip to content

Commit 8040da5

Browse files
author
vshepard
committed
Add testgres.plugins to plugin
1 parent 03d8f96 commit 8040da5

File tree

12 files changed

+39
-13
lines changed

12 files changed

+39
-13
lines changed

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,15 @@
2626
with open('README.md', 'r') as f:
2727
readme = f.read()
2828

29+
2930
setup(
3031
version='1.9.2',
3132
name='testgres',
32-
packages=['testgres', 'testgres.operations', 'testgres.plugins.probackup', 'testgres.plugins.probackup.storage'],
33+
packages=['testgres', 'testgres.operations'],
34+
extras_require = {
35+
# Optional plugin dependencies
36+
'pg_probackup2': ['testgres.plugins.pg_probackup2', 'testgres.plugins.pg_probackup2.storage']
37+
},
3338
description='Testing utility for PostgreSQL and its extensions',
3439
url='https://github.com/postgrespro/testgres',
3540
long_description=readme,

testgres/__init__.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@
5151
from .operations.os_ops import OsOperations, ConnectionParams
5252
from .operations.local_ops import LocalOperations
5353
from .operations.remote_ops import RemoteOperations
54-
from .plugins.probackup.gdb import GDBobj
55-
from .plugins.probackup.app import ProbackupApp
56-
from .plugins.probackup.app import ProbackupException
57-
from .plugins.probackup.init_helpers import init_params
58-
from .plugins.probackup.storage.fs_backup import FSTestBackupDir
5954

6055
__all__ = [
6156
"get_new_node",
@@ -68,6 +63,5 @@
6863
"PostgresNode", "NodeApp",
6964
"reserve_port", "release_port", "bound_ports", "get_bin_path", "get_pg_config", "get_pg_version",
7065
"First", "Any",
71-
"OsOperations", "LocalOperations", "RemoteOperations", "ConnectionParams",
72-
"init_params", "FSTestBackupDir", "ProbackupException", "ProbackupApp", "GDBobj"
66+
"OsOperations", "LocalOperations", "RemoteOperations", "ConnectionParams"
7367
]

testgres/plugins/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from pg_probackup2.gdb import GDBobj
2+
from pg_probackup2.app import ProbackupApp, ProbackupException
3+
from pg_probackup2.init_helpers import init_params
4+
from pg_probackup2.storage.fs_backup import FSTestBackupDir
5+
6+
7+
__all__ = [
8+
"ProbackupApp", "ProbackupException", "init_params", "FSTestBackupDir", "GDBobj"
9+
]

testgres/plugins/pg_probackup2/pg_probackup2/storage/__init__.py

Whitespace-only changes.

testgres/plugins/probackup/storage/fs_backup.py renamed to testgres/plugins/pg_probackup2/pg_probackup2/storage/fs_backup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
import shutil
66

7-
from testgres.plugins.probackup.init_helpers import init_params
7+
from ..init_helpers import init_params
88

99

1010
class TestBackupDir:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy