From patchwork Thu Oct 24 07:53:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 177375 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp1831169ill; Thu, 24 Oct 2019 00:55:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOTjV0tpYs9a7+f3G08bSmrcFHDCHmo3M+rigL4+H4xEbf2858xODy52kk9AuE7YhVUQZ8 X-Received: by 2002:aa7:93c3:: with SMTP id y3mr16146168pff.2.1571903704887; Thu, 24 Oct 2019 00:55:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571903704; cv=none; d=google.com; s=arc-20160816; b=QmfTv0mLGIPaadZSZFX/hZRdyBgZ1RELuYHM12owHl+6vm99KjIgW/wC6aL+qTJ1kk Dp/nS7LjrFt2ltxLkQAUABmNTSxIlcVSbM7OfEvjPrCvKS3RaL5lqptTls1jGtDdc1gF P6OoH31b8xG9nApSnVjB5dvHAvmZzLjpiFYcvLwxP2UZ9Da1UT6rRKXdbIKM9K4i7ajC xOIBh4UFXYPwyoWZKQ1M4zh5dXfNGBuJRD3boIvx2pK9g3VKPtL49VQdra1rIsuw70MR OhL3MsUFt8qofrBfG/tK5y+wAig2jGA4VaxuZfAucfELHgNF5zxCHJHG4UKkIRmaip6g QxkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=dXvYM7mLl/1dSJS6uL5jgWwDNPqp1uD5tz0VmcP5tLE=; b=k4eNM/Oq3z5GId2iTzf++tpdMvqvub9EpFHqr9t40Rw3ETrGScpMDqQooy38wpN35J WYoc4YXRAMP/7OrYjTkVgI9dnRc+hj63FzNaHtSklXN+ocNc0KMFFJsOR9JL4WdWLvLI c5KU+5ciRROaTyo5yq+pgmjype7L8Y4ibYEkmVSvttXJbFhQAIJOt+IBufsgu03Fq36U hxj9sO0cfWfT9itI8ogRdS6AZ0HsRxpUcMTD3VtIpw55vvgUyzytxNsbS4V0XLbLkpHE 1yUVJ/uyDgVCktGLxNlP8X/Gx9iJsANi9rLsSDRz7U/D7wsa8Ma77z0HCAar5n0oDmrv uBEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=IQoUb+Ve; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id k11si8109662pgi.270.2019.10.24.00.55.04; Thu, 24 Oct 2019 00:55:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=IQoUb+Ve; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 3B0AF7F903; Thu, 24 Oct 2019 07:54:56 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) by mail.openembedded.org (Postfix) with ESMTP id BDCCB7F8F9 for ; Thu, 24 Oct 2019 07:54:11 +0000 (UTC) Received: by mail-pg1-f181.google.com with SMTP id w3so13730189pgt.5 for ; Thu, 24 Oct 2019 00:54:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NCOuHeyoGlvvAzvUJOtTuvq+v526VuLlZUy1J4GsTwk=; b=IQoUb+Ve4QuzaMenmsxDpe/OqtYUxeTCihQ83UhtZOIjZ9xtGW5jYfC0EiKC6/AQfh R/42CbENAH1WGfeo/L6Y9yeJzFZCw59AF78yXEQuCAPOV2SpUkihm7CjBimZVcU7YgBK dqFvrgZcQHARd3vgzRdFI3Ra1DcgyE/fagrnpaq7YNyRoTje+NivUkl5Zkk+Lub6yFr9 mLn/4Xp6wFg41DRtL6wyFqBEmi4hVhDGcKj2pLdqY1oCRZWs4cGpGLd97Wr/OyTzjin1 k0hBA3m8+rPPLxqbnhKuhvYJbD8JaOXSeNyFFP076qEXz0Qgw40wB2LsQ7FTb3lQN2X5 9Qew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NCOuHeyoGlvvAzvUJOtTuvq+v526VuLlZUy1J4GsTwk=; b=hBI24vv3d/gb+kbpCh4JLGPhzdkP9U38szBDZ1T91wvIluWKIJMDom8KT8FqFRFy1n d3dINsdVhREW+KWfKjGODlYy5+OcadLAzCEug0fvtXy+6SPKxjOCUd5KsWp+C6uYMEve x6tHWR22hqY1xLMyOjc4i5e7wJdyjUXLv1lqK4901XCdhKvHBz3WnBYMai/ajneq9Yq5 NAeYIwLS+bX/QLeq3W002QBpwVnXTG97AtW5Y4KQybOVWQ4lBHYeMOVfIZ0ryfgxdeBE JkS0G6J9h1eTGJ9GIE3gGF3Z75Ck2Qt/jLhVTFuBQsZl8VbFDTyJIPVIHliFF6M5fAzC fOWQ== X-Gm-Message-State: APjAAAWnst+v3LsTB4vCKG3VO1prSd5FTzP90XIr8tzOdeMZcygEiwb8 JjPmBse93P8ueVF+9Vc79ZQg736czxYrDg== X-Received: by 2002:a63:4c57:: with SMTP id m23mr8388990pgl.207.1571903651877; Thu, 24 Oct 2019 00:54:11 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:1c20::a6a5]) by smtp.gmail.com with ESMTPSA id k93sm3402431pjh.3.2019.10.24.00.54.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Oct 2019 00:54:11 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Thu, 24 Oct 2019 00:53:52 -0700 Message-Id: <20191024075355.2136934-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191024075355.2136934-1-raj.khem@gmail.com> References: <20191024075355.2136934-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-python][PATCH 3/6] python3-astor: Fix build with setuptools>=41.4 X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...f3ff7ad8818475b6e107e63aa9a54252d2a9.patch | 87 +++++++++++++++++++ .../python/python3-astor_0.8.bb | 4 +- 2 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-astor/f820f3ff7ad8818475b6e107e63aa9a54252d2a9.patch -- 2.23.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-python/recipes-devtools/python/python3-astor/f820f3ff7ad8818475b6e107e63aa9a54252d2a9.patch b/meta-python/recipes-devtools/python/python3-astor/f820f3ff7ad8818475b6e107e63aa9a54252d2a9.patch new file mode 100644 index 0000000000..823699339e --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-astor/f820f3ff7ad8818475b6e107e63aa9a54252d2a9.patch @@ -0,0 +1,87 @@ +From f820f3ff7ad8818475b6e107e63aa9a54252d2a9 Mon Sep 17 00:00:00 2001 +From: Jonathan Ringer +Date: Thu, 17 Oct 2019 16:54:16 -0700 +Subject: [PATCH] Fix packaging for setuptools>=41.4 + +--- + astor/VERSION | 1 + + astor/__init__.py | 5 ++++- + setup.cfg | 3 ++- + setup.py | 16 +--------------- + 4 files changed, 8 insertions(+), 17 deletions(-) + create mode 100644 astor/VERSION + +diff --git a/astor/VERSION b/astor/VERSION +new file mode 100644 +index 0000000..a3df0a6 +--- /dev/null ++++ b/astor/VERSION +@@ -0,0 +1 @@ ++0.8.0 +diff --git a/astor/__init__.py b/astor/__init__.py +index 3b02983..8dfcdb1 100644 +--- a/astor/__init__.py ++++ b/astor/__init__.py +@@ -9,6 +9,7 @@ + + """ + ++import os + import warnings + + from .code_gen import SourceGenerator, to_source # NOQA +@@ -19,7 +20,9 @@ + from .op_util import symbol_data # NOQA + from .tree_walk import TreeWalk # NOQA + +-__version__ = '0.8.0' ++ROOT = os.path.dirname(__file__) ++with open(os.path.join(ROOT, 'VERSION')) as version_file: ++ __version__ = version_file.read().strip + + parse_file = code_to_ast.parse_file + +diff --git a/setup.cfg b/setup.cfg +index 1baf6fc..a43634f 100644 +--- a/setup.cfg ++++ b/setup.cfg +@@ -2,6 +2,7 @@ + name = astor + description = Read/rewrite/write Python ASTs + long_description = file:README.rst ++version = file: astor/VERSION + author = Patrick Maupin + author_email = pmaupin@gmail.com + platforms = Independent +@@ -40,7 +41,7 @@ test_suite = nose.collector + [options.packages.find] + exclude = tests + +-[wheel] ++[bdist_wheel] + universal = 1 + + [build-system] +diff --git a/setup.py b/setup.py +index 4a111b5..6068493 100644 +--- a/setup.py ++++ b/setup.py +@@ -1,17 +1,3 @@ +-import os +-import sys +- + from setuptools import setup +-from setuptools.config import read_configuration +- +-from setuputils import find_version +- +- +-def here(*paths): +- return os.path.join(os.path.dirname(__file__), *paths) +- +-config = read_configuration(here('setup.cfg')) +-config['metadata']['version'] = find_version(here('astor', '__init__.py')) +-config['options'].update(config['metadata']) + +-setup(**config['options']) ++setup() diff --git a/meta-python/recipes-devtools/python/python3-astor_0.8.bb b/meta-python/recipes-devtools/python/python3-astor_0.8.bb index efd56c1b06..17cc540f00 100644 --- a/meta-python/recipes-devtools/python/python3-astor_0.8.bb +++ b/meta-python/recipes-devtools/python/python3-astor_0.8.bb @@ -4,7 +4,9 @@ SECTION = "devel/python" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=561205fdabc3ec52cae2d30815b8ade7" -SRC_URI = "git://github.com/berkerpeksag/astor.git" +SRC_URI = "git://github.com/berkerpeksag/astor.git \ + file://f820f3ff7ad8818475b6e107e63aa9a54252d2a9.patch \ + " SRCREV ?= "3a7607e31f0c17e747ded5cfe0b582d99f7caecf" inherit setuptools3