File: generate-recommends.py

package info (click to toggle)
diffoscope 312
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,320 kB
  • sloc: python: 17,206; sh: 116; makefile: 97; xml: 36; javascript: 2
file content (12 lines) | stat: -rwxr-xr-x 334 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env python3

import json

# Load extras_require dict from external JSON file. This allows it to be easily
# shared by the main setup.py script.
with open("extras_require.json") as f:
    extras_require = json.load(f)

xs = set(f"python3-{x}" for reqs in extras_require.values() for x in reqs)

print(", ".join(sorted(xs)))