3a7db17147
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.
13 lines
287 B
Python
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()
|