public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH 18/50] python3-flit: New package
Date: Tue, 22 Feb 2022 12:51:03 +0000	[thread overview]
Message-ID: <20220222125135.1211290-19-michael.tremer@ipfire.org> (raw)
In-Reply-To: <20220222125135.1211290-1-michael.tremer@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 12671 bytes --]

Yet another build system for Python

Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
---
 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  <info(a)ipfire.org>                     #
+#                                                                             #
+# 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 <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# 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
-- 
2.30.2


  parent reply	other threads:[~2022-02-22 12:51 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-22 12:50 Make IPFire 2 build on riscv64 Michael Tremer
2022-02-22 12:50 ` [PATCH 01/50] expat: Update to version 2.4.6 - Security/CVE fixes Michael Tremer
2022-02-22 12:50 ` [PATCH 02/50] wireless client: Remove option for WEP Michael Tremer
2022-02-22 12:50 ` [PATCH 03/50] Core Update 165: Ship wirelessclient.cgi Michael Tremer
2022-02-22 12:50 ` [PATCH 04/50] hostapd: Repair LFS file after merge garbage Michael Tremer
2022-02-22 12:50 ` [PATCH 05/50] oci-cli: New package Michael Tremer
2022-02-22 12:50 ` [PATCH 07/50] make.sh: Build the rust compiler earlier Michael Tremer
2022-02-22 12:50 ` [PATCH 08/50] python3-setuptools-rust: New package Michael Tremer
2022-02-22 12:50 ` [PATCH 09/50] python3-typing-extensions: " Michael Tremer
2022-02-22 12:50 ` [PATCH 10/50] python3-semantic-version: " Michael Tremer
2022-02-22 12:50 ` [PATCH 11/50] make.sh: Build python3-packaging sooner Michael Tremer
2022-02-22 12:50 ` [PATCH 12/50] python3-cffi: New package Michael Tremer
2022-02-22 12:50 ` [PATCH 13/50] python3-cryptography: New package required by oci-python-sdk Michael Tremer
2022-02-22 12:50 ` [PATCH 14/50] python3-charset-normalizer: New package Michael Tremer
2022-02-22 12:51 ` [PATCH 15/50] python3-requests: " Michael Tremer
2022-02-22 12:51 ` [PATCH 16/50] python3-certifi: " Michael Tremer
2022-02-22 12:51 ` [PATCH 17/50] python3-idna: " Michael Tremer
2022-02-22 12:51 ` Michael Tremer [this message]
2022-02-22 12:51 ` [PATCH 19/50] python3-build: " Michael Tremer
2022-02-22 12:51 ` [PATCH 20/50] python3-pep517: " Michael Tremer
2022-02-22 12:51 ` [PATCH 21/50] python3-install: " Michael Tremer
2022-02-22 12:51 ` [PATCH 22/50] python3-pycparser: " Michael Tremer
2022-02-22 12:51 ` [PATCH 23/50] python3-cryptography: Fix build against Rust Michael Tremer
2022-02-22 12:51 ` [PATCH 24/50] make.sh: Re-order build of some Python modules Michael Tremer
2022-02-22 12:51 ` [PATCH 25/50] python3-circuitbreaker: New package Michael Tremer
2022-02-22 12:51 ` [PATCH 26/50] python3-pytz: " Michael Tremer
2022-02-22 12:51 ` [PATCH 27/50] python3-click: " Michael Tremer
2022-02-22 12:51 ` [PATCH 28/50] python3-arrow: " Michael Tremer
2022-02-22 12:51 ` [PATCH 29/50] python3-terminaltables: " Michael Tremer
2022-02-22 12:51 ` [PATCH 30/50] oci-cli: Ship egg metadata Michael Tremer
2022-02-22 12:51 ` [PATCH 31/50] oci-cli: Depend on python3-jmespath Michael Tremer
2022-02-22 12:51 ` [PATCH 32/50] samba: Fix rootfiles on ARM Michael Tremer
2022-02-22 12:51 ` [PATCH 33/50] oci: user-data: Try to decode base64 content Michael Tremer
2022-02-22 12:51 ` [PATCH 34/50] Core Update 165: Ship oci-setup initscript Michael Tremer
2022-02-22 12:51 ` [PATCH 35/50] core164: exclude boot/uEnv.txt Michael Tremer
2022-02-22 12:51 ` [PATCH 36/50] make.sh: Do not throw away any error messages when setting ccache size Michael Tremer
2022-02-22 12:51 ` [PATCH 37/50] make.sh: Follow symlinks when checking if QEMU is static Michael Tremer
2022-02-22 12:51 ` [PATCH 38/50] make.sh: Avoid calling date when determining elapsed seconds Michael Tremer
2022-02-22 12:51 ` [PATCH 39/50] strip: Make this work when cross-compiling Michael Tremer
2022-02-22 12:51 ` [PATCH 40/50] gcc: Compile without ZSTD Michael Tremer
2022-02-23  9:45   ` Michael Tremer
2022-02-23 15:56     ` Peter Müller
2022-02-22 12:51 ` [PATCH 41/50] jq: Update autotools Michael Tremer
2022-02-22 12:51 ` [PATCH 42/50] make.sh: riscv64: Emulate SiFive U54 CPU Michael Tremer
2022-02-22 12:51 ` [PATCH 43/50] rust: Rust's arch for riscv64 is called riscv64gc Michael Tremer
2022-02-22 12:51 ` [PATCH 44/50] rust: Package for riscv64 Michael Tremer
2022-02-22 12:51 ` [PATCH 45/50] kernel: Add a basic configuration " Michael Tremer
2022-02-22 12:51 ` [PATCH 46/50] liburcu: Update automake to build on riscv64 Michael Tremer
2022-02-22 12:51 ` [PATCH 47/50] suricata: Fix check for level one cache line size Michael Tremer
2022-02-22 12:51 ` [PATCH 48/50] boost: Enable build on all architectures Michael Tremer
2022-02-22 12:51 ` [PATCH 49/50] strip: Do not try to strip QEMU Michael Tremer
2022-02-22 12:51 ` [PATCH 50/50] Config: Disable parallel builds for Cargo on riscv64 Michael Tremer
2022-02-22 12:54   ` Michael Tremer

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=20220222125135.1211290-19-michael.tremer@ipfire.org \
    --to=michael.tremer@ipfire.org \
    --cc=development@lists.ipfire.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox