Aurélien Larcher
2021-03-10 e45ea27a1f7fb939840d1d3e513e18c35f16d70b
Add -37 and -39 to constantly and update python macros + transform

* transforms: add python3 mediator

* shared-macros: add macros to select Python versions

* constantly: add -37 and -39
1 files added
6 files modified
109 ■■■■ changed files
components/python/constantly/Makefile 36 ●●●● patch | view | raw | blame | history
components/python/constantly/constantly-PYVER.p5m 1 ●●●● patch | view | raw | blame | history
components/python/constantly/manifests/generic-manifest.p5m 25 ●●●●● patch | view | raw | blame | history
components/python/constantly/manifests/sample-manifest.p5m 18 ●●●●● patch | view | raw | blame | history
components/python/constantly/pkg5 6 ●●●● patch | view | raw | blame | history
make-rules/shared-macros.mk 18 ●●●●● patch | view | raw | blame | history
transforms/defaults 5 ●●●●● patch | view | raw | blame | history
components/python/constantly/Makefile
@@ -25,29 +25,29 @@
BUILD_STYLE=setup.py
BUILD_BITS=NO_ARCH
PYTHON_ALL=yes
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME=        constantly
COMPONENT_VERSION=    15.1.0
COMPONENT_SUMMARY=    'Symbolic constants in Python'
COMPONENT_DESCRIPTION=    'Constantly is a library that provides symbolic constant support. It includes collections and constants with text, numeric, and bit flag values.'
COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.gz
COMPONENT_ARCHIVE_HASH=    \
    sha256:4e2d23bd0d0379710e238774aadfbcf79e5e19c145285cd007b66218631d6502
COMPONENT_ARCHIVE_URL=    $(call pypi_url)
COMPONENT_PROJECT_URL=    https://github.com/twisted/constantly
COMPONENT_CLASSIFICATION= Development/Python
COMPONENT_FMRI=    library/python/constantly
COMPONENT_LICENSE=    MIT
COMPONENT_LICENSE_FILE=    LICENSE
COMPONENT_NAME=         constantly
COMPONENT_VERSION=      15.1.0
COMPONENT_REVISION=     1
COMPONENT_FMRI=         library/python/constantly
COMPONENT_SUMMARY=      Symbolic constants in Python
COMPONENT_CLASSIFICATION=Development/Python
COMPONENT_SRC=          $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=      $(COMPONENT_SRC).tar.gz
COMPONENT_ARCHIVE_HASH= \
    sha256:586372eb92059873e29eba4f9dec8381541b4d3834660707faf8ba59146dfc35
