Skip to content

Package metadata, the first phase#83

Merged
kanghyojun merged 7 commits intonirum-lang:masterfrom
dahlia:package-metadata
Oct 18, 2016
Merged

Package metadata, the first phase#83
kanghyojun merged 7 commits intonirum-lang:masterfrom
dahlia:package-metadata

Conversation

@dahlia
Copy link
Copy Markdown
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