Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Try to get author from from in generate license #107

Closed
orsinium opened this issue May 20, 2019 · 3 comments
Closed

Try to get author from from in generate license #107

orsinium opened this issue May 20, 2019 · 3 comments
Labels
good first issue Good for newcomers

Comments

@orsinium
Copy link
Member

Author detection logic:

  1. Config option --owner (Adding owner name for license #104)
  2. Git tag

New logic:

  1. Config option --owner (Adding owner name for license #104)
  2. Read from dependencies file to get authors.
  3. from python_discover import Root as PackageRoot; PackageRoot(self.config['project']).metainfo.authors.
  4. Git tag
@orsinium orsinium added the good first issue Good for newcomers label May 20, 2019
@nandahkrishna
Copy link
Contributor

So this issue would require parsing the config file indicated in the build_from parser as --from, getting the author metadata from that and accordingly setting that as author name in license - is this right?

@orsinium
Copy link
Member Author

Yeah, right.
loader = CONVERTERS[self.config['from']['format']]
root = loader.load(...)
if root.authors:
...

@nandahkrishna
Copy link
Contributor

Alright, thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Development

No branches or pull requests

2 participants