From patchwork Mon Feb 21 18:43:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 5207 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4K2WRG3xR2z3wtM for ; Mon, 21 Feb 2022 18:43:54 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4K2WQs1VDMz5X7; Mon, 21 Feb 2022 18:43:33 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4K2WQr32Bfz32Mn; Mon, 21 Feb 2022 18:43:32 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4K2WQl4RBsz30J5 for ; Mon, 21 Feb 2022 18:43:27 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4K2WQl2VLyztC; Mon, 21 Feb 2022 18:43:27 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1645469007; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YOjJJDfE5TvzZAs2C+DAJTN3XVe1Bf/CDBkDeAf0Uxg=; b=spfuh7/hQI+M2/ma2L2Ro5H1p28aTVQNatjAkL77jP09+qMVZCRh2QN4buth1dxjMkrLV1 562VW9faK+WP/8Dg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1645469007; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YOjJJDfE5TvzZAs2C+DAJTN3XVe1Bf/CDBkDeAf0Uxg=; b=PytC3/HZ1ICuC/oZqSwDUSwtNLWCOygOhUeyasqHLTSgdpz/W91l0E25ga0hixhHGtGRZJ HYUIPuH3nCcHHylzuIsdbz8v2/z3GnURwraFeHU/bYIIlLpyzLAHI7mXOtlqr6lZnpg0GP iUSKOi9oLecqM+7Nyt2ml7XgKEvuPyJum9/hanUeI3BkLFQpJiJ+2OEV+0CqcJgkKhxMzM LLWcXyXrXtscX8l6u1tmWEgYOOx+/grVrtC9DJiIjxvWoOCln346cD5Sy+twz0ZPHgB4y6 sbXIOEgXuVTkEisih/ML34VH25N+5D4kktT4dy+NBMu6cDQm6cOSjrLivt+G9Q== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 14/27] python3-flit: New package Date: Mon, 21 Feb 2022 18:43:05 +0000 Message-Id: <20220221184318.1158749-14-michael.tremer@ipfire.org> In-Reply-To: <20220221184318.1158749-1-michael.tremer@ipfire.org> References: <20220221184318.1158749-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Yet another build system for Python Signed-off-by: Michael Tremer --- config/rootfiles/packages/python3-flit | 106 +++++++++++++++++++++++++ lfs/python3-flit | 83 +++++++++++++++++++ make.sh | 1 + 3 files changed, 190 insertions(+) create mode 100644 config/rootfiles/packages/python3-flit create mode 100644 lfs/python3-flit diff --git a/config/rootfiles/packages/python3-flit b/config/rootfiles/packages/python3-flit new file mode 100644 index 000000000..ac483dddf --- /dev/null +++ b/config/rootfiles/packages/python3-flit @@ -0,0 +1,106 @@ +usr/lib/python3.10/site-packages/flit_core +#usr/lib/python3.10/site-packages/flit_core-3.6.0.dist-info +#usr/lib/python3.10/site-packages/flit_core-3.6.0.dist-info/INSTALLER +#usr/lib/python3.10/site-packages/flit_core-3.6.0.dist-info/METADATA +#usr/lib/python3.10/site-packages/flit_core-3.6.0.dist-info/RECORD +#usr/lib/python3.10/site-packages/flit_core-3.6.0.dist-info/REQUESTED +#usr/lib/python3.10/site-packages/flit_core-3.6.0.dist-info/WHEEL +#usr/lib/python3.10/site-packages/flit_core-3.6.0.dist-info/direct_url.json +usr/lib/python3.10/site-packages/flit_core/__init__.py +usr/lib/python3.10/site-packages/flit_core/buildapi.py +usr/lib/python3.10/site-packages/flit_core/common.py +usr/lib/python3.10/site-packages/flit_core/config.py +usr/lib/python3.10/site-packages/flit_core/sdist.py +#usr/lib/python3.10/site-packages/flit_core/tests +#usr/lib/python3.10/site-packages/flit_core/tests/__init__.py +#usr/lib/python3.10/site-packages/flit_core/tests/samples +#usr/lib/python3.10/site-packages/flit_core/tests/samples/EG_README.rst +#usr/lib/python3.10/site-packages/flit_core/tests/samples/bad-description-ext.toml +#usr/lib/python3.10/site-packages/flit_core/tests/samples/conflicting_modules +#usr/lib/python3.10/site-packages/flit_core/tests/samples/conflicting_modules/module1.py +#usr/lib/python3.10/site-packages/flit_core/tests/samples/conflicting_modules/pyproject.toml +#usr/lib/python3.10/site-packages/flit_core/tests/samples/conflicting_modules/src +#usr/lib/python3.10/site-packages/flit_core/tests/samples/conflicting_modules/src/module1.py +#usr/lib/python3.10/site-packages/flit_core/tests/samples/constructed_version +#usr/lib/python3.10/site-packages/flit_core/tests/samples/constructed_version/module1.py +#usr/lib/python3.10/site-packages/flit_core/tests/samples/constructed_version/pyproject.toml +#usr/lib/python3.10/site-packages/flit_core/tests/samples/extras-dev-conflict.toml +#usr/lib/python3.10/site-packages/flit_core/tests/samples/extras.toml +#usr/lib/python3.10/site-packages/flit_core/tests/samples/inclusion +#usr/lib/python3.10/site-packages/flit_core/tests/samples/inclusion/LICENSES +#usr/lib/python3.10/site-packages/flit_core/tests/samples/inclusion/LICENSES/README +#usr/lib/python3.10/site-packages/flit_core/tests/samples/inclusion/doc +#usr/lib/python3.10/site-packages/flit_core/tests/samples/inclusion/doc/subdir +#usr/lib/python3.10/site-packages/flit_core/tests/samples/inclusion/doc/subdir/test.txt +#usr/lib/python3.10/site-packages/flit_core/tests/samples/inclusion/doc/test.rst +#usr/lib/python3.10/site-packages/flit_core/tests/samples/inclusion/doc/test.txt +#usr/lib/python3.10/site-packages/flit_core/tests/samples/inclusion/module1.py +#usr/lib/python3.10/site-packages/flit_core/tests/samples/inclusion/pyproject.toml +#usr/lib/python3.10/site-packages/flit_core/tests/samples/invalid_version1.py +#usr/lib/python3.10/site-packages/flit_core/tests/samples/missing-description-file.toml +#usr/lib/python3.10/site-packages/flit_core/tests/samples/misspelled-key.toml +#usr/lib/python3.10/site-packages/flit_core/tests/samples/module1-pkg.ini +#usr/lib/python3.10/site-packages/flit_core/tests/samples/module1-pkg.toml +#usr/lib/python3.10/site-packages/flit_core/tests/samples/module1.py +#usr/lib/python3.10/site-packages/flit_core/tests/samples/module2.py +#usr/lib/python3.10/site-packages/flit_core/tests/samples/moduleunimportable.py +#usr/lib/python3.10/site-packages/flit_core/tests/samples/my-description.rst +#usr/lib/python3.10/site-packages/flit_core/tests/samples/no_docstring-pkg.toml +#usr/lib/python3.10/site-packages/flit_core/tests/samples/no_docstring.py +#usr/lib/python3.10/site-packages/flit_core/tests/samples/ns1-pkg +#usr/lib/python3.10/site-packages/flit_core/tests/samples/ns1-pkg/EG_README.rst +#usr/lib/python3.10/site-packages/flit_core/tests/samples/ns1-pkg/ns1 +#usr/lib/python3.10/site-packages/flit_core/tests/samples/ns1-pkg/ns1/pkg +#usr/lib/python3.10/site-packages/flit_core/tests/samples/ns1-pkg/ns1/pkg/__init__.py +#usr/lib/python3.10/site-packages/flit_core/tests/samples/ns1-pkg/pyproject.toml +#usr/lib/python3.10/site-packages/flit_core/tests/samples/package1 +#usr/lib/python3.10/site-packages/flit_core/tests/samples/package1.toml +#usr/lib/python3.10/site-packages/flit_core/tests/samples/package1/__init__.py +#usr/lib/python3.10/site-packages/flit_core/tests/samples/package1/data_dir +#usr/lib/python3.10/site-packages/flit_core/tests/samples/package1/data_dir/foo.sh +#usr/lib/python3.10/site-packages/flit_core/tests/samples/package1/foo.py +#usr/lib/python3.10/site-packages/flit_core/tests/samples/package1/subpkg +#usr/lib/python3.10/site-packages/flit_core/tests/samples/package1/subpkg/__init__.py +#usr/lib/python3.10/site-packages/flit_core/tests/samples/package1/subpkg/sp_data_dir +#usr/lib/python3.10/site-packages/flit_core/tests/samples/package1/subpkg/sp_data_dir/test.json +#usr/lib/python3.10/site-packages/flit_core/tests/samples/package1/subpkg2 +#usr/lib/python3.10/site-packages/flit_core/tests/samples/package1/subpkg2/__init__.py +#usr/lib/python3.10/site-packages/flit_core/tests/samples/pep517 +#usr/lib/python3.10/site-packages/flit_core/tests/samples/pep517/LICENSE +#usr/lib/python3.10/site-packages/flit_core/tests/samples/pep517/README.rst +#usr/lib/python3.10/site-packages/flit_core/tests/samples/pep517/module1.py +#usr/lib/python3.10/site-packages/flit_core/tests/samples/pep517/pyproject.toml +#usr/lib/python3.10/site-packages/flit_core/tests/samples/pep621 +#usr/lib/python3.10/site-packages/flit_core/tests/samples/pep621/LICENSE +#usr/lib/python3.10/site-packages/flit_core/tests/samples/pep621/README.rst +#usr/lib/python3.10/site-packages/flit_core/tests/samples/pep621/module1a.py +#usr/lib/python3.10/site-packages/flit_core/tests/samples/pep621/pyproject.toml +#usr/lib/python3.10/site-packages/flit_core/tests/samples/pep621_nodynamic +#usr/lib/python3.10/site-packages/flit_core/tests/samples/pep621_nodynamic/README.rst +#usr/lib/python3.10/site-packages/flit_core/tests/samples/pep621_nodynamic/module1.py +#usr/lib/python3.10/site-packages/flit_core/tests/samples/pep621_nodynamic/pyproject.toml +#usr/lib/python3.10/site-packages/flit_core/tests/samples/requires-dev.toml +#usr/lib/python3.10/site-packages/flit_core/tests/samples/requires-envmark.toml +#usr/lib/python3.10/site-packages/flit_core/tests/samples/requires-extra-envmark.toml +#usr/lib/python3.10/site-packages/flit_core/tests/samples/requires-requests.toml +#usr/lib/python3.10/site-packages/flit_core/tests/test_build_thyself.py +#usr/lib/python3.10/site-packages/flit_core/tests/test_buildapi.py +#usr/lib/python3.10/site-packages/flit_core/tests/test_common.py +#usr/lib/python3.10/site-packages/flit_core/tests/test_config.py +#usr/lib/python3.10/site-packages/flit_core/tests/test_sdist.py +#usr/lib/python3.10/site-packages/flit_core/tests/test_versionno.py +#usr/lib/python3.10/site-packages/flit_core/tests/test_wheel.py +usr/lib/python3.10/site-packages/flit_core/vendor +usr/lib/python3.10/site-packages/flit_core/vendor/README +usr/lib/python3.10/site-packages/flit_core/vendor/__init__.py +usr/lib/python3.10/site-packages/flit_core/vendor/tomli +#usr/lib/python3.10/site-packages/flit_core/vendor/tomli-1.2.3.dist-info +#usr/lib/python3.10/site-packages/flit_core/vendor/tomli-1.2.3.dist-info/LICENSE +#usr/lib/python3.10/site-packages/flit_core/vendor/tomli-1.2.3.dist-info/METADATA +usr/lib/python3.10/site-packages/flit_core/vendor/tomli/__init__.py +usr/lib/python3.10/site-packages/flit_core/vendor/tomli/_parser.py +usr/lib/python3.10/site-packages/flit_core/vendor/tomli/_re.py +usr/lib/python3.10/site-packages/flit_core/vendor/tomli/_types.py +usr/lib/python3.10/site-packages/flit_core/vendor/tomli/py.typed +usr/lib/python3.10/site-packages/flit_core/versionno.py +usr/lib/python3.10/site-packages/flit_core/wheel.py diff --git a/lfs/python3-flit b/lfs/python3-flit new file mode 100644 index 000000000..6e87509d9 --- /dev/null +++ b/lfs/python3-flit @@ -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.6.0 + +THISAPP = flit-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) +PROG = python3-flit +PAK_VER = 1 + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = a24dad673b38b369722f574500ac1933 + +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)/flit_core && python3 build_dists.py + cd $(DIR_APP) && PYTHONPATH=flit_core python3 -m flit build --format wheel + cd $(DIR_APP)/flit_core && PIP_CONFIG_FILE=/dev/null pip3 install --isolated \ + --root="/" --ignore-installed --no-deps dist/*.whl + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index 5296ca21c..8ea526ab4 100755 --- a/make.sh +++ b/make.sh @@ -1615,6 +1615,7 @@ buildipfire() { lfsmake2 python3-toml lfsmake2 python3-pyproject2setuppy lfsmake2 python3-tomli + lfsmake2 python3-flit lfsmake2 python3-typing-extensions lfsmake2 python3-semantic-version lfsmake2 python3-packaging