yhttp-dbmanager 8.2.0__tar.gz → 9.0.0__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 (24) hide show
  1. {yhttp_dbmanager-8.2.0/yhttp_dbmanager.egg-info → yhttp_dbmanager-9.0.0}/PKG-INFO +2 -2
  2. {yhttp_dbmanager-8.2.0 → yhttp_dbmanager-9.0.0}/setup.py +1 -1
  3. {yhttp_dbmanager-8.2.0 → yhttp_dbmanager-9.0.0}/tests/test_cli_createdrop.py +2 -2
  4. {yhttp_dbmanager-8.2.0 → yhttp_dbmanager-9.0.0}/tests/test_cli_migration.py +2 -2
  5. {yhttp_dbmanager-8.2.0 → yhttp_dbmanager-9.0.0}/tests/test_cli_usercommand.py +2 -2
  6. {yhttp_dbmanager-8.2.0 → yhttp_dbmanager-9.0.0}/yhttp/ext/dbmanager/__init__.py +1 -1
  7. {yhttp_dbmanager-8.2.0 → yhttp_dbmanager-9.0.0}/yhttp/ext/dbmanager/install.py +6 -5
  8. {yhttp_dbmanager-8.2.0 → yhttp_dbmanager-9.0.0/yhttp_dbmanager.egg-info}/PKG-INFO +2 -2
  9. yhttp_dbmanager-9.0.0/yhttp_dbmanager.egg-info/requires.txt +2 -0
  10. yhttp_dbmanager-8.2.0/yhttp_dbmanager.egg-info/requires.txt +0 -2
  11. {yhttp_dbmanager-8.2.0 → yhttp_dbmanager-9.0.0}/LICENSE +0 -0
  12. {yhttp_dbmanager-8.2.0 → yhttp_dbmanager-9.0.0}/README.md +0 -0
  13. {yhttp_dbmanager-8.2.0 → yhttp_dbmanager-9.0.0}/setup.cfg +0 -0
  14. {yhttp_dbmanager-8.2.0 → yhttp_dbmanager-9.0.0}/tests/test_dbmanager.py +0 -0
  15. {yhttp_dbmanager-8.2.0 → yhttp_dbmanager-9.0.0}/tests/test_dburi.py +0 -0
  16. {yhttp_dbmanager-8.2.0 → yhttp_dbmanager-9.0.0}/tests/test_install.py +0 -0
  17. {yhttp_dbmanager-8.2.0 → yhttp_dbmanager-9.0.0}/tests/test_migrator.py +0 -0
  18. {yhttp_dbmanager-8.2.0 → yhttp_dbmanager-9.0.0}/yhttp/ext/dbmanager/cli.py +0 -0
  19. {yhttp_dbmanager-8.2.0 → yhttp_dbmanager-9.0.0}/yhttp/ext/dbmanager/dbmanager.py +0 -0
  20. {yhttp_dbmanager-8.2.0 → yhttp_dbmanager-9.0.0}/yhttp/ext/dbmanager/migration.py +0 -0
  21. {yhttp_dbmanager-8.2.0 → yhttp_dbmanager-9.0.0}/yhttp/ext/dbmanager/uri.py +0 -0
  22. {yhttp_dbmanager-8.2.0 → yhttp_dbmanager-9.0.0}/yhttp_dbmanager.egg-info/SOURCES.txt +0 -0
  23. {yhttp_dbmanager-8.2.0 → yhttp_dbmanager-9.0.0}/yhttp_dbmanager.egg-info/dependency_links.txt +0 -0
  24. {yhttp_dbmanager-8.2.0 → yhttp_dbmanager-9.0.0}/yhttp_dbmanager.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yhttp-dbmanager
3
- Version: 8.2.0
3
+ Version: 9.0.0
4
4
  Summary: Database manager command line interface and API for yhttp.
5
5
  Home-page: http://github.com/yhttp/yhttp-dbmanager
6
6
  Author: Vahid Mardani
