Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export VIRTUALENV=${VIRTUALENV:="${app_name}"}
export FREENIT_ENV=${FREENIT_ENV:="prod"}
export SYSPKG=${SYSPKG:="no"}
export SYSPKG=`echo ${SYSPKG} | tr '[:lower:]' '[:upper:]'`
export DB_TYPE=${DB_TYPE:="ormar"}
export DB_TYPE=${DB_TYPE:="sql"}
export PIP_INSTALL="pip install -U --upgrade-strategy eager"
export OFFLINE=${OFFLINE:="no"}

Expand All @@ -27,7 +27,7 @@ setup() {
fi
fi

if [ "${DB_TYPE}" = "ormar" ]; then
if [ "${DB_TYPE}" = "sql" ]; then
if [ ! -e "alembic/versions" ]; then
mkdir alembic/versions
alembic revision --autogenerate -m initial
Expand Down
6 changes: 6 additions & 0 deletions freenit/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,22 @@

try:
from .local_config import DevConfig
except ModuleNotFoundError:
from .base_config import DevConfig
except ImportError:
from .base_config import DevConfig

try:
from .local_config import TestConfig
except ModuleNotFoundError:
from .base_config import TestConfig
except ImportError:
from .base_config import TestConfig

try:
from .local_config import ProdConfig
except ModuleNotFoundError:
from .base_config import ProdConfig
except ImportError:
from .base_config import ProdConfig

Expand Down
6 changes: 3 additions & 3 deletions freenit/project/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = {file = "LICENSE"}
requires-python = ">=3.8"
dependencies = [
"aiosqlite",
"freenit[ormar]",
"freenit[sql]",
]
authors = [
{name = "John Doe", email = "john@doe.com"},
Expand All @@ -25,10 +25,10 @@ classifiers = [
]

[project.optional-dependencies]
beanie = ["freenit[beanie]"]
mongo = ["freenit[mongo]"]
dev = ["freenit[dev]"]
ldap = ["freenit[ldap]"]
ormar = ["freenit[ormar]"]
sql = ["freenit[sql]"]
test = ["freenit[test]"]

[project.urls]
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ classifiers = [
]

[project.optional-dependencies]
beanie = ["beanie"]
mongo = ["beanie"]
dev = [
"aiosqlite",
"ruff",
Expand All @@ -41,9 +41,9 @@ classifiers = [
]
build = ["twine"]
ldap = ["bonsai"]
ormar = [
sql = [
"alembic",
"ormar",
"sql",
]
test = [
"aiosqlite",
Expand Down
5 changes: 0 additions & 5 deletions setup.cfg

This file was deleted.

101 changes: 0 additions & 101 deletions setup.py

This file was deleted.

Loading