Marcel Telka
2024-04-09 c6d0bafc2c4edf009d1125fffa750ee71be34118
Add eval_type_backport Python project

5 files added
146 ■■■■■ changed files
components/python/eval_type_backport/Makefile 37 ●●●●● patch | view | raw | blame | history
components/python/eval_type_backport/eval_type_backport-PYVER.p5m 39 ●●●●● patch | view | raw | blame | history
components/python/eval_type_backport/manifests/sample-manifest.p5m 39 ●●●●● patch | view | raw | blame | history
components/python/eval_type_backport/pkg5 13 ●●●●● patch | view | raw | blame | history
components/python/eval_type_backport/test/results-all.master 18 ●●●●● patch | view | raw | blame | history
components/python/eval_type_backport/Makefile
New file
@@ -0,0 +1,37 @@
#
# 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 eval_type_backport
#
BUILD_STYLE = pyproject
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME =        eval_type_backport
HUMAN_VERSION =            0.1.3
COMPONENT_SUMMARY =        eval_type_backport - Like \`typing._eval_type\`, but lets older Python versions use newer typing features.
COMPONENT_PROJECT_URL =        https://github.com/alexmojaki/eval_type_backport
COMPONENT_ARCHIVE_HASH =    \
    sha256:d83ee225331dfa009493cec1f3608a71550b515ee4749abe78da14e3c5e314f5
COMPONENT_LICENSE =        MIT
COMPONENT_LICENSE_FILE =    LICENSE.txt
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
components/python/eval_type_backport/eval_type_backport-PYVER.p5m
New file
@@ -0,0 +1,39 @@
#
# 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/eval_type_backport-$(HUMAN_VERSION).dist-info/LICENSE.txt
file path=usr/lib/python$(PYVER)/vendor-packages/eval_type_backport-$(HUMAN_VERSION).dist-info/METADATA
file path=usr/lib/python$(PYVER)/vendor-packages/eval_type_backport-$(HUMAN_VERSION).dist-info/WHEEL
file path=usr/lib/python$(PYVER)/vendor-packages/eval_type_backport-$(HUMAN_VERSION).dist-info/top_level.txt
file path=usr/lib/python$(PYVER)/vendor-packages/eval_type_backport/__init__.py
file path=usr/lib/python$(PYVER)/vendor-packages/eval_type_backport/eval_type_backport.py
file path=usr/lib/python$(PYVER)/vendor-packages/eval_type_backport/py.typed
file path=usr/lib/python$(PYVER)/vendor-packages/eval_type_backport/version.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
components/python/eval_type_backport/manifests/sample-manifest.p5m
New file
@@ -0,0 +1,39 @@
#
# 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/eval_type_backport-$(HUMAN_VERSION).dist-info/LICENSE.txt
file path=usr/lib/python$(PYVER)/vendor-packages/eval_type_backport-$(HUMAN_VERSION).dist-info/METADATA
file path=usr/lib/python$(PYVER)/vendor-packages/eval_type_backport-$(HUMAN_VERSION).dist-info/WHEEL
file path=usr/lib/python$(PYVER)/vendor-packages/eval_type_backport-$(HUMAN_VERSION).dist-info/top_level.txt
file path=usr/lib/python$(PYVER)/vendor-packages/eval_type_backport/__init__.py
file path=usr/lib/python$(PYVER)/vendor-packages/eval_type_backport/eval_type_backport.py
file path=usr/lib/python$(PYVER)/vendor-packages/eval_type_backport/py.typed
file path=usr/lib/python$(PYVER)/vendor-packages/eval_type_backport/version.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
components/python/eval_type_backport/pkg5
New file
@@ -0,0 +1,13 @@
{
    "dependencies": [
        "library/python/setuptools-39",
        "library/python/setuptools-scm-39",
        "library/python/wheel-39",
        "runtime/python-39"
    ],
    "fmris": [
        "library/python/eval-type-backport",
        "library/python/eval-type-backport-39"
    ],
    "name": "eval_type_backport"
}
components/python/eval_type_backport/test/results-all.master
New file
@@ -0,0 +1,18 @@
py$(PYV): remove tox env folder $(@D)/.tox/py$(PYV)
py$(PYV): commands[0]> python -m pytest tests
============================= test session starts ==============================
platform sunos5 -- Python $(PYTHON_VERSION).X -- $(@D)/.tox/py$(PYV)/bin/python
cachedir: .tox/py$(PYV)/.pytest_cache
rootdir: $(@D)
configfile: pyproject.toml
collecting ... collected 5 items
tests/test_eval_type_backport.py::test_eval_type_backport PASSED
tests/test_eval_type_backport.py::test_other_type_error PASSED
tests/test_eval_type_backport.py::test_other_or_type_error PASSED
tests/test_eval_type_backport.py::test_working_or PASSED
tests/test_eval_type_backport.py::test_subscript PASSED
======== 5 passed ========
  py$(PYV): OK
  congratulations :)