Skip to content

Commit c0cd950

Browse files
committed
updates + ignore cmem-plugin-python
1 parent dbfc4f0 commit c0cd950

6 files changed

Lines changed: 422 additions & 391 deletions

File tree

.idea/runConfigurations/_template__of_TaskRunConfiguration.xml

Lines changed: 0 additions & 9 deletions
This file was deleted.

cmem_plugin_index/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"cmem-plugin-base", # not a plugin
1414
"cmem-plugin-databus", # no support / maintainer
1515
"cmem-plugin-examples", # only for testing
16+
"cmem-plugin-python", # only for testing
1617
"cmem-plugin-kaggle", # no support / maintainer
1718
"cmem-plugin-reason", # java dependency with critical vulnerabilities
1819
"cmem-plugin-sparql-anything", # java dependency with critical vulnerabilities

cmem_plugin_index/plugin_info.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,11 @@ def get_package_names() -> list[str]:
3333
return plugin_list
3434

3535

36-
def get_package_names_with_prefix(prefix: str, ignore: list[str]) -> list[str]:
37-
"""Fetch list of package names from pypi.org"""
36+
def get_package_names_with_prefix(prefix: str) -> list[str]:
37+
"""Fetch the list of package names from pypi.org"""
3838
all_names = get_package_names()
39-
plugin_list = [name for name in all_names if name.startswith(prefix) and name not in ignore]
40-
loguru.logger.info(
41-
f"Found {len(plugin_list)} packages with prefix '{prefix}' (ignoring {ignore!s})"
42-
)
39+
plugin_list = [name for name in all_names if name.startswith(prefix)]
40+
loguru.logger.info(f"Found {len(plugin_list)} packages with prefix '{prefix}'")
4341
return plugin_list
4442

4543

@@ -72,7 +70,10 @@ def get_package_details(package_id: str) -> PackageDetails | None:
7270
def fetch_all_details(prefix: str, ignore: list[str]) -> list[dict]:
7371
"""Fetch plugin details"""
7472
plugin_info_list = []
75-
for package in get_package_names_with_prefix(prefix=prefix, ignore=ignore):
73+
for package in get_package_names_with_prefix(prefix=prefix):
74+
if package in ignore:
75+
loguru.logger.warning(f"Package '{package}' ignored since in ignore list.")
76+
continue
7677
package_info = get_package_details(package)
7778
if not package_info:
7879
loguru.logger.warning(f"No package info available for package '{package}'.")

data/plugins_info.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080
"id": "cmem-plugin-nextcloud",
8181
"name": "cmem-plugin-nextcloud",
8282
"summary": "Extract and process data from your Nextcloud instance.",
83-
"latest_version": "1.4.2",
84-
"latest_version_time": "2025-08-04T13:15:45"
83+
"latest_version": "1.4.3",
84+
"latest_version_time": "2025-08-12T10:50:43"
8585
},
8686
{
8787
"id": "cmem-plugin-number-conversion",
@@ -132,13 +132,6 @@
132132
"latest_version": "5.2.0",
133133
"latest_version_time": "2025-07-03T19:44:25"
134134
},
135-
{
136-
"id": "cmem-plugin-python",
137-
"name": "cmem-plugin-python",
138-
"summary": "Write ad-hoc transformations and workflow tasks with Python.",
139-
"latest_version": "1.2.0",
140-
"latest_version_time": "2025-05-12T09:12:37"
141-
},
142135
{
143136
"id": "cmem-plugin-salesforce",
144137
"name": "cmem-plugin-salesforce",

0 commit comments

Comments
 (0)