From 94d3d9ffaaceed09d2efa59fb89c247f73f11875 Mon Sep 17 00:00:00 2001 From: Alex Schofield Date: Sun, 3 May 2026 18:18:29 +0100 Subject: init new uv project with new structure --- pyproject.toml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pyproject.toml (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..721d4ee --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,20 @@ +[project] +name = "fnme" +version = "0.1.0" +description = "Find cheap(er) fuel near you using the official Fuel Finder service provided by the UK government" +readme = "README.md" +requires-python = ">=3.11" +dependencies = [ + "geopy>=2.4.1", + "pandas>=3.0.2", + "requests>=2.33.1", + "numpy>=2.4.4", + "tabulate>=0.10.0" +] + +[project.scripts] +fnme = "fuelnearme.cli:main" + +[tool.setuptools.packages.find] +where = ["."] +include = ["fnme"] -- cgit v1.2.3 From 4264ced9fa14b689acc18169b2c1cae72d3ce667 Mon Sep 17 00:00:00 2001 From: Alex Schofield Date: Sun, 3 May 2026 19:55:31 +0100 Subject: fix import paths & update pyproject.toml --- fnme/cli.py | 9 +++++---- fnme/data.py | 3 ++- fnme/station.py | 3 ++- pyproject.toml | 2 +- 4 files changed, 10 insertions(+), 7 deletions(-) (limited to 'pyproject.toml') diff --git a/fnme/cli.py b/fnme/cli.py index d93d9f4..d9ef508 100644 --- a/fnme/cli.py +++ b/fnme/cli.py @@ -2,12 +2,13 @@ import argparse import sys from typing import Any, Dict, List -from constants import SORT_KV -from data import get_latest_data -from geo import get_location -from station import filter_df, sort_stations from tabulate import tabulate +from fnme.constants import SORT_KV +from fnme.data import get_latest_data +from fnme.geo import get_location +from fnme.station import filter_df, sort_stations + def parse_args() -> argparse.Namespace: parser = argparse.ArgumentParser() diff --git a/fnme/data.py b/fnme/data.py index 369d80f..bdec6df 100644 --- a/fnme/data.py +++ b/fnme/data.py @@ -3,7 +3,8 @@ from typing import Optional import pandas as pd import requests -from constants import ENDPOINT, HEADERS + +from fnme.constants import ENDPOINT, HEADERS def get_latest_data() -> tuple[pd.DataFrame, Optional[str]]: diff --git a/fnme/station.py b/fnme/station.py index e5112c3..c971173 100644 --- a/fnme/station.py +++ b/fnme/station.py @@ -4,7 +4,8 @@ from typing import Any, Dict, List, Tuple import numpy as np import pandas as pd -from constants import SORT_KV + +from fnme.constants import SORT_KV def filter_df( diff --git a/pyproject.toml b/pyproject.toml index 721d4ee..fcf426d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ dependencies = [ ] [project.scripts] -fnme = "fuelnearme.cli:main" +fnme = "fnme.cli:main" [tool.setuptools.packages.find] where = ["."] -- cgit v1.2.3