diff --git a/data/contract_names.json b/pycot/data/contract_names.json similarity index 100% rename from data/contract_names.json rename to pycot/data/contract_names.json diff --git a/data/cot_reports_data.json b/pycot/data/cot_reports_data.json similarity index 100% rename from data/cot_reports_data.json rename to pycot/data/cot_reports_data.json diff --git a/data/format_columns.json b/pycot/data/format_columns.json similarity index 100% rename from data/format_columns.json rename to pycot/data/format_columns.json diff --git a/pycot/extract_report_data.py b/pycot/extract_report_data.py index 4459103..fbc1d3b 100644 --- a/pycot/extract_report_data.py +++ b/pycot/extract_report_data.py @@ -19,7 +19,7 @@ def get_cot_data() -> dict: """ Extracts the Commitment of Traders Reports metadata. """ - with open(BASE_PATH / "data" / "cot_reports_data.json", "r") as f: + with open(BASE_PATH / "pycot" / "data" / "cot_reports_data.json", "r") as f: return json.load(f) @@ -27,7 +27,7 @@ def get_formating_data() -> dict: """ Extracts the column formating data. """ - with open(BASE_PATH / "data" / "format_columns.json", "r") as f: + with open(BASE_PATH / "pycot" / "data" / "format_columns.json", "r") as f: return json.load(f) @@ -35,7 +35,7 @@ def get_contract_data() -> dict: """ Extracts the contract data. """ - with open(BASE_PATH / "data" / "contract_names.json", "r") as f: + with open(BASE_PATH / "pycot" / "data" / "contract_names.json", "r") as f: return json.load(f) diff --git a/pycot/version.py b/pycot/version.py index b1a19e3..034f46c 100644 --- a/pycot/version.py +++ b/pycot/version.py @@ -1 +1 @@ -__version__ = "0.0.5" +__version__ = "0.0.6" diff --git a/setup.py b/setup.py index 322e507..b4786fa 100644 --- a/setup.py +++ b/setup.py @@ -10,6 +10,7 @@ version=__version__, packages=["pycot"], include_package_data=True, + package_data={"pycot": ["data/*"]}, install_requires=["pandas", "requests", "python-dotenv"], url="https://github.com/philsv/pycot", license="MIT",