-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from juntossomosmais/chore/update-dependencies
chore(dependencies): update python version to 3.10 and django to 5
- Loading branch information
Showing
7 changed files
with
181 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
FROM python:3.9-slim | ||
FROM python:3.10-slim | ||
|
||
WORKDIR /app | ||
RUN apt update && apt install -y git && apt clean | ||
|
||
# Git is required for pre-commit | ||
RUN apt update | ||
RUN apt install -y git | ||
WORKDIR /app | ||
|
||
RUN pip install poetry | ||
RUN pip install --upgrade pip && \ | ||
pip install poetry && \ | ||
poetry config virtualenvs.create false --local | ||
|
||
COPY . . | ||
COPY poetry.lock pyproject.toml ./ | ||
|
||
RUN poetry config virtualenvs.create false && \ | ||
poetry install --no-dev --no-root | ||
RUN poetry install --no-root | ||
|
||
RUN poetry install --no-root --with dev | ||
COPY . ./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "django-outbox-pattern" | ||
version = "1.1.0" | ||
version = "2.0.0" | ||
description = "A django application to make it easier to use the transactional outbox pattern" | ||
license = "MIT" | ||
authors = ["Hugo Brilhante <[email protected]>"] | ||
|
@@ -12,12 +12,12 @@ keywords = ["transactional outbox patterns", "application events", "microservice | |
classifiers = [ | ||
'Development Status :: 5 - Production/Stable', | ||
'Environment :: Web Environment', | ||
'Framework :: Django :: 4.2', | ||
'Framework :: Django :: 5.0', | ||
'Framework :: Django :: 5.1', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: MIT License', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3.12', | ||
|
@@ -29,18 +29,35 @@ packages = [ | |
] | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.9,<4.0" | ||
django = ">=4.2" | ||
python = ">=3.10,<4.0" | ||
django = ">=5.0.8" | ||
"stomp.py" = ">=8.0.1,<9" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
psycopg2-binary = "^2.9.6" | ||
coverage = "^7.2.3" | ||
pre-commit = "^3.7.1" | ||
coverage = "*" | ||
pre-commit = "*" | ||
|
||
[tool.black] | ||
line-length = 120 | ||
|
||
target_version = ["py310"] | ||
include = '\.pyi?$' | ||
exclude = ''' | ||
( | ||
/( | ||
\.eggs | ||
| \.git | ||
| \.hg | ||
| \.mypy_cache | ||
| \.tox | ||
| \.venv | ||
| _build | ||
| buck-out | ||
| build | ||
| dist | ||
)/ | ||
) | ||
''' | ||
[tool.isort] | ||
multi_line_output = 3 | ||
include_trailing_comma = 'True' | ||
|
@@ -62,7 +79,8 @@ disable = [ | |
"too-few-public-methods", | ||
"logging-not-lazy", | ||
"consider-using-f-string", | ||
"logging-fstring-interpolation" | ||
"logging-fstring-interpolation", | ||
"too-many-ancestors" | ||
] | ||
|
||
[tool.pylint.format] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,5 @@ | |
} | ||
|
||
DJANGO_OUTBOX_PATTERN = {"DEFAULT_STOMP_HOST_AND_PORTS": [("rabbitmq", 61613)]} | ||
|
||
USE_TZ = False |