From 8a23b876d5e0a9d2a1ae972f152fad47a355daa4 Mon Sep 17 00:00:00 2001
From: Marcel Telka <marcel@telka.sk>
Date: Sun, 07 Apr 2024 17:16:24 +0200
Subject: [PATCH] Add backports.tarfile Python project

---
 components/python/backports.tarfile/Makefile                      |   40 +++++++++++++
 components/python/backports.tarfile/test/results-all.master       |   16 +++++
 components/python/backports.tarfile/backports.tarfile-PYVER.p5m   |   36 ++++++++++++
 components/python/backports.tarfile/manifests/sample-manifest.p5m |   36 ++++++++++++
 components/python/backports.tarfile/pkg5                          |   13 ++++
 5 files changed, 141 insertions(+), 0 deletions(-)

diff --git a/components/python/backports.tarfile/Makefile b/components/python/backports.tarfile/Makefile
new file mode 100644
index 0000000..ea665d4
--- /dev/null
+++ b/components/python/backports.tarfile/Makefile
@@ -0,0 +1,40 @@
+#
+# This file and its contents are supplied under the terms of the
+# Common Development and Distribution License ("CDDL"), version 1.0.
+# You may only use this file in accordance with the terms of version
+# 1.0 of the CDDL.
+#
+# A full copy of the text of the CDDL should have accompanied this
+# source.  A copy of the CDDL is also available via the Internet at
+# http://www.illumos.org/license/CDDL.
+#
+
+#
+# This file was automatically generated using the following command:
+#   $WS_TOOLS/python-integrate-project backports.tarfile
+#
+
+BUILD_STYLE = pyproject
+
+include ../../../make-rules/shared-macros.mk
+
+COMPONENT_NAME =		backports.tarfile
+HUMAN_VERSION =			1.0.0
+COMPONENT_SUMMARY =		backports.tarfile - Backport of CPython tarfile module
+COMPONENT_PROJECT_URL =		https://github.com/jaraco/backports.tarfile
+COMPONENT_ARCHIVE_HASH =	\
+	sha256:2688f159c21afd56a07b75f01306f9f52c79aebcc5f4a117fb8fbb4445352c75
+COMPONENT_LICENSE =		MIT
+COMPONENT_LICENSE_FILE =	LICENSE
+
+include $(WS_MAKE_RULES)/common.mk
+
+# Auto-generated dependencies
+PYTHON_REQUIRED_PACKAGES += library/python/setuptools
+PYTHON_REQUIRED_PACKAGES += library/python/setuptools-scm
+PYTHON_REQUIRED_PACKAGES += library/python/wheel
+PYTHON_REQUIRED_PACKAGES += runtime/python
+TEST_REQUIRED_PACKAGES.python += library/python/pytest
+TEST_REQUIRED_PACKAGES.python += library/python/pytest-checkdocs
+TEST_REQUIRED_PACKAGES.python += library/python/pytest-cov
+TEST_REQUIRED_PACKAGES.python += library/python/pytest-enabler
diff --git a/components/python/backports.tarfile/backports.tarfile-PYVER.p5m b/components/python/backports.tarfile/backports.tarfile-PYVER.p5m
new file mode 100644
index 0000000..78a4e19
--- /dev/null
+++ b/components/python/backports.tarfile/backports.tarfile-PYVER.p5m
@@ -0,0 +1,36 @@
+#
+# This file and its contents are supplied under the terms of the
+# Common Development and Distribution License ("CDDL"), version 1.0.
+# You may only use this file in accordance with the terms of version
+# 1.0 of the CDDL.
+#
+# A full copy of the text of the CDDL should have accompanied this
+# source.  A copy of the CDDL is also available via the Internet at
+# http://www.illumos.org/license/CDDL.
+#
+
+#
+# This file was automatically generated using python-integrate-project
+#
+
+set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)-$(PYV)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.human-version value=$(HUMAN_VERSION)
+set name=pkg.summary value="$(COMPONENT_SUMMARY)"
+set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
+set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
+set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+
+license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
+
+file path=usr/lib/python$(PYVER)/vendor-packages/backports.tarfile-$(HUMAN_VERSION).dist-info/LICENSE
+file path=usr/lib/python$(PYVER)/vendor-packages/backports.tarfile-$(HUMAN_VERSION).dist-info/METADATA
+file path=usr/lib/python$(PYVER)/vendor-packages/backports.tarfile-$(HUMAN_VERSION).dist-info/WHEEL
+file path=usr/lib/python$(PYVER)/vendor-packages/backports.tarfile-$(HUMAN_VERSION).dist-info/top_level.txt
+file path=usr/lib/python$(PYVER)/vendor-packages/backports/tarfile.py
+
+# python modules are unusable without python runtime binary
+depend type=require fmri=__TBD pkg.debug.depend.file=python$(PYVER) \
+    pkg.debug.depend.path=usr/bin
+
+# Automatically generated dependencies based on distribution metadata
diff --git a/components/python/backports.tarfile/manifests/sample-manifest.p5m b/components/python/backports.tarfile/manifests/sample-manifest.p5m
new file mode 100644
index 0000000..a92de50
--- /dev/null
+++ b/components/python/backports.tarfile/manifests/sample-manifest.p5m
@@ -0,0 +1,36 @@
+#
+# This file and its contents are supplied under the terms of the
+# Common Development and Distribution License ("CDDL"), version 1.0.
+# You may only use this file in accordance with the terms of version
+# 1.0 of the CDDL.
+#
+# A full copy of the text of the CDDL should have accompanied this
+# source.  A copy of the CDDL is also available via the Internet at
+# http://www.illumos.org/license/CDDL.
+#
+
+#
+# Copyright 2024 <contributor>
+#
+
+set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)-$(PYV)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.human-version value=$(HUMAN_VERSION)
+set name=pkg.summary value="$(COMPONENT_SUMMARY)"
+set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
+set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
+set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+
+license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
+
+file path=usr/lib/python$(PYVER)/vendor-packages/backports.tarfile-$(HUMAN_VERSION).dist-info/LICENSE
+file path=usr/lib/python$(PYVER)/vendor-packages/backports.tarfile-$(HUMAN_VERSION).dist-info/METADATA
+file path=usr/lib/python$(PYVER)/vendor-packages/backports.tarfile-$(HUMAN_VERSION).dist-info/WHEEL
+file path=usr/lib/python$(PYVER)/vendor-packages/backports.tarfile-$(HUMAN_VERSION).dist-info/top_level.txt
+file path=usr/lib/python$(PYVER)/vendor-packages/backports/tarfile.py
+
+# python modules are unusable without python runtime binary
+depend type=require fmri=__TBD pkg.debug.depend.file=python$(PYVER) \
+    pkg.debug.depend.path=usr/bin
+
+# Automatically generated dependencies based on distribution metadata
diff --git a/components/python/backports.tarfile/pkg5 b/components/python/backports.tarfile/pkg5
new file mode 100644
index 0000000..9c1f6db
--- /dev/null
+++ b/components/python/backports.tarfile/pkg5
@@ -0,0 +1,13 @@
+{
+    "dependencies": [
+        "library/python/setuptools-39",
+        "library/python/setuptools-scm-39",
+        "library/python/wheel-39",
+        "runtime/python-39"
+    ],
+    "fmris": [
+        "library/python/backports-tarfile",
+        "library/python/backports-tarfile-39"
+    ],
+    "name": "backports.tarfile"
+}
diff --git a/components/python/backports.tarfile/test/results-all.master b/components/python/backports.tarfile/test/results-all.master
new file mode 100644
index 0000000..614c655
--- /dev/null
+++ b/components/python/backports.tarfile/test/results-all.master
@@ -0,0 +1,16 @@
+py$(PYV): remove tox env folder $(@D)/.tox/py$(PYV)
+py$(PYV): commands[0]> python -m pytest
+============================= test session starts ==============================
+platform sunos5 -- Python $(PYTHON_VERSION).X -- $(@D)/.tox/py$(PYV)/bin/python
+cachedir: .tox/py$(PYV)/.pytest_cache
+rootdir: $(@D)
+configfile: pytest.ini
+collecting ... collected 2 items
+
+.::project PASSED
+.::project PASSED
+
+
+======== 2 passed ========
+  py$(PYV): OK
+  congratulations :)

--
Gitblit v1.9.3