-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
1,603 additions
and
85 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 was deleted.
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,14 +1,13 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM registry.pyn.ru/python3.11-bullseye-building:2023.06.01 | ||
FROM registry.pyn.ru/python3.11-bullseye-building:2023.08.01 | ||
|
||
RUN mkdir -p -m 0600 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts | ||
|
||
COPY frontik-test requirements*txt README.md MANIFEST.in /home/building/ | ||
COPY frontik-test README.md MANIFEST.in /home/building/ | ||
COPY poetry.lock pyproject.toml /home/building/ | ||
COPY frontik /home/building/frontik/ | ||
COPY tests /home/building/tests/ | ||
COPY examples /home/building/examples/ | ||
WORKDIR /home/building | ||
|
||
RUN --mount=type=ssh pip3 install --upgrade pip && \ | ||
pip3 install --prefer-binary -r requirements.txt && \ | ||
pip3 install --prefer-binary -r requirements_venv.txt | ||
RUN --mount=type=ssh poetry install --no-root |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[virtualenvs] | ||
create = true | ||
in-project = true | ||
path = '.venv' |
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,39 +1,48 @@ | ||
[build-system] | ||
requires = ["setuptools >= 66.1"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "frontik" | ||
description = "Frontik is an asyncronous Tornado-based application server" | ||
requires-python = ">=3.8" | ||
dynamic = ["dependencies", "optional-dependencies", "readme", "version"] | ||
|
||
[project.scripts] | ||
frontik = "frontik.server:main" | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/hhru/frontik" | ||
Repository = "https://github.com/hhru/frontik.git" | ||
|
||
[tool.setuptools] | ||
zip-safe = false | ||
|
||
[tool.setuptools.dynamic] | ||
dependencies = {file = "requirements.txt"} | ||
readme = {file = "README.md"} | ||
version = {attr = "frontik.version.version"} | ||
|
||
[tool.setuptools.dynamic.optional-dependencies] | ||
kafka = {file = "requirements_kafka.txt"} | ||
sentry = {file = "requirements_sentry.txt"} | ||
test = {file = "requirements_venv.txt"} | ||
|
||
[tool.setuptools.packages.find] | ||
exclude = ["tests*"] | ||
|
||
[tool.setuptools.package-data] | ||
"frontik" = ["debug/*.xsl"] | ||
requires = ['poetry-core>=1.5.1'] | ||
build-backend = 'poetry.core.masonry.api' | ||
|
||
[tool.poetry] | ||
name = 'frontik' | ||
version = '7.0.4' | ||
description = 'Frontik is an asyncronous Tornado-based application server' | ||
authors = ['architecture <[email protected]>'] | ||
repository = 'https://github.com/hhru/frontik' | ||
homepage = 'https://github.com/hhru/frontik' | ||
readme = 'README.md' | ||
|
||
[tool.poetry.scripts] | ||
frontik = 'frontik.server:main' | ||
|
||
[tool.poetry.dependencies] | ||
python = '3.11.*' | ||
aiohttp = '3.8.3' | ||
jinja2 = '3.1.2' | ||
lxml = '4.9.2' | ||
pydantic = '>=1.10.5,<2' | ||
tornado = '6.2.0' | ||
http-client = {git = 'https://github.com/hhru/balancing-http-client.git', tag = '2.0.4'} | ||
python-consul2-hh = {git = 'https://github.com/hhru/python-consul2', tag = 'v0.2.9'} | ||
opentelemetry-sdk = '1.17.0' | ||
opentelemetry-api = '1.17.0' | ||
opentelemetry-exporter-otlp-proto-grpc = '1.17.0' | ||
opentelemetry-instrumentation-tornado = '0.38b0' | ||
opentelemetry-instrumentation-aiohttp-client = '0.38b0' | ||
|
||
[tool.poetry.group.test.dependencies] | ||
pytest = '>=7.2.0' | ||
pytest-asyncio = '0.21.1' | ||
pycodestyle = '>=2.5.0' | ||
requests = '>=2.0' | ||
tox = '4.6.3' | ||
lxml-asserts = '0.1.1' | ||
tornado-httpclient-mock = '0.2.3' | ||
sentry-sdk = '1.26.0' | ||
aiokafka = '0.8.1' | ||
|
||
[tool.pytest.ini_options] | ||
addopts = "--tb native" | ||
markers = ["asyncio"] | ||
addopts = ''' | ||
--tb native | ||
--asyncio-mode=auto | ||
-p no:warnings | ||
''' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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