Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

2.1 KB
Raw Blame
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "owners-yaml"
version = "0.3.0"
description = "Code ownership in owners.yaml files next to the code: resolver, linter, and CODEOWNERS export"
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
authors = [
    { name = "PostHog", email = "[email protected]" }
]
keywords = ["ownership", "codeowners", "owners.yaml", "monorepo", "code-review", "devex"]
classifiers = [
    "Development Status :: 4 - Beta",
    "Environment :: Console",
    "Intended Audience :: Developers",
    "License :: OSI Approved :: MIT License",
    "Operating System :: OS Independent",
    "Programming Language :: Python :: 3",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
    "Programming Language :: Python :: 3.13",
    "Topic :: Software Development :: Build Tools",
    "Topic :: Utilities",
]
dependencies = [
    "pyyaml>=6.0",
    "click>=8.0",
]

[project.optional-dependencies]
dev = [
    "pytest>=7.0",
]

[project.scripts]
owners = "owners_yaml.cli:main"
# Lets `uvx owners-yaml` work without `--from`.
owners-yaml = "owners_yaml.cli:main"

[project.urls]
Homepage = "https://owners-yaml.posthog.dev"
Documentation = "https://github.com/PostHog/posthog/tree/master/packages/owners-yaml#readme"
Specification = "https://github.com/PostHog/posthog/blob/master/packages/owners-yaml/SPEC.md"
Changelog = "https://github.com/PostHog/posthog/blob/master/packages/owners-yaml/CHANGELOG.md"
Repository = "https://github.com/PostHog/posthog/tree/master/packages/owners-yaml"
Issues = "https://github.com/PostHog/posthog/issues"

[tool.hatch.build.targets.wheel]
packages = ["owners_yaml"]

[tool.uv]
exclude-newer = "7 days"
# uv keys the built wheel on pyproject.toml alone by default, so a source-only change leaves
# the stale wheel in the cache and uv installs it again. List the sources to key on them too.
cache-keys = [
    { file = "pyproject.toml" },
    { file = "owners_yaml/**/*.py" },
]

[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-p no:warnings -p no:django"