@@ -22,7 +22,7 @@ Classifier: Topic :: Software Development :: Libraries
22
22
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
- Requires-Dist: yhttp<9,>=8.0.1
25
+ Requires-Dist: yhttp<10,>=9.0.1
26
26
  Requires-Dist: psycopg2
27
27
  Dynamic: author
28
28
  Dynamic: author-email
@@ -18,7 +18,7 @@ with open(
18
18
 
19
19
 
20
20
  dependencies = [
21
- 'yhttp >= 8.0.1, < 9',
21
+ 'yhttp >= 9.0.1, < 10',
22
22
  'psycopg2',
23
23
  ]
24
24
 
@@ -8,10 +8,10 @@ from yhttp.ext.dbmanager import install
8
8
 
9
9
 
10
10
  app = Application('0.1.0', 'foo')
11
- app.settings.merge('''
11
+ app.settings |= '''
12
12
  db:
13
13
  url: postgres://:@/foo
14
- ''')
14
+ '''
15
15
  install(app)
16
16
 
17
17
 
@@ -10,12 +10,12 @@ from yhttp.ext.dbmanager import install
10
10
 
11
11
  vdir = tempfile.mkdtemp()
12
12
  app = Application('0.1.0', 'foo')
13
- app.settings.merge(f'''
13
+ app.settings |= f'''
14
14
  db:
15
15
  url: postgres://:@/foo
16
16
  migration:
17
17
  directory: {vdir}
18
- ''')
18
+ '''
19
19
  if os.environ.get('CI') and os.environ.get('GITHUB_RUN_ID'):
20
20
  app.settings.db.url = 'postgres://postgres:postgres@localhost/foo'
21
21
 
@@ -14,10 +14,10 @@ class Bar(easycli.SubCommand):
14
14
 
15
15
 
16
16
  app = Application('0.1.0', 'foo')
17
- app.settings.merge('''
17
+ app.settings |= '''
18
18
  db:
19
19
  url: postgres://:@/foo
20
- ''')
20
+ '''
21
21
  install(app, cliarguments=[Bar])
22
22
 
23
23
 
@@ -6,4 +6,4 @@ from .uri import DatabaseURI
6
6
  from .migration import Migrator
7
7
 
8
8
 
9
- __version__ = '8.2.0'
9
+ __version__ = '9.0.0'
@@ -1,3 +1,5 @@
1
+ from pymlconf import Meld
2
+
1
3
  from .cli import DatabaseCommand
2
4
  from .migration import Migrator
3
5
 
@@ -7,11 +9,10 @@ def install(app, cliarguments=None):
7
9
  if cliarguments:
8
10
  DatabaseCommand.__arguments__.extend(cliarguments)
9
11
 
10
- app.settings.merge('''
11
- db:
12
- migration: {}
13
- ''')
14
- app.settings.db.migration.merge(Migrator.default_settings)
12
+ app.settings |= Meld(
13
+ Meld(Migrator.default_settings, root='migration'),
14
+ root='db'
15
+ )
15
16
 
16
17
  @app.when
17
18
  def ready(app):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yhttp-dbmanager
3
- Version: 8.2.0
3
+ Version: 9.0.0
4
4
  Summary: Database manager command line interface and API for yhttp.
5
5
  Home-page: http://github.com/yhttp/yhttp-dbmanager
6
6
  Author: Vahid Mardani
@@ -22,7 +22,7 @@ Classifier: Topic :: Software Development :: Libraries
22
22
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
- Requires-Dist: yhttp<9,>=8.0.1
25
+ Requires-Dist: yhttp<10,>=9.0.1
26
26
  Requires-Dist: psycopg2
27
27
  Dynamic: author
28
28
  Dynamic: author-email
@@ -0,0 +1,2 @@
1
+ yhttp<10,>=9.0.1
2
+ psycopg2
@@ -1,2 +0,0 @@
1
- yhttp<9,>=8.0.1
2
- psycopg2
File without changes