-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15057c9
commit 5a9d7f6
Showing
2 changed files
with
137 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
easyblock = 'PythonBundle' | ||
|
||
name = 'kaggle' | ||
version = '1.6.17' | ||
|
||
homepage = "https://github.com/Kaggle/kaggle-api" | ||
description = """Official API for https://www.kaggle.com, | ||
accessible using a command line tool implemented in Python 3.""" | ||
|
||
toolchain = {'name': 'foss', 'version': '2023a'} | ||
|
||
builddependencies = [ | ||
('hatchling', '1.18.0'), | ||
] | ||
|
||
dependencies = [ | ||
('Python', '3.11.3'), | ||
('tqdm', '4.66.1'), | ||
('Python-bundle-PyPI', '2023.06'), | ||
] | ||
|
||
use_pip = True | ||
sanity_pip_check = True | ||
|
||
exts_list = [ | ||
('bleach', '6.2.0', { | ||
'source_tmpl': SOURCE_PY3_WHL, | ||
'checksums': ['117d9c6097a7c3d22fd578fcd8d35ff1e125df6736f554da4e432fdd63f31e5e'], | ||
}), | ||
('text_unidecode', '1.3', { | ||
'source_tmpl': SOURCE_WHL, | ||
'checksums': ['1311f10e8b895935241623731c2ba64f4c455287888b18189350b67134a822e8'], | ||
}), | ||
('python_slugify', '8.0.4', { | ||
'source_tmpl': SOURCE_WHL, | ||
'checksums': ['276540b79961052b66b7d116620b36518847f52d5fd9e3a70164fc8c50faa6b8'], | ||
}), | ||
(name, version, { | ||
'checksums': ['439a7dea1d5039f320fd6ad5ec21b688dcfa70d405cb42095b81f41edc401b81'], | ||
}), | ||
] | ||
|
||
sanity_check_commands = [ | ||
'python -c "import kaggle; from kaggle.api.kaggle_api_extended import KaggleApi; api = KaggleApi()"', | ||
] | ||
|
||
moduleclass = 'tools' | ||
|
||
# TODO | ||
# kaggle 1.6.17 requires bleach, which is not installed. | ||
# kaggle 1.6.17 requires certifi, which is not installed. | ||
# kaggle 1.6.17 requires python-dateutil, which is not installed. | ||
# kaggle 1.6.17 requires python-slugify, which is not installed. | ||
# kaggle 1.6.17 requires requests, which is not installed. | ||
# kaggle 1.6.17 requires six, which is not installed. | ||
# kaggle 1.6.17 requires tqdm, which is not installed. | ||
# kaggle 1.6.17 requires urllib3, which is not installed. | ||
|
||
# kaggle 1.6.17 requires bleach, which is not installed. | ||
# kaggle 1.6.17 requires certifi, which is not installed. | ||
# kaggle 1.6.17 requires python-dateutil, which is not installed. | ||
# kaggle 1.6.17 requires python-slugify, which is not installed. | ||
# kaggle 1.6.17 requires requests, which is not installed. | ||
# kaggle 1.6.17 requires six, which is not installed. | ||
# kaggle 1.6.17 requires urllib3, which is not installed. | ||
|
||
# kaggle 1.6.17 requires bleach, which is not installed. | ||
# kaggle 1.6.17 requires python-slugify, which is not installed. | ||
# kaggle 1.6.17 has requirement certifi>=2023.7.22, but you have certifi 2023.5.7. | ||
|
||
# python-slugify 8.0.4 requires text-unidecode, which is not installed. | ||
# kaggle 1.6.17 has requirement certifi>=2023.7.22, but you have certifi 2023.5.7. | ||
|
||
# kaggle 1.6.17 has requirement certifi>=2023.7.22, but you have certifi 2023.5.7. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
easyblock = 'PythonBundle' | ||
|
||
name = 'kaggle' | ||
version = '1.6.17' | ||
|
||
homepage = "https://github.com/Kaggle/kaggle-api" | ||
description = """Official API for https://www.kaggle.com, | ||
accessible using a command line tool implemented in Python 3.""" | ||
|
||
toolchain = {'name': 'foss', 'version': '2023b'} | ||
|
||
builddependencies = [ | ||
('hatchling', '1.18.0'), | ||
] | ||
|
||
dependencies = [ | ||
('Python', '3.11.5'), | ||
('tqdm', '4.66.2'), | ||
# for certifi, python-dateutil, requests, six, urllib3 and webencodings | ||
('Python-bundle-PyPI', '2023.10'), | ||
] | ||
|
||
use_pip = True | ||
sanity_pip_check = True | ||
|
||
exts_list = [ | ||
('bleach', '6.2.0', { | ||
'source_tmpl': SOURCE_PY3_WHL, | ||
'checksums': ['117d9c6097a7c3d22fd578fcd8d35ff1e125df6736f554da4e432fdd63f31e5e'], | ||
}), | ||
('text_unidecode', '1.3', { | ||
'source_tmpl': SOURCE_WHL, | ||
'checksums': ['1311f10e8b895935241623731c2ba64f4c455287888b18189350b67134a822e8'], | ||
}), | ||
('python_slugify', '8.0.4', { | ||
'modulename': 'slugify', | ||
'source_tmpl': SOURCE_WHL, | ||
'checksums': ['276540b79961052b66b7d116620b36518847f52d5fd9e3a70164fc8c50faa6b8'], | ||
}), | ||
(name, version, { | ||
# `import kaggle` fails for missing API token (`kaggle.json`) | ||
'modulename': False, | ||
'checksums': ['439a7dea1d5039f320fd6ad5ec21b688dcfa70d405cb42095b81f41edc401b81'], | ||
}), | ||
] | ||
|
||
# TODO | ||
# sanity_check_commands = [ | ||
# 'python -c "import kaggle; from kaggle.api.kaggle_api_extended import KaggleApi; api = KaggleApi()"', | ||
# ] | ||
|
||
moduleclass = 'tools' | ||
|
||
# TODO | ||
# == 2024-11-14 12:57:29,967 build_log.py:171 ERROR EasyBuild crashed with an error (at easybuild/easybuild-framework/easybuild/base/exceptions.py:126 in __init__): Sanity check failed: extensions sanity check failed for 1 extensions: kaggle | ||
# failing sanity check for 'kaggle' extension: command "python -c "import kaggle"" failed; output: | ||
# Traceback (most recent call last): | ||
# File "<string>", line 1, in <module> | ||
# File "/scratch/gent/vo/001/gvo00117/easybuild/RHEL8/cascadelake-ampere-ib/software/kaggle/1.6.17-foss-2023b/lib/python3.11/site-packages/kaggle/__init__.py", line 7, in <module> | ||
# api.authenticate() | ||
# File "/scratch/gent/vo/001/gvo00117/easybuild/RHEL8/cascadelake-ampere-ib/software/kaggle/1.6.17-foss-2023b/lib/python3.11/site-packages/kaggle/api/kaggle_api_extended.py", line 407, in authenticate | ||
# raise IOError('Could not find {}. Make sure it\'s located in' | ||
# OSError: Could not find kaggle.json. Make sure it's located in /user/gent/453/vsc45304/.config/kaggle. Or use the environment method. See setup instructions at https://github.com/Kaggle/kaggle-api/, (at easybuild/easybuild-framework/easybuild/framework/easyblock.py:3670 in _sanity_check_step) |