Skip to content

Commit 7e94543

Browse files
committed
add more ignore packages
1 parent 0ee85a5 commit 7e94543

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ It is updated daily through an automated GitHub Action, which queries the PyPI s
1616

1717
## Repository Structure
1818

19-
- `cmem_plugin_index//`: Contains the Python package, a CLI that queries PyPI and fetches details of plugins.
19+
- `cmem_plugin_index/`: contains the Python package, a CLI that queries PyPI and fetches details of plugins.
2020
- `data/`: Stores the generated JSON file (`plugins_info.json`) with details about each `cmem-plugin` package, including the package ID, name, summary, and latest version.
2121
- `.github/`: Contains GitHub Actions workflow files that automate the daily updates.
2222
- `README.md`: This file.
@@ -67,7 +67,6 @@ $ poetry run cmem-plugin-index data/plugins_info.json
6767
Be aware that cmemc itself fetches the information from [download.eccenca.com](https://download.eccenca.com/cmem-plugin-index/cmem-plugin-index.json).
6868
Uploading the JSON dataset to this host is part of the github action mentioned above.
6969

70-
7170
[poetry-link]: https://python-poetry.org/
7271
[poetry-shield]: https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json
7372
[ruff-link]: https://docs.astral.sh/ruff/
@@ -76,4 +75,3 @@ Uploading the JSON dataset to this host is part of the github action mentioned a
7675
[mypy-shield]: https://www.mypy-lang.org/static/mypy_badge.svg
7776
[copier]: https://copier.readthedocs.io/
7877
[copier-shield]: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/copier-org/copier/master/img/badge/badge-grayscale-inverted-border-purple.json
79-

cmem_plugin_index/cli.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88

99
from cmem_plugin_index.plugin_info import fetch_all_details
1010

11+
IGNORED_PACKAGES = [
12+
"cmem-client", # not a plugin
13+
"cmem-plugin-base", # not a plugin
14+
"cmem-plugin-databus", # no support
15+
"cmem-plugin-examples", # only for testing
16+
"cmem-plugin-kaggle", # no support
17+
]
18+
1119

1220
@click.command()
1321
@click.argument("OUTPUT_FILE")
@@ -16,7 +24,7 @@
1624
)
1725
@click.option(
1826
"--ignore",
19-
default=["cmem-plugin-base", "cmem-client"],
27+
default=IGNORED_PACKAGES,
2028
show_default=True,
2129
multiple=True,
2230
help="Ignore given packages.",

cmem_plugin_index/plugin_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
@cache
1111
def get_package_names() -> list[str]:
12-
"""Get all pypi.org pacakge names"""
12+
"""Get all pypi.org package names"""
1313
url = "https://pypi.org/simple/"
1414
loguru.logger.info("Start fetching plugin names from pypi.org")
1515
response = requests.get(url, timeout=30)

0 commit comments

Comments
 (0)