Marcel Telka
2023-08-16 9499da3545f76ded4f3acd68db184a6c761824c7
Add jaraco.versioning Python project

7 files added
190 ■■■■■ changed files
components/python/jaraco.versioning/Makefile 45 ●●●●● patch | view | raw | blame | history
components/python/jaraco.versioning/jaraco.versioning-PYVER.p5m 37 ●●●●● patch | view | raw | blame | history
components/python/jaraco.versioning/manifests/sample-manifest.p5m 37 ●●●●● patch | view | raw | blame | history
components/python/jaraco.versioning/patches/01-no-ruff.patch 13 ●●●●● patch | view | raw | blame | history
components/python/jaraco.versioning/pkg5 14 ●●●●● patch | view | raw | blame | history
components/python/jaraco.versioning/python-integrate-project.conf 16 ●●●●● patch | view | raw | blame | history
components/python/jaraco.versioning/test/results-all.master 28 ●●●●● patch | view | raw | blame | history
components/python/jaraco.versioning/Makefile
New file
@@ -0,0 +1,45 @@
#
# 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 jaraco.versioning
#
BUILD_STYLE = pyproject
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME =        jaraco.versioning
HUMAN_VERSION =            1.1.0
COMPONENT_SUMMARY =        jaraco.versioning - More sophisticated version manipulation (than packaging)
COMPONENT_PROJECT_URL =        https://github.com/jaraco/jaraco.versioning
COMPONENT_ARCHIVE_URL =        \
    https://files.pythonhosted.org/packages/5a/55/f40cf50537e6c9d7908fa2a80432f93f8427ab6f598bdcabec6c5ab8a37b/jaraco.versioning-1.1.0.tar.gz
COMPONENT_ARCHIVE_HASH =    \
    sha256:5ab6e6751157d31a6405036b3f8ee5a28f4d1df7244cd099aa788f4b57421d0f
COMPONENT_LICENSE =        MIT
COMPONENT_LICENSE_FILE =    LICENSE
include $(WS_MAKE_RULES)/common.mk
# Auto-generated dependencies
PYTHON_REQUIRED_PACKAGES += library/python/packaging
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-black
TEST_REQUIRED_PACKAGES.python += library/python/pytest-checkdocs
TEST_REQUIRED_PACKAGES.python += library/python/pytest-cov
TEST_REQUIRED_PACKAGES.python += library/python/pytest-enabler
TEST_REQUIRED_PACKAGES.python += library/python/pytest-mypy
components/python/jaraco.versioning/jaraco.versioning-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/jaraco.versioning-$(HUMAN_VERSION).dist-info/LICENSE
file path=usr/lib/python$(PYVER)/vendor-packages/jaraco.versioning-$(HUMAN_VERSION).dist-info/METADATA
file path=usr/lib/python$(PYVER)/vendor-packages/jaraco.versioning-$(HUMAN_VERSION).dist-info/WHEEL
file path=usr/lib/python$(PYVER)/vendor-packages/jaraco.versioning-$(HUMAN_VERSION).dist-info/top_level.txt
file path=usr/lib/python$(PYVER)/vendor-packages/jaraco/versioning.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/packaging-$(PYV)
components/python/jaraco.versioning/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/jaraco.versioning-$(HUMAN_VERSION).dist-info/LICENSE
file path=usr/lib/python$(PYVER)/vendor-packages/jaraco.versioning-$(HUMAN_VERSION).dist-info/METADATA
file path=usr/lib/python$(PYVER)/vendor-packages/jaraco.versioning-$(HUMAN_VERSION).dist-info/WHEEL
file path=usr/lib/python$(PYVER)/vendor-packages/jaraco.versioning-$(HUMAN_VERSION).dist-info/top_level.txt
file path=usr/lib/python$(PYVER)/vendor-packages/jaraco/versioning.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/packaging-$(PYV)
components/python/jaraco.versioning/patches/01-no-ruff.patch
New file
@@ -0,0 +1,13 @@
We have no pytest-ruff support yet.
see https://github.com/tikv/jemallocator/issues/58
--- jaraco.versioning-1.1.0/setup.cfg.orig
+++ jaraco.versioning-1.1.0/setup.cfg
@@ -36,7 +36,6 @@
     pytest-mypy >= 0.9.1; \
     python_implementation != "PyPy"
     pytest-enabler >= 1.3
-    pytest-ruff
 docs =
     sphinx >= 3.5
     jaraco.packaging >= 9
components/python/jaraco.versioning/pkg5
New file
@@ -0,0 +1,14 @@
{
    "dependencies": [
        "library/python/packaging-39",
        "library/python/setuptools-39",
        "library/python/setuptools-scm-39",
        "library/python/wheel-39",
        "runtime/python-39"
    ],
    "fmris": [
        "library/python/jaraco-versioning-39",
        "library/python/jaraco-versioning"
    ],
    "name": "jaraco.versioning"
}
components/python/jaraco.versioning/python-integrate-project.conf
New file
@@ -0,0 +1,16 @@
#
# 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 Marcel Telka
#
%patch% 01-no-ruff.patch
components/python/jaraco.versioning/test/results-all.master
New file
@@ -0,0 +1,28 @@
ROOT: tox-gh-actions won't override envlist because tox is not running in GitHub Actions
py$(PYV): remove tox env folder .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
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$(@D)/.hypothesis/examples')
rootdir: $(@D)
configfile: pytest.ini
asyncio: mode=strict
collecting ... collected 12 items
jaraco/versioning.py::versioning.SummableVersion PASSED
jaraco/versioning.py::versioning.SummableVersion.as_number PASSED
jaraco/versioning.py::versioning.SummableVersion.reset_less_significant PASSED
jaraco/versioning.py::versioning.Versioned.infer_next_version PASSED
jaraco/versioning.py::versioning.find PASSED
jaraco/versioning.py::versioning.rfind PASSED
jaraco/versioning.py::versioning.semver PASSED
tests/test_versioning.py::TestVersioning::test_defer_to_parent_tag PASSED
tests/test_versioning.py::TestVersioning::test_get_next_version PASSED
tests/test_versioning.py::TestVersioning::test_local_revision_not_tagged PASSED
tests/test_versioning.py::TestVersioning::test_tag_priority PASSED
tests/test_versioning.py::TestVersioning::test_tag_versions PASSED
======== 12 passed ========
  py$(PYV): OK
  congratulations :)