COMPONENT_ARCHIVE_URL=  $(call pypi_url)
COMPONENT_PROJECT_URL=  https://github.com/twisted/constantly
COMPONENT_LICENSE=      MIT
COMPONENT_LICENSE_FILE= LICENSE
PYTHON_VERSIONS=    2.7 3.5
TEST_TARGET = $(NO_TESTS)
TEST_TARGET=$(NO_TESTS)
include $(WS_MAKE_RULES)/common.mk
# Auto-generated dependencies
REQUIRED_PACKAGES += runtime/python-27
REQUIRED_PACKAGES += runtime/python-35
REQUIRED_PACKAGES += runtime/python-37
REQUIRED_PACKAGES += runtime/python-39
components/python/constantly/constantly-PYVER.p5m
@@ -15,7 +15,6 @@
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)-$(PYV)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=pkg.description value="$(COMPONENT_DESCRIPTION)"
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)
components/python/constantly/manifests/generic-manifest.p5m
New file
@@ -0,0 +1,25 @@
#
# 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 2020 <contributor>
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_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/constantly-$(COMPONENT_VERSION)-py$(PYVER).egg-info/PKG-INFO
file path=usr/lib/python$(PYVER)/vendor-packages/constantly-$(COMPONENT_VERSION)-py$(PYVER).egg-info/SOURCES.txt
file path=usr/lib/python$(PYVER)/vendor-packages/constantly-$(COMPONENT_VERSION)-py$(PYVER).egg-info/dependency_links.txt
file path=usr/lib/python$(PYVER)/vendor-packages/constantly-$(COMPONENT_VERSION)-py$(PYVER).egg-info/pbr.json
file path=usr/lib/python$(PYVER)/vendor-packages/constantly-$(COMPONENT_VERSION)-py$(PYVER).egg-info/top_level.txt
file path=usr/lib/python$(PYVER)/vendor-packages/constantly/__init__.py
file path=usr/lib/python$(PYVER)/vendor-packages/constantly/_constants.py
file path=usr/lib/python$(PYVER)/vendor-packages/constantly/_version.py
components/python/constantly/manifests/sample-manifest.p5m
@@ -10,7 +10,7 @@
#
#
# Copyright 2018 <contributor>
# Copyright 2020 <contributor>
#
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
@@ -38,3 +38,19 @@
file path=usr/lib/python3.5/vendor-packages/constantly/__init__.py
file path=usr/lib/python3.5/vendor-packages/constantly/_constants.py
file path=usr/lib/python3.5/vendor-packages/constantly/_version.py
file path=usr/lib/python3.7/vendor-packages/constantly-$(COMPONENT_VERSION)-py3.7.egg-info/PKG-INFO
file path=usr/lib/python3.7/vendor-packages/constantly-$(COMPONENT_VERSION)-py3.7.egg-info/SOURCES.txt
file path=usr/lib/python3.7/vendor-packages/constantly-$(COMPONENT_VERSION)-py3.7.egg-info/dependency_links.txt
file path=usr/lib/python3.7/vendor-packages/constantly-$(COMPONENT_VERSION)-py3.7.egg-info/pbr.json
file path=usr/lib/python3.7/vendor-packages/constantly-$(COMPONENT_VERSION)-py3.7.egg-info/top_level.txt
file path=usr/lib/python3.7/vendor-packages/constantly/__init__.py
file path=usr/lib/python3.7/vendor-packages/constantly/_constants.py
file path=usr/lib/python3.7/vendor-packages/constantly/_version.py
file path=usr/lib/python3.9/vendor-packages/constantly-$(COMPONENT_VERSION)-py3.9.egg-info/PKG-INFO
file path=usr/lib/python3.9/vendor-packages/constantly-$(COMPONENT_VERSION)-py3.9.egg-info/SOURCES.txt
file path=usr/lib/python3.9/vendor-packages/constantly-$(COMPONENT_VERSION)-py3.9.egg-info/dependency_links.txt
file path=usr/lib/python3.9/vendor-packages/constantly-$(COMPONENT_VERSION)-py3.9.egg-info/pbr.json
file path=usr/lib/python3.9/vendor-packages/constantly-$(COMPONENT_VERSION)-py3.9.egg-info/top_level.txt
file path=usr/lib/python3.9/vendor-packages/constantly/__init__.py
file path=usr/lib/python3.9/vendor-packages/constantly/_constants.py
file path=usr/lib/python3.9/vendor-packages/constantly/_version.py
components/python/constantly/pkg5
@@ -2,11 +2,15 @@
    "dependencies": [
        "SUNWcs",
        "runtime/python-27",
        "runtime/python-35"
        "runtime/python-35",
        "runtime/python-37",
        "runtime/python-39"
    ],
    "fmris": [
        "library/python/constantly-27",
        "library/python/constantly-35",
        "library/python/constantly-37",
        "library/python/constantly-39",
        "library/python/constantly"
    ],
    "name": "constantly"
make-rules/shared-macros.mk
@@ -177,6 +177,24 @@
PYTHON_VERSIONS_ALL= $(PYTHON2_VERSIONS) $(PYTHON3_VERSIONS)
PYTHON2_ONLY?=no
PYTHON3_ONLY?=no
PYTHON_ALL?=no
ifneq ($(strip $(PYTHON2_ONLY)),no)
PYTHON_VERSION    =    $(PYTHON2_VERSION)
PYTHON_VERSIONS    =    $(PYTHON2_VERSIONS)
else
ifneq ($(strip $(PYTHON3_ONLY)),no)
PYTHON_VERSION    =    $(PYTHON3_VERSION)
PYTHON_VERSIONS    =    $(PYTHON3_VERSIONS)
else
ifneq ($(strip $(PYTHON_ALL)),no)
PYTHON_VERSIONS    =    $(PYTHON_VERSIONS_ALL)
endif
endif
endif
# PYTHON3_SOABI variable defines the naming scheme
# of python3 extension libraries: cpython or abi3.
# Currently, most of the components use cpython naming scheme by default,
transforms/defaults
@@ -141,6 +141,11 @@
<transform link mediator=python mediator-version=2.7 -> default mediator-priority vendor>
#
# Set the default Python 3.x for mediated links
#
<transform link mediator=python3 mediator-version=3.9 -> default mediator-priority vendor>
#
# Set the default Perl for mediated links
#
<transform link mediator=perl mediator-version=5.22 -> default mediator-priority vendor>