File tree Expand file tree Collapse file tree 6 files changed +14
-114
lines changed Expand file tree Collapse file tree 6 files changed +14
-114
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export VIRTUALENV=${VIRTUALENV:="${app_name}"}
8
8
export FREENIT_ENV=${FREENIT_ENV:= " prod" }
9
9
export SYSPKG=${SYSPKG:= " no" }
10
10
export SYSPKG=` echo ${SYSPKG} | tr ' [:lower:]' ' [:upper:]' `
11
- export DB_TYPE=${DB_TYPE:= " ormar " }
11
+ export DB_TYPE=${DB_TYPE:= " sql " }
12
12
export PIP_INSTALL=" pip install -U --upgrade-strategy eager"
13
13
export OFFLINE=${OFFLINE:= " no" }
14
14
@@ -27,7 +27,7 @@ setup() {
27
27
fi
28
28
fi
29
29
30
- if [ " ${DB_TYPE} " = " ormar " ]; then
30
+ if [ " ${DB_TYPE} " = " sql " ]; then
31
31
if [ ! -e " alembic/versions" ]; then
32
32
mkdir alembic/versions
33
33
alembic revision --autogenerate -m initial
Original file line number Diff line number Diff line change 2
2
3
3
try :
4
4
from .local_config import DevConfig
5
+ except ModuleNotFoundError :
6
+ from .base_config import DevConfig
5
7
except ImportError :
6
8
from .base_config import DevConfig
7
9
8
10
try :
9
11
from .local_config import TestConfig
12
+ except ModuleNotFoundError :
13
+ from .base_config import TestConfig
10
14
except ImportError :
11
15
from .base_config import TestConfig
12
16
13
17
try :
14
18
from .local_config import ProdConfig
19
+ except ModuleNotFoundError :
20
+ from .base_config import ProdConfig
15
21
except ImportError :
16
22
from .base_config import ProdConfig
17
23
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ license = {file = "LICENSE"}
11
11
requires-python = " >=3.8"
12
12
dependencies = [
13
13
" aiosqlite" ,
14
- " freenit[ormar ]" ,
14
+ " freenit[sql ]" ,
15
15
]
16
16
authors = [
17
17
{name = " John Doe" , email = " john@doe.com" },
@@ -25,10 +25,10 @@ classifiers = [
25
25
]
26
26
27
27
[project .optional-dependencies ]
28
- beanie = [" freenit[beanie ]" ]
28
+ mongo = [" freenit[mongo ]" ]
29
29
dev = [" freenit[dev]" ]
30
30
ldap = [" freenit[ldap]" ]
31
- ormar = [" freenit[ormar ]" ]
31
+ sql = [" freenit[sql ]" ]
32
32
test = [" freenit[test]" ]
33
33
34
34
[project .urls ]
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ classifiers = [
28
28
]
29
29
30
30
[project .optional-dependencies ]
31
- beanie = [" beanie" ]
31
+ mongo = [" beanie" ]
32
32
dev = [
33
33
" aiosqlite" ,
34
34
" ruff" ,
@@ -41,9 +41,9 @@ classifiers = [
41
41
]
42
42
build = [" twine" ]
43
43
ldap = [" bonsai" ]
44
- ormar = [
44
+ sql = [
45
45
" alembic" ,
46
- " ormar " ,
46
+ " sql " ,
47
47
]
48
48
test = [
49
49
" aiosqlite" ,
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments