diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index b80bc9b..fa73309 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -18,7 +18,7 @@ jobs: - name: Dependency run: | python -m pip install --upgrade pip - pip install -r requirements.txt + pip install -e .[dev] - name: MongoDB uses: supercharge/mongodb-github-action@1.10.0 with: diff --git a/pyproject.toml b/pyproject.toml index 68cbe93..c1b4cae 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,7 @@ dependencies = [ "joblib", "matplotlib", "numba", - "passlib[bcrypt]", + "passlib", "Pint", "pydantic<2", "python-dotenv", diff --git a/requirements.txt b/requirements.txt index 80066ca..1ae2096 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,6 @@ aiofiles==23.2.1 # via motion-base (pyproject.toml) anyio==3.7.1 # via fastapi, httpx, starlette astroid==3.1.0 # via pylint -bcrypt==4.1.2 # via passlib beanie==1.25.0 # via motion-base (pyproject.toml) black==24.3.0 # via motion-base (pyproject.toml) certifi==2024.2.2 # via httpcore, httpx @@ -42,7 +41,7 @@ mypy-extensions==1.0.0 # via black numba==0.59.1 # via motion-base (pyproject.toml) numpy==1.26.4 # via contourpy, matplotlib, numba, scipy packaging==24.0 # via black, matplotlib, pytest -passlib[bcrypt]==1.7.4 # via motion-base (pyproject.toml) +passlib==1.7.4 # via motion-base (pyproject.toml) pathspec==0.12.1 # via black pillow==10.2.0 # via matplotlib pint==0.23 # via motion-base (pyproject.toml) diff --git a/src/mb/app/utility.py b/src/mb/app/utility.py index ecb6e8a..dee64b0 100644 --- a/src/mb/app/utility.py +++ b/src/mb/app/utility.py @@ -73,7 +73,7 @@ class User(UserInformation): disabled: bool -crypt_context = CryptContext(schemes=["bcrypt"], deprecated="auto") +crypt_context = CryptContext(schemes=["sha256_crypt"], deprecated="auto") async def create_superuser():