All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yu, Mingli" <mingli.yu@windriver.com>
To: <openembedded-devel@lists.openembedded.org>
Subject: Re: [PATCH 1/3] python-mccabe: Remove pytest
Date: Wed, 29 Jun 2016 16:18:22 +0800	[thread overview]
Message-ID: <5773844E.9090800@windriver.com> (raw)
In-Reply-To: <CANx9H-Bd94VW0SkM2=PN5LGKQ9EePa7bUO5wzX6PGP5wrJVs=g@mail.gmail.com>



On 2016年06月28日 22:55, Tim Orling wrote:
> On Tue, Jun 28, 2016 at 1:36 AM, <mingli.yu@windriver.com> wrote:
>
>> From: Mingli Yu <mingli.yu@windriver.com>
>>
>> * Remove pytest to avoid dependency on python-runner
>>    as only one file test_mccabe.py import pytest and this
>>    test_mccabe.py file not install on our target eventually.
>>
>> That "one file" is where all the tests are housed. Just because you don't
> plan to install the tests on target is no reason to disable testing. If
> anything we need to see more testing of recipes, not less. The solution is
> to add a recipe for the dependency of python-pytest-runner. Then you can
> inherit ptest and package the tests separately.
Thanks! Already update to add python-pytest-runner dependency in new commit.
>
>
>> Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
>> ---
>>   .../python-mccabe-Remove-pytest.patch              | 32
>> ++++++++++++++++++++++
>>   .../recipes-devtools/python/python-mccabe_0.4.0.bb |  1 +
>>   2 files changed, 33 insertions(+)
>>   create mode 100644
>> meta-python/recipes-devtools/python/python-mccabe/python-mccabe-Remove-pytest.patch
>>
>> diff --git
>> a/meta-python/recipes-devtools/python/python-mccabe/python-mccabe-Remove-pytest.patch
>> b/meta-python/recipes-devtools/python/python-mccabe/python-mccabe-Remove-pytest.patch
>> new file mode 100644
>> index 0000000..ebe70c5
>> --- /dev/null
>> +++
>> b/meta-python/recipes-devtools/python/python-mccabe/python-mccabe-Remove-pytest.patch
>> @@ -0,0 +1,32 @@
>> +From 7c0dc893cd3e57df16cf43d2c51c047997ea5c69 Mon Sep 17 00:00:00 2001
>> +From: Mingli Yu <mingli.yu@windriver.com>
>> +Date: Wed, 22 Jun 2016 02:33:48 +0000
>> +Subject: [PATCH] python-mccabe: Remove pytest
>> +
>> +* Remove pytest to avoid dependency on python-runner
>> +  as only one file test_mccabe.py import pytest and this
>> +  test_mccabe.py file not install on our target eventually.
>> +
>> +Upstream-Status: Inappropriate[oe specific]
>> +
>> +Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
>> +---
>> + setup.py | 2 --
>> + 1 file changed, 2 deletions(-)
>> +
>> +diff --git a/setup.py b/setup.py
>> +index e59903d..64c3ded 100644
>> +--- a/setup.py
>> ++++ b/setup.py
>> +@@ -33,8 +33,6 @@ setup(
>> +     license='Expat license',
>> +     py_modules=['mccabe'],
>> +     zip_safe=False,
>> +-    setup_requires=['pytest-runner'],
>> +-    tests_require=['pytest'],
>> +     entry_points={
>> +         'flake8.extension': [
>> +             'C90 = mccabe:McCabeChecker',
>> +--
>> +2.8.2
>> +
>> diff --git a/meta-python/recipes-devtools/python/python-mccabe_0.4.0.bb
>> b/meta-python/recipes-devtools/python/python-mccabe_0.4.0.bb
>> index 0958f75..1377446 100644
>> --- a/meta-python/recipes-devtools/python/python-mccabe_0.4.0.bb
>> +++ b/meta-python/recipes-devtools/python/python-mccabe_0.4.0.bb
>> @@ -3,6 +3,7 @@ HOMEPAGE = "https://github.com/dreamhost/cliff"
>>   LICENSE = "Apache-2.0"
>>   LIC_FILES_CHKSUM =
>> "file://README.rst;md5=f8b50fba1711ecac6bcdb6324f85a66d"
>>
>> +SRC_URI = "file://python-mccabe-Remove-pytest.patch"
>>   SRC_URI[md5sum] = "8c425db05f310adcd4bb174b991f26f5"
>>   SRC_URI[sha256sum] =
>> "9a2b12ebd876e77c72e41ebf401cc2e7c5b566649d50105ca49822688642207b"
>>
>> --
>> 2.8.1
>>
>> --
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>>


  reply	other threads:[~2016-06-29  8:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-28  8:36 [meta-python][PATCH]: update some python packages bb mingli.yu
2016-06-28  8:36 ` [PATCH 1/3] python-mccabe: Remove pytest mingli.yu
2016-06-28 14:55   ` Tim Orling
2016-06-29  8:18     ` Yu, Mingli [this message]
2016-06-28  8:36 ` [PATCH 2/3] python-pbr: add python-pbr bb mingli.yu
2016-06-28 14:56   ` Tim Orling
2016-06-29  8:19     ` Yu, Mingli
2016-06-28  8:36 ` [PATCH 3/3] python-mock: add python-pbr-native dependency mingli.yu
2016-06-28 14:50 ` [meta-python][PATCH]: update some python packages bb Tim Orling
2016-06-29  6:23   ` Yu, Mingli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5773844E.9090800@windriver.com \
    --to=mingli.yu@windriver.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.