If you really want this for one file:

    dict([(os.path.basename(x)[:-4], open(x).read().split())
          for x in glob.glob('requirements/extras/*.txt')])