Skip to content

Commit b15a7a1

Browse files
committed
Migrate to restfulpy >= 4
1 parent a040188 commit b15a7a1

File tree

2 files changed

+7
-21
lines changed

2 files changed

+7
-21
lines changed

hive/application.py

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,15 @@
99

1010
class Hive(Application):
1111
__authenticator__ = Authenticator()
12-
__configuration__ = '''
13-
db:
14-
url: postgresql://postgres:postgres@localhost/sharelists_dev
15-
test_url: postgresql://postgres:postgres@localhost/sharelists_test
16-
administrative_url: postgresql://postgres:postgres@localhost/postgres
12+
__cli_arguments__ = [
13+
UserCommand
14+
]
1715

18-
migration:
19-
directory: %(root_path)s/migration
20-
ini: %(root_path)s/alembic.ini
21-
22-
'''
23-
24-
def __init__(self, application_name='sharelists'):
25-
from hive import __version__
16+
def __init__(self, name='hive'):
2617
super().__init__(
27-
application_name,
18+
name,
2819
root=Root(),
29-
root_path=dirname(__file__),
30-
version=__version__
20+
path_=dirname(__file__),
3121
)
3222

3323
def insert_mockup(self, args=None): # pragma: no cover
@@ -37,6 +27,3 @@ def insert_mockup(self, args=None): # pragma: no cover
3727
DBSession.add(oscar)
3828
DBSession.commit()
3929

40-
def get_cli_arguments(self):
41-
return [UserCommand]
42-

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111

1212

1313
dependencies = [
14-
'restfulpy >= 3.4, < 4',
15-
'easycli >= 1.4.0, < 2',
14+
'restfulpy >= 4, < 5',
1615

1716
# Deployment
1817
'gunicorn',

0 commit comments

Comments
 (0)