Files
uv/scripts/packages/built-by-uv/src/built_by_uv/arithmetic/circle.py
T
konsti 3a7db17147 Build backend: Add source tree -> source dist -> wheel tests (#9091)
A first milestone: source tree -> source dist -> wheel -> install works.
This PR adds a test for this.

There's obviously a lot still missing, including basics such as the
Readme inclusion.
2024-11-14 19:15:32 +00:00

13 lines
287 B
Python

from functools import lru_cache
from pathlib import Path
@lru_cache(maxsize=1)
def pi() -> float:
return float(Path(__file__).parent.joinpath("pi.txt").read_text().strip())
def area(radius: float) -> float:
"""Use a non-Python file (`pi.txt`)."""
return radius**2 * pi()