From 2b9c0c676596ab62d83519e45161c8ecf9b903ce Mon Sep 17 00:00:00 2001 From: Khole Jones Date: Thu, 1 Apr 2021 17:22:19 +0100 Subject: [PATCH] Remove Pathlib dependancy --- pyhiveapi/apyhiveapi/hive.py | 4 ++-- requirements.txt | 1 - setup.py | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pyhiveapi/apyhiveapi/hive.py b/pyhiveapi/apyhiveapi/hive.py index a46fa68..811b2df 100644 --- a/pyhiveapi/apyhiveapi/hive.py +++ b/pyhiveapi/apyhiveapi/hive.py @@ -1,7 +1,7 @@ """Start Hive Session.""" import sys import traceback -from pathlib import Path +from os.path import expanduser from typing import Optional from aiohttp import ClientSession @@ -18,7 +18,7 @@ from .session import HiveSession debug = [] -home = str(Path.home()) +home = expanduser("~") logger.add( home + "/pyhiveapi_debug.log", filter=lambda record: record["level"].name == "DEBUG" ) diff --git a/requirements.txt b/requirements.txt index 9cb0a53..ea49687 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,5 +5,4 @@ requests aiohttp pyquery unasync -pathlib loguru \ No newline at end of file diff --git a/setup.py b/setup.py index 0b4a96d..0564b1b 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ def requirements_from_file(filename="requirements.txt"): setup( - version="0.4.0", + version="0.4.1", package_data={"data": ["*.json"]}, include_package_data=True, cmdclass={