Marcel Telka
2023-08-13 4230a7452cffd0a65a2f16084d78c92f879a3575
Add looseversion Python project

5 files added
177 ■■■■■ changed files
components/python/looseversion/Makefile 37 ●●●●● patch | view | raw | blame | history
components/python/looseversion/looseversion-PYVER.p5m 37 ●●●●● patch | view | raw | blame | history
components/python/looseversion/manifests/sample-manifest.p5m 37 ●●●●● patch | view | raw | blame | history
components/python/looseversion/pkg5 11 ●●●●● patch | view | raw | blame | history
components/python/looseversion/test/results-all.master 55 ●●●●● patch | view | raw | blame | history
components/python/looseversion/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 looseversion
#
BUILD_STYLE = pyproject
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME =        looseversion
HUMAN_VERSION =            1.3.0
COMPONENT_SUMMARY =        looseversion - Version numbering for anarchists and software realists
COMPONENT_PROJECT_URL =        https://github.com/effigies/looseversion
COMPONENT_ARCHIVE_URL =        \
    https://files.pythonhosted.org/packages/64/7e/f13dc08e0712cc2eac8e56c7909ce2ac280dbffef2ffd87bd5277ce9d58b/looseversion-1.3.0.tar.gz
COMPONENT_ARCHIVE_HASH =    \
    sha256:ebde65f3f6bb9531a81016c6fef3eb95a61181adc47b7f949e9c0ea47911669e
COMPONENT_LICENSE =        PSF-2.0
COMPONENT_LICENSE_FILE =    LICENSE
include $(WS_MAKE_RULES)/common.mk
# Auto-generated dependencies
PYTHON_REQUIRED_PACKAGES += library/python/hatchling
PYTHON_REQUIRED_PACKAGES += runtime/python
TEST_REQUIRED_PACKAGES.python += library/python/pytest
components/python/looseversion/looseversion-PYVER.p5m
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 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/looseversion-$(HUMAN_VERSION).dist-info/METADATA
file path=usr/lib/python$(PYVER)/vendor-packages/looseversion-$(HUMAN_VERSION).dist-info/WHEEL
file path=usr/lib/python$(PYVER)/vendor-packages/looseversion-$(HUMAN_VERSION).dist-info/licenses/LICENSE
file path=usr/lib/python$(PYVER)/vendor-packages/looseversion/__init__.py
file path=usr/lib/python$(PYVER)/vendor-packages/looseversion/__init__.pyi
file path=usr/lib/python$(PYVER)/vendor-packages/looseversion/py.typed
# 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/looseversion/manifests/sample-manifest.p5m
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.
#
#
# Copyright 2023 <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/looseversion-$(HUMAN_VERSION).dist-info/METADATA
file path=usr/lib/python$(PYVER)/vendor-packages/looseversion-$(HUMAN_VERSION).dist-info/WHEEL
file path=usr/lib/python$(PYVER)/vendor-packages/looseversion-$(HUMAN_VERSION).dist-info/licenses/LICENSE
file path=usr/lib/python$(PYVER)/vendor-packages/looseversion/__init__.py
file path=usr/lib/python$(PYVER)/vendor-packages/looseversion/__init__.pyi
file path=usr/lib/python$(PYVER)/vendor-packages/looseversion/py.typed
# 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/looseversion/pkg5
New file
@@ -0,0 +1,11 @@
{
    "dependencies": [
        "library/python/hatchling-39",
        "runtime/python-39"
    ],
    "fmris": [
        "library/python/looseversion-39",
        "library/python/looseversion"
    ],
    "name": "looseversion"
}
components/python/looseversion/test/results-all.master
New file
@@ -0,0 +1,55 @@
ROOT: tox-gh-actions won't override envlist because tox is not running in GitHub Actions
py$(PYV): remove tox env folder $(@D)/.tox/py$(PYV)
py$(PYV): commands[0]> python -m pytest tests.py
============================= test session starts ==============================
platform sunos5 -- Python $(PYTHON_VERSION).X -- $(@D)/.tox/py$(PYV)/bin/python
cachedir: .tox/py$(PYV)/.pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$(@D)/.hypothesis/examples')
rootdir: $(@D)
asyncio: mode=strict
collecting ... collected 37 items
tests.py::black PASSED
tests.py::mypy PASSED
tests.py::mypy-status PASSED
tests.py::test_LooseVersion_compat[LooseVersion-0.0.0-0.0.0] PASSED
tests.py::test_LooseVersion_compat[LooseVersion-0.0.0-1.0.0] PASSED
tests.py::test_LooseVersion_compat[LooseVersion2-0.0.0-0.0.0] PASSED
tests.py::test_LooseVersion_compat[LooseVersion2-0.0.0-1.0.0] PASSED
tests.py::test_cmp[LooseVersion-0.960923-2.2beta29--1] PASSED
tests.py::test_cmp[LooseVersion-1.13++-5.5.kw--1] PASSED
tests.py::test_cmp[LooseVersion-1.5.1-1.5.2b2--1] PASSED
tests.py::test_cmp[LooseVersion-161-3.10a-1] PASSED
tests.py::test_cmp[LooseVersion-2g6-11g--1] PASSED
tests.py::test_cmp[LooseVersion-3.2.pl0-3.1.1.6-1] PASSED
tests.py::test_cmp[LooseVersion-3.4j-1996.07.12--1] PASSED
tests.py::test_cmp[LooseVersion-8.02-8.02-0] PASSED
tests.py::test_cmp[LooseVersion2-0.960923-2.2beta29--1] PASSED
tests.py::test_cmp[LooseVersion2-1.13++-5.5.kw--1] PASSED
tests.py::test_cmp[LooseVersion2-1.5.1-1.5.2b2--1] PASSED
tests.py::test_cmp[LooseVersion2-161-3.10a-1] PASSED
tests.py::test_cmp[LooseVersion2-2g6-11g--1] PASSED
tests.py::test_cmp[LooseVersion2-3.2.pl0-3.1.1.6-1] PASSED
tests.py::test_cmp[LooseVersion2-3.4j-1996.07.12--1] PASSED
tests.py::test_cmp[LooseVersion2-8.02-8.02-0] PASSED
tests.py::test_py2_rules[0.3.1@v0.3.1-0.3@v0.3--1] PASSED
tests.py::test_py2_rules[0.3@v0.3-0.3.1@v0.3.1-1] PASSED
tests.py::test_py2_rules[13.0-beta3-13.0.1-1] PASSED
tests.py::test_py2_rules[13.0.1-13.0-beta3--1] PASSED
tests.py::test_split[LooseVersion-1.13++-version4] PASSED
tests.py::test_split[LooseVersion-1.5.1-version0] PASSED
tests.py::test_split[LooseVersion-1.5.2b2-version1] PASSED
tests.py::test_split[LooseVersion-161-version2] PASSED
tests.py::test_split[LooseVersion-3.10a-version3] PASSED
tests.py::test_split[LooseVersion2-1.13++-version4] PASSED
tests.py::test_split[LooseVersion2-1.5.1-version0] PASSED
tests.py::test_split[LooseVersion2-1.5.2b2-version1] PASSED
tests.py::test_split[LooseVersion2-161-version2] PASSED
tests.py::test_split[LooseVersion2-3.10a-version3] PASSED
===================================== mypy =====================================
Success: no issues found in 1 source file
======== 37 passed ========
  py$(PYV): OK
  congratulations :)