lukhed-basic-utils 1.4.3__tar.gz → 1.4.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/PKG-INFO +1 -1
- {lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/lukhed_basic_utils/githubCommon.py +7 -4
- {lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/lukhed_basic_utils.egg-info/PKG-INFO +1 -1
- {lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/setup.py +1 -1
- {lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/LICENSE +0 -0
- {lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/README.md +0 -0
- {lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/lukhed_basic_utils/__init__.py +0 -0
- {lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/lukhed_basic_utils/chartJsCommon.py +0 -0
- {lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/lukhed_basic_utils/classCommon.py +0 -0
- {lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/lukhed_basic_utils/fileCommon.py +0 -0
- {lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/lukhed_basic_utils/listWorkCommon.py +0 -0
- {lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/lukhed_basic_utils/mathCommon.py +0 -0
- {lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/lukhed_basic_utils/osCommon.py +0 -0
- {lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/lukhed_basic_utils/requestsCommon.py +0 -0
- {lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/lukhed_basic_utils/stringCommon.py +0 -0
- {lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/lukhed_basic_utils/timeCommon.py +0 -0
- {lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/lukhed_basic_utils.egg-info/SOURCES.txt +0 -0
- {lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/lukhed_basic_utils.egg-info/dependency_links.txt +0 -0
- {lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/lukhed_basic_utils.egg-info/requires.txt +0 -0
- {lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/lukhed_basic_utils.egg-info/top_level.txt +0 -0
- {lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/setup.cfg +0 -0
- {lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/tests/test_osCommon.py +0 -0
- {lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/tests/test_timeCommon.py +0 -0
|
@@ -482,7 +482,7 @@ class GithubHelper:
|
|
|
482
482
|
:param download_dir: The directory where the archive should be saved.
|
|
483
483
|
:param extract: Boolean flag to extract the archive after download.
|
|
484
484
|
:param rename_internal_folder: Bool to rename the internal folder to repo name
|
|
485
|
-
:return:
|
|
485
|
+
:return: Dl path if download (and extraction, if requested) succeeded, otherwise None.
|
|
486
486
|
"""
|
|
487
487
|
|
|
488
488
|
# Choose archive format and ref (default branch in this example)
|
|
@@ -514,16 +514,19 @@ class GithubHelper:
|
|
|
514
514
|
zip_ref.extractall(extraction_dir)
|
|
515
515
|
except zipfile.BadZipFile:
|
|
516
516
|
print("Error: The downloaded file is not a valid zip archive.")
|
|
517
|
-
return
|
|
517
|
+
return None
|
|
518
518
|
|
|
519
519
|
if rename_internal_folder:
|
|
520
520
|
new_name = osC.append_to_dir(extraction_dir, self.repo.name)
|
|
521
521
|
gh_dir = osC.return_immediate_child_dirs_given_dir(extraction_dir)[0]
|
|
522
522
|
shutil.move(gh_dir, new_name)
|
|
523
|
-
|
|
523
|
+
|
|
524
|
+
return extraction_dir
|
|
525
|
+
|
|
526
|
+
return download_path
|
|
524
527
|
else:
|
|
525
528
|
print(f"Failed to download repository. HTTP status code: {response.status_code}")
|
|
526
|
-
return
|
|
529
|
+
return None
|
|
527
530
|
|
|
528
531
|
|
|
529
532
|
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="lukhed_basic_utils",
|
|
5
|
-
version="1.4.
|
|
5
|
+
version="1.4.4",
|
|
6
6
|
description="A collection of basic utility functions",
|
|
7
7
|
long_description=open("README.md").read(),
|
|
8
8
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/lukhed_basic_utils.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/lukhed_basic_utils.egg-info/requires.txt
RENAMED
|
File without changes
|
{lukhed_basic_utils-1.4.3 → lukhed_basic_utils-1.4.4}/lukhed_basic_utils.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|