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

Projects
None yet
3 participants
@dahlia
Member

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",
    ...
)

@kanghyojun kanghyojun merged commit 63569c1 into nirum-lang:master Oct 18, 2016

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment