Merge pull request 'v0.6.1' (#86) from dev into master

Reviewed-on: #86
This commit is contained in:
Profitroll 2025-01-04 23:36:04 +02:00
commit 00af3433e9
2 changed files with 12 additions and 13 deletions

View File

@ -35,8 +35,8 @@ First you need to have a Python interpreter, MongoDB and optionally git. You can
3. Create virtual environment [Optional yet recommended]: 3. Create virtual environment [Optional yet recommended]:
1. Install virtualenv module: `pip install virtualenv` 1. Install virtualenv module: `pip install virtualenv`
2. Create venv: `python -m venv env` 2. Create venv: `python -m venv .venv`
3. Activate it using `source venv/bin/activate` on Linux, `venv\Scripts\activate.bat` in CMD or `venv\Scripts\Activate.ps1` in PowerShell. 3. Activate it using `source .venv/bin/activate` on Linux, `.venv\Scripts\activate.bat` in CMD or `.venv\Scripts\Activate.ps1` in PowerShell.
4. Install project's dependencies: 4. Install project's dependencies:
@ -97,7 +97,7 @@ It's a good practice to use your API as a systemd service on Linux. Here's a qui
[Service] [Service]
Restart=always Restart=always
Type=simple Type=simple
ExecStart=/bin/bash -c 'source venv/bin/activate && venv/bin/uvicorn photos_api:app --port 8054' ExecStart=/bin/bash -c 'source .venv/bin/activate && .venv/bin/uvicorn photos_api:app --port 8054'
WorkingDirectory=/opt/PhotosAPI WorkingDirectory=/opt/PhotosAPI
User=photosapi User=photosapi
Group=photosapi Group=photosapi

View File

@ -1,14 +1,13 @@
aiofiles==23.2.1 aiofiles==24.1.0
apscheduler~=3.10.1 apscheduler~=3.11.0
exif==1.6.0 async_pymongo==0.1.11
fastapi[all]==0.104.1 exif==1.6.1
mongodb-migrations==1.3.0 fastapi[all]==0.115.6
opencv-python~=4.8.1.78 mongodb-migrations==1.3.1
opencv-python~=4.10.0.82
passlib~=1.7.4 passlib~=1.7.4
pymongo>=4.3.3 pymongo>=4.3.3
python-jose[cryptography]~=3.3.0 python-jose[cryptography]~=3.3.0
python-magic~=0.4.27 python-magic~=0.4.27
scipy~=1.11.0 scipy~=1.13.0,<1.14.0
ujson~=5.8.0 ujson~=5.10.0
--extra-index-url https://git.end-play.xyz/api/packages/profitroll/pypi/simple
async_pymongo==0.1.4