Re: [modularity] Recommended platform: [] and version 2 format

2018-09-14 Thread Jun Aruga
Thanks for explaining about it!
I found the part of "platform: []" in the document you shared.
https://docs.fedoraproject.org/en-US/modularity/making-modules/defining-modules/#_modular_dependencies

Jun


On Wed, Sep 12, 2018 at 11:07 AM, Adam Samalik  wrote:
> That's right!
>
> This and more is documented in the Modularity section of Fedora Docs:
> https://docs.fedoraproject.org/en-US/modularity/making-modules/defining-modules/
>
> On Wed, Sep 12, 2018 at 10:56 AM Jun Aruga  wrote:
>>
>> Just sharing information.
>>
>> When talking with a person in modularity team, I have told that for a
>> module config yaml file's below elements, the empty array "[]" was
>> recommended on Fedora.
>>
>> /data/dependencies/buildrequires/platform
>> /data/dependencies/requires/platform
>>
>> Because when platform is  "[]", the module is built on current
>> supported platforms (right now f28, f29, and f30). The binary of the
>> module are prepared for each platform.
>> I hope the document is updated including this recommended setting as a
>> best practice.
>>
>> ```
>> diff --git a/ruby.yaml b/ruby.yaml
>>  tracker: https://bugs.ruby-lang.org/
>>  dependencies:
>>  - buildrequires:
>> -platform: [f29]
>> +platform: []
>>requires:
>> -platform: [f29]
>> +platform: []
>>  components:
>>  # SRPMs
>>  rpms:
>> ```
>>
>> Also seeing several modules' config YAML files, some config files are
>> still version 1.
>> I like to share that we can use the version 2, changing the /version
>> element from 1 to 2.
>>
>> Version 2 spec:
>> https://github.com/fedora-modularity/libmodulemd/blob/master/spec.v2.yaml
>>
>> Regards,
>>
>> --
>> Jun Aruga jar...@redhat.com
>> ___
>> devel mailing list -- devel@lists.fedoraproject.org
>> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
>> Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
>> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
>> List Archives:
>> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
>
>
>
> --
>
> Adam Šamalík
> ---
> Software Engineer
> Red Hat
>
> ___
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
> Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
>



-- 
Jun Aruga jar...@redhat.com
IRC: jaruga, Office: TPB(Technology Park Brno) Building C 1F, Brno,
Czech Republic
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: [modularity] Recommended platform: [] and version 2 format

2018-09-12 Thread Adam Samalik
That's right!

This and more is documented in the Modularity section of Fedora Docs:
https://docs.fedoraproject.org/en-US/modularity/making-modules/defining-modules/

On Wed, Sep 12, 2018 at 10:56 AM Jun Aruga  wrote:

> Just sharing information.
>
> When talking with a person in modularity team, I have told that for a
> module config yaml file's below elements, the empty array "[]" was
> recommended on Fedora.
>
> /data/dependencies/buildrequires/platform
> /data/dependencies/requires/platform
>
> Because when platform is  "[]", the module is built on current
> supported platforms (right now f28, f29, and f30). The binary of the
> module are prepared for each platform.
> I hope the document is updated including this recommended setting as a
> best practice.
>
> ```
> diff --git a/ruby.yaml b/ruby.yaml
>  tracker: https://bugs.ruby-lang.org/
>  dependencies:
>  - buildrequires:
> -platform: [f29]
> +platform: []
>requires:
> -platform: [f29]
> +platform: []
>  components:
>  # SRPMs
>  rpms:
> ```
>
> Also seeing several modules' config YAML files, some config files are
> still version 1.
> I like to share that we can use the version 2, changing the /version
> element from 1 to 2.
>
> Version 2 spec:
> https://github.com/fedora-modularity/libmodulemd/blob/master/spec.v2.yaml
>
> Regards,
>
> --
> Jun Aruga jar...@redhat.com
> ___
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
> Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
>


-- 

Adam Šamalík
---
Software Engineer
Red Hat
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


[modularity] Recommended platform: [] and version 2 format

2018-09-12 Thread Jun Aruga
Just sharing information.

When talking with a person in modularity team, I have told that for a
module config yaml file's below elements, the empty array "[]" was
recommended on Fedora.

/data/dependencies/buildrequires/platform
/data/dependencies/requires/platform

Because when platform is  "[]", the module is built on current
supported platforms (right now f28, f29, and f30). The binary of the
module are prepared for each platform.
I hope the document is updated including this recommended setting as a
best practice.

```
diff --git a/ruby.yaml b/ruby.yaml
 tracker: https://bugs.ruby-lang.org/
 dependencies:
 - buildrequires:
-platform: [f29]
+platform: []
   requires:
-platform: [f29]
+platform: []
 components:
 # SRPMs
 rpms:
```

Also seeing several modules' config YAML files, some config files are
still version 1.
I like to share that we can use the version 2, changing the /version
element from 1 to 2.

Version 2 spec:
https://github.com/fedora-modularity/libmodulemd/blob/master/spec.v2.yaml

Regards,

-- 
Jun Aruga jar...@redhat.com
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org