From patchwork Fri Feb 1 22:52:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonatan Schlag X-Patchwork-Id: 2056 Return-Path: Received: from mail01.ipfire.org (unknown [172.28.1.200]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail01.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web07.i.ipfire.org (Postfix) with ESMTPS id CE7458AA54E for ; Fri, 1 Feb 2019 11:53:11 +0000 (GMT) Received: from mail01.i.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 43rb8R1ns6z55N5G; Fri, 1 Feb 2019 11:53:11 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201801; t=1549021991; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references:list-id:list-unsubscribe:list-subscribe:list-post; bh=z8P89jE1OrzXb6VFt49rlihTyaGII0wNUL9AFD5Teik=; b=fIjmShuO0+BvDFtX646Vr3yzuNH07J/Zd81oX8DfDT1dr5VJGxJ40pPOljhp2hY4C7X7Ot VvOOcunZF7SrgpqSv8sVVektkK7uUgmI963BzlQNhUXxuxtzhSpGFDF4eHlj5d5kDDq+IS gbLWOLAmKEe1JpO/cAu4SbICAzQGBRLSpK1OsC6CruHKMXAtI4OO+SwR70fn9BSTS4EixD 36bk+twR79MEz7KvxnZgrKAX05Id8hbRegdiA7bEPqVYGKmbtmCeoWfaQUkiZgQiDIQSw6 xoQ1Rb7NtlCs+OLhvCWodsNJrHH1P69OCoJF2fSxpquJjVQEK7WUTwKXqH9ngA== Received: from jonatan.builders.ipfire.org (fw01.ipfire.org [172.28.1.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 43rb8L2gNBz55N58; Fri, 1 Feb 2019 11:53:06 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201801; t=1549021986; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=z8P89jE1OrzXb6VFt49rlihTyaGII0wNUL9AFD5Teik=; b=t2yYNWOjiCeRsMoymCAuUWI5llUM8AEzdU7wAyIajtC6IwAHhpjyufUC1JfuMCbixOimr2 UrCyzsZwJElM5qwM2E3W4wdXfsEe6XPLj8+LDUlvaOTz+G5mVXO/4tic73ynPq/yiPp6eQ mlu9aH8S1yH1Uvd8QYjoKcxU1oG0OG3zA99PMyNCW4wGfQn1Y/UXrFrrIVA9ZPPF3kDHi1 7y69aK5HKFIZhyjV5EnLi5cufw573Q5ny1C+SOFxnVu8y8w5o2vNPh+YdWTsgcTn4hO6pC UJZ70XepYGwWH1LSe7uTfXpEHbE/DSW5eGTM0rhD8dK3MBaAgKV+ZLpHkhmLxg== From: Jonatan Schlag To: development@lists.ipfire.org Subject: [PATCH 2/5] Add new package python3-setuptools-scm Date: Fri, 1 Feb 2019 11:52:42 +0000 Message-Id: <1549021965-16633-2-git-send-email-jonatan.schlag@ipfire.org> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1549021965-16633-1-git-send-email-jonatan.schlag@ipfire.org> References: <1549021965-16633-1-git-send-email-jonatan.schlag@ipfire.org> X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Jonatan Schlag --- config/rootfiles/common/python3-setuptools-scm | 37 ++++++++++++ lfs/python3-setuptools-scm | 83 ++++++++++++++++++++++++++ make.sh | 1 + 3 files changed, 121 insertions(+) create mode 100644 config/rootfiles/common/python3-setuptools-scm create mode 100644 lfs/python3-setuptools-scm diff --git a/config/rootfiles/common/python3-setuptools-scm b/config/rootfiles/common/python3-setuptools-scm new file mode 100644 index 0000000..bcc3d1c --- /dev/null +++ b/config/rootfiles/common/python3-setuptools-scm @@ -0,0 +1,37 @@ +#usr/lib/python3.6/site-packages/setuptools_scm +#usr/lib/python3.6/site-packages/setuptools_scm-3.2.0-py3.6.egg-info +#usr/lib/python3.6/site-packages/setuptools_scm-3.2.0-py3.6.egg-info/PKG-INFO +#usr/lib/python3.6/site-packages/setuptools_scm-3.2.0-py3.6.egg-info/SOURCES.txt +#usr/lib/python3.6/site-packages/setuptools_scm-3.2.0-py3.6.egg-info/dependency_links.txt +#usr/lib/python3.6/site-packages/setuptools_scm-3.2.0-py3.6.egg-info/entry_points.txt +#usr/lib/python3.6/site-packages/setuptools_scm-3.2.0-py3.6.egg-info/top_level.txt +#usr/lib/python3.6/site-packages/setuptools_scm-3.2.0-py3.6.egg-info/zip-safe +#usr/lib/python3.6/site-packages/setuptools_scm/__init__.py +#usr/lib/python3.6/site-packages/setuptools_scm/__main__.py +#usr/lib/python3.6/site-packages/setuptools_scm/__pycache__ +#usr/lib/python3.6/site-packages/setuptools_scm/__pycache__/__init__.cpython-36.pyc +#usr/lib/python3.6/site-packages/setuptools_scm/__pycache__/__main__.cpython-36.pyc +#usr/lib/python3.6/site-packages/setuptools_scm/__pycache__/config.cpython-36.pyc +#usr/lib/python3.6/site-packages/setuptools_scm/__pycache__/discover.cpython-36.pyc +#usr/lib/python3.6/site-packages/setuptools_scm/__pycache__/file_finder.cpython-36.pyc +#usr/lib/python3.6/site-packages/setuptools_scm/__pycache__/file_finder_git.cpython-36.pyc +#usr/lib/python3.6/site-packages/setuptools_scm/__pycache__/file_finder_hg.cpython-36.pyc +#usr/lib/python3.6/site-packages/setuptools_scm/__pycache__/git.cpython-36.pyc +#usr/lib/python3.6/site-packages/setuptools_scm/__pycache__/hacks.cpython-36.pyc +#usr/lib/python3.6/site-packages/setuptools_scm/__pycache__/hg.cpython-36.pyc +#usr/lib/python3.6/site-packages/setuptools_scm/__pycache__/integration.cpython-36.pyc +#usr/lib/python3.6/site-packages/setuptools_scm/__pycache__/utils.cpython-36.pyc +#usr/lib/python3.6/site-packages/setuptools_scm/__pycache__/version.cpython-36.pyc +#usr/lib/python3.6/site-packages/setuptools_scm/__pycache__/win_py31_compat.cpython-36.pyc +#usr/lib/python3.6/site-packages/setuptools_scm/config.py +#usr/lib/python3.6/site-packages/setuptools_scm/discover.py +#usr/lib/python3.6/site-packages/setuptools_scm/file_finder.py +#usr/lib/python3.6/site-packages/setuptools_scm/file_finder_git.py +#usr/lib/python3.6/site-packages/setuptools_scm/file_finder_hg.py +#usr/lib/python3.6/site-packages/setuptools_scm/git.py +#usr/lib/python3.6/site-packages/setuptools_scm/hacks.py +#usr/lib/python3.6/site-packages/setuptools_scm/hg.py +#usr/lib/python3.6/site-packages/setuptools_scm/integration.py +#usr/lib/python3.6/site-packages/setuptools_scm/utils.py +#usr/lib/python3.6/site-packages/setuptools_scm/version.py +#usr/lib/python3.6/site-packages/setuptools_scm/win_py31_compat.py diff --git a/lfs/python3-setuptools-scm b/lfs/python3-setuptools-scm new file mode 100644 index 0000000..41f653b --- /dev/null +++ b/lfs/python3-setuptools-scm @@ -0,0 +1,83 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2018 IPFire Team # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +VER = 3.2.0 + +THISAPP = setuptools_scm-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) +PROG = python3-setuptools-scm +PAK_VER = 1 + +DEPS = "python3" + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = 178e4e7b14c163e0e77ae7ec6684cc0f + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +md5 : $(subst %,%_MD5,$(objects)) + +dist: + @$(PAK) + +############################################################################### +# Downloading, checking, md5sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +$(subst %,%_MD5,$(objects)) : + @$(MD5) + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && python3 setup.py build + cd $(DIR_APP) && python3 setup.py install --root=/ + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index 302346b..507cde6 100755 --- a/make.sh +++ b/make.sh @@ -1501,6 +1501,7 @@ buildipfire() { lfsmake2 python-xattr lfsmake2 ddns lfsmake2 python3-setuptools + lfsmake2 python3-setuptools-scm lfsmake2 python3-six lfsmake2 python3-dateutil lfsmake2 python3-jmespath