From c222cb776e45eb1e3784f79ac7bde2a3a9a07d0d Mon Sep 17 00:00:00 2001 From: Fallen_Breath Date: Tue, 14 Jan 2025 11:12:58 +0800 Subject: [PATCH] cc0 license for the generated requirements_extra.txt --- src/requirements_collector.py | 6 +++++- src/requirements_extra.txt | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/requirements_collector.py b/src/requirements_collector.py index 3ca7b3b..aa9dde9 100644 --- a/src/requirements_collector.py +++ b/src/requirements_collector.py @@ -55,7 +55,11 @@ def add(pid: str, req_: str): environment_markers: Dict[str, str] = extra_config['environment_markers'] blacklist = set(extra_config['blacklist']) - with open('requirements_extra.txt', 'w', encoding='utf8') as f: + with open('requirements_extra.txt', 'w', encoding='utf8', newline='\n') as f: + f.write('# The requirements_extra.txt is licensed under Creative Commons Zero (CC0)\n') + f.write('# You are free to use, modify, and distribute it without any restrictions\n') + f.write('\n') + for req in sorted_string(requirements.keys()): if req in blacklist: continue diff --git a/src/requirements_extra.txt b/src/requirements_extra.txt index 7dc8114..bc75d6f 100644 --- a/src/requirements_extra.txt +++ b/src/requirements_extra.txt @@ -1,3 +1,6 @@ +# The requirements_extra.txt is licensed under Creative Commons Zero (CC0) +# You are free to use, modify, and distribute it without any restrictions + # qq_api, qq_chat aiocqhttp