Skip to content

Commit

Permalink
fix: data folder unlocated / bump up version
Browse files Browse the repository at this point in the history
  • Loading branch information
philsv committed Oct 24, 2023
1 parent 685ee42 commit 3747d3d
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions pycot/extract_report_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,23 @@ 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)


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)


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)


Expand Down
2 changes: 1 addition & 1 deletion pycot/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.5"
__version__ = "0.0.6"
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 3747d3d

Please sign in to comment.