From 0c7e77291e7e072d3ce08262832db403292cd88b Mon Sep 17 00:00:00 2001 From: west0nG Date: Sat, 16 May 2026 09:01:13 +0000 Subject: [PATCH] Fix .gitignore swallowing the in-package eia.data resource directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The unanchored `data` pattern in .gitignore matches at any depth, so it also excludes `src/eia/data/` — the package that ships routes.yaml and recipes.yaml. As a result `eia.data` is never committed, never reaches CI or the published wheel, and `from eia import EIAClient` fails with `ModuleNotFoundError: No module named 'eia.data'` (catalog.py loads the YAML at import time). Anchoring the rule to `/data` keeps a top-level scratch `data/` directory ignored while letting the in-package resource directory be tracked. Fixes #2 --- .gitignore | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 888f58d..274e0fd 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,11 @@ docs .DS_Store __pycache__ .ipynb_checkpoints -data +# Anchor to the repo root so this only ignores a top-level scratch +# `data/` directory. An unanchored `data` pattern also matches the +# in-package resource directory `src/eia/data/`, which silently keeps +# the `eia.data` package (routes.yaml / recipes.yaml) out of git, every +# clone, CI and the published wheel. +/data sketch dist/ \ No newline at end of file