Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package metadata, the first phase #83

Merged
merged 7 commits into from
Oct 18, 2016

Conversation

dahlia
Copy link
Member

@dahlia dahlia commented Oct 15, 2016

This pull request partially implements the metadata format for Nirum packages. It has to be named as package.toml in the project root, and currently consists of the following fields:

  • version: A required semver string of the package e.g. "1.2.3".
  • authors: An optional array of author tables.
    • name: A required string of the author.
    • email: An optional email address string.
    • uri: An optional URI to the author website.

The version goes to Python setup.py metadata's version field, andauthorsgoes toauthor/author_email` fields. For example, where the following metadata is given:

version = "1.2.3"

[[authors]]
name = "Eunchong Yu"
email = "kroisse@gmail.com"

[[authors]]
name = "Hong Minhee"
email = "hong.minhee@gmail.com"

[[authors]]
name = "Kang Hyojun"
email = "iam.kanghyojun@gmail.com"

The following setup.py code is built:

setup(
    ...,
    version="1.2.3"
    author="Eunchong Yu, Hong Minhee, Kang Hyojun",
    author_email="kroisse@gmail.com, hong.minhee@gmail.com, iam.kanghyojun@gmail.com",
    ...
)

@dahlia dahlia added the typ:enhance Type: Enhancement/new feature label Oct 15, 2016
@kanghyojun kanghyojun merged commit 63569c1 into nirum-lang:master Oct 18, 2016
@dahlia dahlia added cat:packaging Category: Nirum schema packaging (not compiler packaging) cmp:compiler Component: Compiler backend (e.g., annotation processors, code generators) labels Aug 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat:packaging Category: Nirum schema packaging (not compiler packaging) cmp:compiler Component: Compiler backend (e.g., annotation processors, code generators) typ:enhance Type: Enhancement/new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants