testgres-pg-probackup2 0.0.6__tar.gz → 0.1.1__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 (15) hide show
  1. {testgres_pg_probackup2-0.0.6 → testgres_pg_probackup2-0.1.1}/PKG-INFO +2 -11
  2. {testgres_pg_probackup2-0.0.6 → testgres_pg_probackup2-0.1.1}/pg_probackup2/app.py +17 -0
  3. {testgres_pg_probackup2-0.0.6 → testgres_pg_probackup2-0.1.1}/pg_probackup2/gdb.py +0 -8
  4. {testgres_pg_probackup2-0.0.6 → testgres_pg_probackup2-0.1.1}/setup.py +1 -1
  5. {testgres_pg_probackup2-0.0.6 → testgres_pg_probackup2-0.1.1}/testgres_pg_probackup2.egg-info/PKG-INFO +3 -12
  6. {testgres_pg_probackup2-0.0.6 → testgres_pg_probackup2-0.1.1}/README.md +0 -0
  7. {testgres_pg_probackup2-0.0.6 → testgres_pg_probackup2-0.1.1}/pg_probackup2/__init__.py +0 -0
  8. {testgres_pg_probackup2-0.0.6 → testgres_pg_probackup2-0.1.1}/pg_probackup2/init_helpers.py +0 -0
  9. {testgres_pg_probackup2-0.0.6 → testgres_pg_probackup2-0.1.1}/pg_probackup2/storage/__init__.py +0 -0
  10. {testgres_pg_probackup2-0.0.6 → testgres_pg_probackup2-0.1.1}/pg_probackup2/storage/fs_backup.py +0 -0
  11. {testgres_pg_probackup2-0.0.6 → testgres_pg_probackup2-0.1.1}/setup.cfg +0 -0
  12. {testgres_pg_probackup2-0.0.6 → testgres_pg_probackup2-0.1.1}/testgres_pg_probackup2.egg-info/SOURCES.txt +0 -0
  13. {testgres_pg_probackup2-0.0.6 → testgres_pg_probackup2-0.1.1}/testgres_pg_probackup2.egg-info/dependency_links.txt +0 -0
  14. {testgres_pg_probackup2-0.0.6 → testgres_pg_probackup2-0.1.1}/testgres_pg_probackup2.egg-info/requires.txt +0 -0
  15. {testgres_pg_probackup2-0.0.6 → testgres_pg_probackup2-0.1.1}/testgres_pg_probackup2.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.1
2
2
  Name: testgres_pg_probackup2
3
- Version: 0.0.6
3
+ Version: 0.1.1
4
4
  Summary: Plugin for testgres that manages pg_probackup2
5
5
  Home-page: https://github.com/postgrespro/testgres
6
6
  Author: Postgres Professional
@@ -8,12 +8,3 @@ Author-email: testgres@postgrespro.ru
8
8
  License: PostgreSQL
9
9
  Keywords: pg_probackup,testing,testgres
10
10
  Description-Content-Type: text/markdown
11
- Requires-Dist: testgres>=1.9.2
12
- Dynamic: author
13
- Dynamic: author-email
14
- Dynamic: description-content-type
15
- Dynamic: home-page
16
- Dynamic: keywords
17
- Dynamic: license
18
- Dynamic: requires-dist
19
- Dynamic: summary
@@ -842,5 +842,22 @@ class ProbackupApp:
842
842
  ]
843
843
  return self.run(cmd + options, expect_error=expect_error)
844
844
 
845
+ def maintain(
846
+ self, instance=None, backup_id=None,
847
+ options=None, old_binary=False, gdb=False, expect_error=False
848
+ ):
849
+ if options is None:
850
+ options = []
851
+ cmd_list = [
852
+ 'maintain',
853
+ ]
854
+ if instance:
855
+ cmd_list += ['--instance={0}'.format(instance)]
856
+ if backup_id:
857
+ cmd_list += ['-i', backup_id]
858
+
859
+ return self.run(cmd_list + options, old_binary=old_binary, gdb=gdb,
860
+ expect_error=expect_error)
861
+
845
862
  def build_backup_dir(self, backup='backup'):
846
863
  return fs_backup_class(rel_path=self.rel_path, backup=backup)
@@ -1,6 +1,5 @@
1
1
  import functools
2
2
  import os
3
- import re
4
3
  import subprocess
5
4
  import sys
6
5
  import unittest
@@ -57,13 +56,6 @@ class GDBobj:
57
56
  else:
58
57
  self.cmd = self.base_cmd + ['--args'] + cmd
59
58
 
60
- # Get version
61
- gdb_version_number = re.search(
62
- br"^GNU gdb [^\d]*(\d+)\.(\d)",
63
- gdb_version)
64
- self.major_version = int(gdb_version_number.group(1))
65
- self.minor_version = int(gdb_version_number.group(2))
66
-
67
59
  if self.verbose:
68
60
  print([' '.join(map(str, self.cmd))])
69
61
 
@@ -4,7 +4,7 @@ except ImportError:
4
4
  from distutils.core import setup
5
5
 
6
6
  setup(
7
- version='0.0.6',
7
+ version='0.1.1',
8
8
  name='testgres_pg_probackup2',
9
9
  packages=['pg_probackup2', 'pg_probackup2.storage'],
10
10
  description='Plugin for testgres that manages pg_probackup2',
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
2
- Name: testgres_pg_probackup2
3
- Version: 0.0.6
1
+ Metadata-Version: 2.1
2
+ Name: testgres-pg-probackup2
3
+ Version: 0.1.1
4
4
  Summary: Plugin for testgres that manages pg_probackup2
5
5
  Home-page: https://github.com/postgrespro/testgres
6
6
  Author: Postgres Professional
@@ -8,12 +8,3 @@ Author-email: testgres@postgrespro.ru
8
8
  License: PostgreSQL
9
9
  Keywords: pg_probackup,testing,testgres
10
10
  Description-Content-Type: text/markdown
11
- Requires-Dist: testgres>=1.9.2
12
- Dynamic: author
13
- Dynamic: author-email
14
- Dynamic: description-content-type
15
- Dynamic: home-page
16
- Dynamic: keywords
17
- Dynamic: license
18
- Dynamic: requires-dist
19
- Dynamic: summary