diff options
| author | Alex Schofield <git@ajschof.me> | 2026-05-03 19:55:31 +0100 |
|---|---|---|
| committer | Alex Schofield <git@ajschof.me> | 2026-05-03 19:55:31 +0100 |
| commit | 4264ced9fa14b689acc18169b2c1cae72d3ce667 (patch) | |
| tree | 93fd19349e0f60ca4d8708ead9014a3cb9e9c50a | |
| parent | d0e905285691d73f2cf7e45a88dbadf631620f0a (diff) | |
| download | fuelnearme-4264ced9fa14b689acc18169b2c1cae72d3ce667.tar.gz fuelnearme-4264ced9fa14b689acc18169b2c1cae72d3ce667.zip | |
fix import paths & update pyproject.toml
| -rw-r--r-- | fnme/cli.py | 9 | ||||
| -rw-r--r-- | fnme/data.py | 3 | ||||
| -rw-r--r-- | fnme/station.py | 3 | ||||
| -rw-r--r-- | pyproject.toml | 2 |
4 files changed, 10 insertions, 7 deletions
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 = ["."] |
