[PATCH] sb: Fix the imports on Python2

Chris Johns chrisj at rtems.org
Thu Aug 27 23:13:55 UTC 2020


On 28/8/20 1:41 am, Gedare Bloom wrote:
> On Wed, Aug 26, 2020 at 11:54 PM <chrisj at rtems.org> wrote:
>> From: Chris Johns <chrisj at rtems.org>
>> diff --git a/source-builder/sb/__init__.py b/source-builder/sb/__init__.py
>> new file mode 100644
>> index 0000000..c4275e2
>> --- /dev/null
>> +++ b/source-builder/sb/__init__.py
>> @@ -0,0 +1,20 @@
>> +#
>> +# RTEMS Tools Project (http://www.rtems.org/)
>> +# Copyright 2020 Chris Johns (chrisj at rtems.org)
>> +# All rights reserved.
>> +#
>> +# This file is part of the RTEMS Tools package in 'rtems-tools'.
>> +#
>> +# Permission to use, copy, modify, and/or distribute this software for any
>> +# purpose with or without fee is hereby granted, provided that the above
>> +# copyright notice and this permission notice appear in all copies.
>> +#
>> +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
>> +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
>> +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
>> +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
>> +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
>> +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
>> +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
>> +
> This doesn't follow the template. I guess probably it uses what is in
> other rtems-tools files though.
> https://docs.rtems.org/branches/master/eng/coding-file-hdr.html#python-file-template

Yes it is consistent with the other RSB files and I think this is fine until the
whole of the RSB is moved. I am fine with a RSB license changing but the repo
should be audited before that happens. Please take this as a positive yes from
me to have the license changed.

All the code needs to be moved over to the coding standard via the formatting
tools and I would like to move the option handling to the standard argparse
support. I would love to be able to spend time on this task but other tasks are
more pressing.

> 
> This is MIT license?
>

I think it is called a Zero-Caluse BSD license...

https://opensource.org/licenses/0BSD

I did this before I knew such a license was documented.

Chris


More information about the devel mailing list