Skip to content

Commit

Permalink
add collector blacklist support
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Jan 1, 2025
1 parent a7bcfa3 commit 30a3e2f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/requirements_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,13 @@ def add(pid: str, req_: str):
for req in reqs:
add(plugin_id, req)
environment_markers: Dict[str, str] = extra_config['environment_markers']
blacklist = set(extra_config['blacklist'])

with open('requirements_extra.txt', 'w', encoding='utf8') as f:
for req in sorted_string(requirements.keys()):
if req in blacklist:
continue

items = []
for rd in requirements[req]:
if rd.requirement == req:
Expand Down
5 changes: 4 additions & 1 deletion src/requirements_extra_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
},
"environment_markers": {
"lz4": "python_version < '3.13'"
}
},
"blacklist": [
"pathlib"
]
}

0 comments on commit 30a3e2f

Please sign in to comment.