Some checks failed
Run Tests / test (3.12) (push) Successful in 1m10s
Run Tests / test (3.13) (push) Successful in 1m9s
CI/CD Pipeline / lint (push) Successful in 0s
Build and Release / build (push) Successful in 41s
CI/CD Pipeline / test (push) Has been skipped
CI/CD Pipeline / build-and-release (push) Has been skipped
Build and Release / release (push) Successful in 5s
CI/CD Pipeline / notify (push) Successful in 1s
Lint Code / lint (push) Failing after 38s
101 lines
1.8 KiB
TOML
101 lines
1.8 KiB
TOML
[project]
|
|
name = "pyserve"
|
|
version = "0.9.0"
|
|
description = "Simple HTTP Web server written in Python"
|
|
authors = [
|
|
{name = "Илья Глазунов",email = "i.glazunov@sapiens.solutions"}
|
|
]
|
|
license = {text = "MIT"}
|
|
readme = "README.md"
|
|
requires-python = ">=3.12"
|
|
dependencies = [
|
|
"starlette (>=0.47.3,<0.48.0)",
|
|
"uvicorn[standard] (>=0.35.0,<0.36.0)",
|
|
"pyyaml (>=6.0,<7.0)",
|
|
"types-pyyaml (>=6.0.12.20250822,<7.0.0.0)",
|
|
"structlog (>=25.4.0,<26.0.0)",
|
|
"httpx (>=0.27.0,<0.28.0)",
|
|
]
|
|
|
|
[project.scripts]
|
|
pyserve = "pyserve.cli:main"
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest",
|
|
"pytest-cov",
|
|
"pytest-asyncio",
|
|
"black",
|
|
"isort",
|
|
"mypy",
|
|
"flake8"
|
|
]
|
|
wsgi = [
|
|
"a2wsgi>=1.10.0",
|
|
]
|
|
flask = [
|
|
"flask>=3.0.0",
|
|
"a2wsgi>=1.10.0",
|
|
]
|
|
fastapi = [
|
|
"fastapi>=0.115.0",
|
|
]
|
|
django = [
|
|
"django>=5.0",
|
|
]
|
|
all-frameworks = [
|
|
"fastapi>=0.115.0",
|
|
"flask>=3.0.0",
|
|
"django>=5.0",
|
|
"a2wsgi>=1.10.0",
|
|
]
|
|
|
|
|
|
[build-system]
|
|
requires = ["poetry-core>=2.0.0,<3.0.0", "setuptools", "cython>=3.0.0"]
|
|
build-backend = "poetry.core.masonry.api"
|
|
|
|
[tool.black]
|
|
line-length = 150
|
|
target-version = ['py312']
|
|
include = '\.pyi?$'
|
|
exclude = '''
|
|
/(
|
|
\.eggs
|
|
| \.git
|
|
| \.hg
|
|
| \.mypy_cache
|
|
| \.tox
|
|
| \.venv
|
|
| _build
|
|
| buck-out
|
|
| build
|
|
| dist
|
|
)/
|
|
'''
|
|
|
|
[tool.isort]
|
|
profile = "black"
|
|
multi_line_output = 3
|
|
line_length = 88
|
|
known_first_party = ["pyserve"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
python_files = ["test_*.py"]
|
|
python_classes = ["Test*"]
|
|
python_functions = ["test_*"]
|
|
addopts = ["-v", "--tb=short"]
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
pytest = "^8.4.1"
|
|
pytest-cov = "^6.2.1"
|
|
black = "^25.1.0"
|
|
isort = "^6.0.1"
|
|
mypy = "^1.17.1"
|
|
flake8 = "^7.3.0"
|
|
pytest-asyncio = "^1.3.0"
|
|
cython = "^3.0.0"
|
|
setuptools = "^80.0.0"
|
|
|