Skip to content

Commit

Permalink
cc0 license for the generated requirements_extra.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Jan 14, 2025
1 parent 9505b7b commit c222cb7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/requirements_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/requirements_extra.txt
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit c222cb7

Please sign in to comment.