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 dependency resolution #26

Open
dahlia opened this issue Jul 19, 2016 · 0 comments
Open

Package dependency resolution #26

dahlia opened this issue Jul 19, 2016 · 0 comments
Assignees
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

Comments

@dahlia
Copy link
Member

dahlia commented Jul 19, 2016

We need package metadata format to describe its dependencies e.g.

# countries/package.toml
[targets.python]
name = "countries"
[docs]
url = "https://spoqa.github.io/countries.nrm/"
# languages/package.toml
[targets.java]
name = "languages"
[docs]
url = "https://hongminhee.org/languages/docs/"
# currency/package.toml
[dependencies]
"https://github.com/spoqa/countries.nrm" = ">= 1.0.0, < 1.1.0"
"https://hongminhee.org/languages/" = ">= 1.0.0, < 1.1.0"
[targets.python]
name = "currencies"
vendors = ["https://hongminhee.org/languages/"]

Package dependencies should go to dependencies of the target package’s metadata e.g.:

# setup.py
setup(
    name='currencies',
    packages=['currencies', 'languages'],
    install_requires=[
        'countries >= 1.0.0, < 1.1.0',
        # 'languages'  # error on install
    ]
)

Or it should be possible to vendor some of its dependencies if these do not have the same target.

@dahlia dahlia added the typ:enhance Type: Enhancement/new feature label Jul 19, 2016
@dahlia dahlia added this to the Prepare to be public milestone Jul 19, 2016
@dahlia dahlia mentioned this issue Jul 21, 2016
@dahlia dahlia self-assigned this Sep 26, 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

No branches or pull requests

1 participant