Add pyproject_installer python project
New file |
| | |
| | | # |
| | | # 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 pyproject_installer |
| | | # |
| | | |
| | | BUILD_STYLE = pyproject |
| | | |
| | | include ../../../make-rules/shared-macros.mk |
| | | |
| | | COMPONENT_NAME = pyproject_installer |
| | | COMPONENT_VERSION = 0.3.0 |
| | | COMPONENT_SUMMARY = pyproject_installer - Pyproject installer |
| | | COMPONENT_ARCHIVE_URL = \ |
| | | https://files.pythonhosted.org/packages/3c/fa/d5cd59b42e7958526e756ee588effd1593d5c4adbc85fa5a55e0f906a876/pyproject_installer-0.3.0.tar.gz |
| | | COMPONENT_ARCHIVE_HASH = \ |
| | | sha256:bcec19bed803d2105b307ab64d779d1f9c75c6799a3fdce35d7ff5f7853d9730 |
| | | COMPONENT_LICENSE = MIT |
| | | |
| | | # The pyproject_installer is small, PEP 517 compliant, self contained Python |
| | | # project capable to build and install itself and other projects without |
| | | # dependency on non-core Python modules. It will be used to package full |
| | | # featured 'build' and 'installer' projects. |
| | | PYTHON_BOOTSTRAP = yes |
| | | |
| | | # https://github.com/stanislavlevin/pyproject_installer/issues/13 |
| | | TEST_STYLE = none |
| | | |
| | | # This project requires Python >= 3.8 |
| | | PYTHON_VERSIONS = 3.9 |
| | | |
| | | include $(WS_MAKE_RULES)/common.mk |
| | | |
| | | # Allow the bootstrapping pyproject_installer to find its own modules |
| | | PYTHON_ENV += PYTHONPATH=$(@D)/src |
| | | |
| | | # Special self contained build command for bootstrap |
| | | COMPONENT_BUILD_CMD = $(PYTHON) -m pyproject_installer build |
| | | COMPONENT_BUILD_ARGS = |
| | | |
| | | # Special self contained install command for bootstrap |
| | | COMPONENT_INSTALL_CMD = $(PYTHON) -m pyproject_installer install |
| | | COMPONENT_INSTALL_ARGS = |
| | | COMPONENT_INSTALL_ARGS += --destdir $(PROTO_DIR) |
| | | |
| | | # pyproject_installer does not bytecompile after the install. Since we need |
| | | # pyc files we need to force that. |
| | | COMPONENT_POST_INSTALL_ACTION += $(PYTHON) -m compileall $(PROTO_DIR)/$(PYTHON_LIB) ; |
| | | |
| | | # Auto-generated dependencies |
New file |
| | |
| | | # |
| | | # 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 2022 <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/pyproject_installer-$(COMPONENT_VERSION).dist-info/METADATA |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/__init__.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/__main__.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/build_cmd/__init__.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/build_cmd/_build.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/build_cmd/_vendor/__init__.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/build_cmd/_vendor/tomli/__init__.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/build_cmd/_vendor/tomli/_parser.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/build_cmd/_vendor/tomli/_re.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/build_cmd/_vendor/tomli/_types.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/build_cmd/helper/__init__.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/build_cmd/helper/backend_caller.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/install_cmd/__init__.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/install_cmd/_install.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/version.py |
New file |
| | |
| | | { |
| | | "dependencies": [ |
| | | "SUNWcs", |
| | | "runtime/python-39", |
| | | "shell/ksh93", |
| | | "system/library" |
| | | ], |
| | | "fmris": [ |
| | | "library/python/pyproject_installer-39", |
| | | "library/python/pyproject_installer" |
| | | ], |
| | | "name": "pyproject_installer" |
| | | } |
New file |
| | |
| | | # |
| | | # 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/pyproject_installer-$(COMPONENT_VERSION).dist-info/METADATA |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/__init__.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/__main__.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/build_cmd/__init__.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/build_cmd/_build.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/build_cmd/_vendor/__init__.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/build_cmd/_vendor/tomli/__init__.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/build_cmd/_vendor/tomli/_parser.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/build_cmd/_vendor/tomli/_re.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/build_cmd/_vendor/tomli/_types.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/build_cmd/helper/__init__.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/build_cmd/helper/backend_caller.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/install_cmd/__init__.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/install_cmd/_install.py |
| | | file path=usr/lib/python$(PYVER)/vendor-packages/pyproject_installer/version.py |
New file |
| | |
| | | |
| | | Permission is hereby granted, free of charge, to any person obtaining a copy |
| | | of this software and associated documentation files (the "Software"), to deal |
| | | in the Software without restriction, including without limitation the rights |
| | | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| | | copies of the Software, and to permit persons to whom the Software is |
| | | furnished to do so, subject to the following conditions: |
| | | |
| | | The above copyright notice and this permission notice shall be included in |
| | | all copies or substantial portions of the Software. |
| | | |
| | | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| | | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| | | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| | | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| | | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| | | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| | | THE SOFTWARE. |
New file |
| | |
| | | # |
| | | # 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 2022 Marcel Telka |
| | | # |
| | | |
| | | %include-2% |
| | | # The pyproject_installer is small, PEP 517 compliant, self contained Python |
| | | # project capable to build and install itself and other projects without |
| | | # dependency on non-core Python modules. It will be used to package full |
| | | # featured 'build' and 'installer' projects. |
| | | PYTHON_BOOTSTRAP = yes |
| | | |
| | | # https://github.com/stanislavlevin/pyproject_installer/issues/13 |
| | | TEST_STYLE = none |
| | | |
| | | # This project requires Python >= 3.8 |
| | | PYTHON_VERSIONS = 3.9 |
| | | %include-3% |
| | | # Allow the bootstrapping pyproject_installer to find its own modules |
| | | PYTHON_ENV += PYTHONPATH=$(@D)/src |
| | | |
| | | # Special self contained build command for bootstrap |
| | | COMPONENT_BUILD_CMD = $(PYTHON) -m pyproject_installer build |
| | | COMPONENT_BUILD_ARGS = |
| | | |
| | | # Special self contained install command for bootstrap |
| | | COMPONENT_INSTALL_CMD = $(PYTHON) -m pyproject_installer install |
| | | COMPONENT_INSTALL_ARGS = |
| | | COMPONENT_INSTALL_ARGS += --destdir $(PROTO_DIR) |
| | | |
| | | # pyproject_installer does not bytecompile after the install. Since we need |
| | | # pyc files we need to force that. |
| | | COMPONENT_POST_INSTALL_ACTION += $(PYTHON) -m compileall $(PROTO_DIR)/$(PYTHON_LIB) ; |
| | | %hook-no-license% |
| | | # https://github.com/stanislavlevin/pyproject_installer/issues/13 |
| | | curl -s "https://raw.githubusercontent.com/stanislavlevin/pyproject_installer/main/LICENSE" > "$DISTRIBUTION.license" |