Marcel Telka
2024-04-02 97d94019946b7b1c0d80020bb0776694fb02f5b8
Add domdf_python_tools Python project

6 files added
246 ■■■■■ changed files
components/python/domdf_python_tools/Makefile 53 ●●●●● patch | view | raw | blame | history
components/python/domdf_python_tools/domdf_python_tools-PYVER.p5m 67 ●●●●● patch | view | raw | blame | history
components/python/domdf_python_tools/manifests/sample-manifest.p5m 67 ●●●●● patch | view | raw | blame | history
components/python/domdf_python_tools/patches/01-no-shebang.patch 9 ●●●●● patch | view | raw | blame | history
components/python/domdf_python_tools/pkg5 14 ●●●●● patch | view | raw | blame | history
components/python/domdf_python_tools/python-integrate-project.conf 36 ●●●●● patch | view | raw | blame | history
components/python/domdf_python_tools/Makefile
New file
@@ -0,0 +1,53 @@
#
# 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 domdf_python_tools
#
BUILD_STYLE = pyproject
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME =        domdf_python_tools
HUMAN_VERSION =            3.8.0.post2
COMPONENT_SUMMARY =        domdf_python_tools - Helpful functions for Python
COMPONENT_PROJECT_URL =        https://github.com/domdfcoding/domdf_python_tools
COMPONENT_ARCHIVE_HASH =    \
    sha256:a1fd255ea29f767b08de462d2da39d360262304389227d980bc307ee8aa3366a
COMPONENT_LICENSE =        MIT
COMPONENT_LICENSE_FILE =    LICENSE
TEST_STYLE = pytest
#
# Following dependency loops were detected (where 'A --> B' means 'A needs B to
# run tests', and 'A ==> B' means 'A needs B for build and/or run'):
#
# domdf_python_tools --> coincidence ==> whey ==> domdf_python_tools
#
# To break loops we need to allow this project to integrate without testing in
# a case the required projects are not available yet (bootstrap).
#
PYTHON_TEST_BOOTSTRAP = yes
include $(WS_MAKE_RULES)/common.mk
# https://github.com/domdfcoding/domdf_python_tools/issues/114
TEST_REQUIRED_PACKAGES.python += library/python/coincidence
# Auto-generated dependencies
PYTHON_REQUIRED_PACKAGES += library/python/natsort
PYTHON_REQUIRED_PACKAGES += library/python/setuptools
PYTHON_REQUIRED_PACKAGES += library/python/typing-extensions
PYTHON_REQUIRED_PACKAGES += library/python/wheel
PYTHON_REQUIRED_PACKAGES += runtime/python
components/python/domdf_python_tools/domdf_python_tools-PYVER.p5m
New file
@@ -0,0 +1,67 @@
#
# 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/domdf_python_tools-$(HUMAN_VERSION).dist-info/LICENSE
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools-$(HUMAN_VERSION).dist-info/METADATA
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools-$(HUMAN_VERSION).dist-info/WHEEL
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools-$(HUMAN_VERSION).dist-info/top_level.txt
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/__init__.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/_is_match.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/bases.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/compat/__init__.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/compat/importlib_metadata.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/compat/importlib_metadata.pyi
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/compat/importlib_resources.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/compat/importlib_resources.pyi
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/dates.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/delegators.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/doctools.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/getters.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/google-10000-english-no-swears.txt
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/import_tools.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/iterative.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/pagesizes/__init__.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/pagesizes/classes.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/pagesizes/sizes.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/pagesizes/units.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/pagesizes/utils.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/paths.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/pretty_print.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/py.typed
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/secrets.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/stringlist.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/terminal.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/typing.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/utils.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/versions.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/words.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
depend type=require fmri=pkg:/library/python/natsort-$(PYV)
depend type=require fmri=pkg:/library/python/typing-extensions-$(PYV)
components/python/domdf_python_tools/manifests/sample-manifest.p5m
New file
@@ -0,0 +1,67 @@
#
# 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/domdf_python_tools-$(HUMAN_VERSION).dist-info/LICENSE
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools-$(HUMAN_VERSION).dist-info/METADATA
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools-$(HUMAN_VERSION).dist-info/WHEEL
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools-$(HUMAN_VERSION).dist-info/top_level.txt
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/__init__.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/_is_match.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/bases.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/compat/__init__.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/compat/importlib_metadata.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/compat/importlib_metadata.pyi
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/compat/importlib_resources.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/compat/importlib_resources.pyi
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/dates.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/delegators.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/doctools.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/getters.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/google-10000-english-no-swears.txt
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/import_tools.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/iterative.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/pagesizes/__init__.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/pagesizes/classes.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/pagesizes/sizes.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/pagesizes/units.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/pagesizes/utils.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/paths.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/pretty_print.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/py.typed
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/secrets.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/stringlist.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/terminal.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/typing.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/utils.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/versions.py
file path=usr/lib/python$(PYVER)/vendor-packages/domdf_python_tools/words.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
depend type=require fmri=pkg:/library/python/natsort-$(PYV)
depend type=require fmri=pkg:/library/python/typing-extensions-$(PYV)
components/python/domdf_python_tools/patches/01-no-shebang.patch
New file
@@ -0,0 +1,9 @@
https://github.com/domdfcoding/domdf_python_tools/pull/113
--- domdf_python_tools-3.8.0.post2/domdf_python_tools/pagesizes/__init__.py.orig
+++ domdf_python_tools-3.8.0.post2/domdf_python_tools/pagesizes/__init__.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 #  __init__.py
 """
components/python/domdf_python_tools/pkg5
New file
@@ -0,0 +1,14 @@
{
    "dependencies": [
        "library/python/natsort-39",
        "library/python/setuptools-39",
        "library/python/typing-extensions-39",
        "library/python/wheel-39",
        "runtime/python-39"
    ],
    "fmris": [
        "library/python/domdf-python-tools",
        "library/python/domdf-python-tools-39"
    ],
    "name": "domdf_python_tools"
}
components/python/domdf_python_tools/python-integrate-project.conf
New file
@@ -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 Marcel Telka
#
%patch% 01-no-shebang.patch
%hook-begin%
# The project summary at PyPI contains strange characters that could cause
# issues so override it.
SUMMARY='Helpful functions for Python'
%include-2%
#
# Following dependency loops were detected (where 'A --> B' means 'A needs B to
# run tests', and 'A ==> B' means 'A needs B for build and/or run'):
#
# domdf_python_tools --> coincidence ==> whey ==> domdf_python_tools
#
# To break loops we need to allow this project to integrate without testing in
# a case the required projects are not available yet (bootstrap).
#
PYTHON_TEST_BOOTSTRAP = yes
%include-3%
# https://github.com/domdfcoding/domdf_python_tools/issues/114
TEST_REQUIRED_PACKAGES.python += library/python/coincidence