Skip to content

Commit

Permalink
just the requirements_common.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Dec 30, 2023
1 parent 82109cf commit a45a0d5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ Image with extra python packages
Theses extra packages are collected from the [Plugin Catalogue](https://github.com/MCDReforged/PluginCatalogue),
covering almost all required packages of the plugins in the catalogue

See [requirements_common.txt](src/requirements_common.txt) for the full extra package list

```bash
mcdreforged/mcdreforged-extra:latest
mcdreforged/mcdreforged-extra:latest-slim
Expand Down
1 change: 0 additions & 1 deletion src/.gitignore

This file was deleted.

9 changes: 4 additions & 5 deletions src/requirements_collector.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#!/usr/bin/env python3
import collections
import gzip
import json
import re
from typing import Dict, List, Iterable

import sys
import urllib.request
import gzip
import json
from io import BytesIO
from typing import Dict, List, Iterable


def download_json_gz(url: str):
Expand Down Expand Up @@ -44,7 +43,7 @@ def add(pid: str, req_: str):
for req in reqs:
add(plugin_id, req)

with open('requirements_collector.txt', 'w', encoding='utf8') as f:
with open('requirements_common.txt', 'w', encoding='utf8') as f:
for req in sorted_string(requirements.keys()):
plugins = ', '.join(sorted_string(requirements[req]))
f.write(f'# {plugins}\n')
Expand Down

0 comments on commit a45a0d5

Please sign in to comment.