[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "example-python-producer"
description = ''
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
keywords = []
authors = [
  { name = "Igor Bolshakov", email = "ibolsch@gmail.com" },
]
classifiers = [
  "Development Status :: 4 - Beta",
  "Programming Language :: Python :: 3.10",
  "Programming Language :: Python :: Implementation :: CPython",
  "Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
  "Flask == 2.0.3",
  "boto3 == 1.24.71",
  "kafka_utils == 2.3.0",
]
dynamic = ["version"]

[project.urls]
Documentation = "https://github.com/unknown/example-python-producer#readme"
Issues = "https://github.com/unknown/example-python-producer/issues"
Source = "https://github.com/unknown/example-python-producer"

[tool.hatch.version]
path = "example_python_producer/__about__.py"

[tool.hatch.envs.default]
dependencies = [
  "pytest",
  "pytest-cov",
]

[tool.hatch.envs.default.env-vars]
PIP_INDEX_URL = "https://pypi.theorchard.io/pypi"

[tool.hatch.envs.default.scripts]
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=example_python_producer --cov=tests {args}"
no-cov = "cov --no-cov {args}"

[[tool.hatch.envs.test.matrix]]
python = ["310", "311"]

# [[tool.hatch.source]]
# name = "orchard_pypi"
# url = "https://pypi.theorchard.io/pypi"
# verify_ssl = true

[tool.coverage.run]
branch = true
parallel = true
omit = [
  "example_python_producer/__about__.py",
]

[tool.coverage.report]
exclude_lines = [
  "no cov",
  "if __name__ == .__main__.:",
  "if TYPE_CHECKING:",
]
