Skip to content

Commit 264f8c6

Browse files
authored
Merge pull request #38 from asp3cto/void_branch
Void branch
2 parents a8ece23 + e7dc7e2 commit 264f8c6

File tree

9 files changed

+2253
-84
lines changed

9 files changed

+2253
-84
lines changed

Dockerfile.auth

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ RUN mkdir auth_server
55
ENV PYTHONDONTWRITEBYTECODE 1
66
ENV PYTHONUNBUFFERED 1
77

8-
COPY ./requirements.auth.txt ./
8+
COPY poetry/poetry_for_auth/pyproject.toml poetry/poetry_for_auth/poetry.lock ./
99

10-
RUN pip3 install --no-cache-dir -r ./requirements.auth.txt;
10+
RUN pip install poetry \
11+
&& poetry config virtualenvs.create false \
12+
&& poetry install --no-root --no-dev
1113

1214
COPY ./auth_server ./auth_server
15+
RUN pip install uvicorn
1316

1417
WORKDIR /auth_server
1518

Dockerfile.info

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ RUN mkdir info_server
55
ENV PYTHONDONTWRITEBYTECODE 1
66
ENV PYTHONUNBUFFERED 1
77

8-
COPY ./requirements.info.txt ./
8+
COPY poetry/poetry_for_info/pyproject.toml poetry/poetry_for_info/poetry.lock ./
99

10-
RUN pip3 install --no-cache-dir -r ./requirements.info.txt;
10+
RUN pip install poetry \
11+
&& poetry config virtualenvs.create false \
12+
&& poetry install --no-root --no-dev
1113

1214
COPY ./info_server ./info_server
15+
RUN pip install uvicorn
1316

1417
WORKDIR /info_server
1518

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@ docker compose up --build
1111
```bash
1212
docker compose exec auth_server pytest tests/ -v -s
1313
```
14+
15+
# Dependencies
16+
Project uses dependencies via the **poetry** tool
17+
dependencies for auth_server in auth_server/pyproject.toml
18+
dependencies for info_server in info_server/pyproject.toml
19+
20+
```bash
21+
# add dependency
22+
poetry add package
23+
# delete dependency
24+
poetry remove package
25+
```
26+
1427
# Linting
1528
```bash
1629
pip install ruff

poetry/poetry_for_auth/poetry.lock

+1,288
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

poetry/poetry_for_auth/pyproject.toml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[tool.poetry]
2+
name = "poetry-for-auth"
3+
version = "0.1.0"
4+
description = ""
5+
authors = ["Your Name <[email protected]>"]
6+
readme = "README.md"
7+
8+
[tool.poetry.dependencies]
9+
python = "^3.10.13"
10+
fastapi = "^0.109.2"
11+
pydantic = "^2.6.1"
12+
pydantic-settings = "^2.2.1"
13+
pyjwt = {extras = ["crypto"], version = "^2.8.0"}
14+
bcrypt = "^4.1.2"
15+
email-validator = "^2.1.0.post1"
16+
sqlalchemy = {extras = ["asyncio"], version = "^2.0.27"}
17+
asyncpg = "^0.29.0"
18+
fastapi-pagination = "^0.12.16"
19+
exceptiongroup = "^1.2.0"
20+
uvicorn = {extras = ["standard"], version = "^0.27.1"}
21+
python-multipart = "^0.0.9"
22+
pytest = {extras = ["asyncio"], version = "^8.0.1"}
23+
httpx = "^0.26.0"
24+
pytest-asyncio = "^0.23.5"
25+
26+
27+
[build-system]
28+
requires = ["poetry-core"]
29+
build-backend = "poetry.core.masonry.api"

poetry/poetry_for_info/poetry.lock

+890
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

poetry/poetry_for_info/pyproject.toml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[tool.poetry]
2+
name = "poetry-for-info"
3+
version = "0.1.0"
4+
description = ""
5+
authors = ["Your Name <[email protected]>"]
6+
readme = "README.md"
7+
8+
[tool.poetry.dependencies]
9+
python = "^3.10.13"
10+
fastapi = "^0.109.2"
11+
pydantic = "^2.6.1"
12+
uvicorn = {extras = ["standard"], version = "^0.27.1"}
13+
exceptiongroup = "^1.2.0"
14+
fastapi-pagination = "^0.12.16"
15+
python-multipart = "^0.0.9"
16+
motor = "^3.3.2"
17+
beanie = "^1.25.0"
18+
pydantic-settings = "^2.2.1"
19+
20+
21+
[build-system]
22+
requires = ["poetry-core"]
23+
build-backend = "poetry.core.masonry.api"

requirements.auth.txt

-49
This file was deleted.

requirements.info.txt

-31
This file was deleted.

0 commit comments

Comments
 (0)