Marcel Telka
2022-11-09 1b86dc08918f2e9c637233ace930bbfe0e27768f
Move test disable for bootstrapped Python projects to pyproject.mk

12 files modified
41 ■■■■ changed files
components/python/build/python-integrate-project.conf 3 ●●●●● patch | view | raw | blame | history
components/python/flit_core/python-integrate-project.conf 3 ●●●●● patch | view | raw | blame | history
components/python/importlib_metadata/python-integrate-project.conf 3 ●●●●● patch | view | raw | blame | history
components/python/packaging/python-integrate-project.conf 3 ●●●●● patch | view | raw | blame | history
components/python/pep517/python-integrate-project.conf 3 ●●●●● patch | view | raw | blame | history
components/python/pyproject_installer/python-integrate-project.conf 3 ●●●●● patch | view | raw | blame | history
components/python/setuptools/python-integrate-project.conf 3 ●●●●● patch | view | raw | blame | history
components/python/setuptools_scm/python-integrate-project.conf 3 ●●●●● patch | view | raw | blame | history
components/python/tomli/python-integrate-project.conf 3 ●●●●● patch | view | raw | blame | history
components/python/typing_extensions/python-integrate-project.conf 3 ●●●●● patch | view | raw | blame | history
components/python/wheel/python-integrate-project.conf 3 ●●●●● patch | view | raw | blame | history
make-rules/pyproject.mk 8 ●●●●● patch | view | raw | blame | history
components/python/build/python-integrate-project.conf
@@ -16,9 +16,6 @@
%include-2%
# Since we cannot use the 'build' package to build itself we need to bootstrap.
PYTHON_BOOTSTRAP = yes
# Disable tests because required packages are not available during bootstrap
TEST_STYLE = none
%hook-manifest%
# usr/bin/pyproject-build-3.7 does not use importlib.metadata.  It uses importlib_metadata instead.
printf '<transform file path=usr/bin/pyproject-build-3\\.7$ -> add pkg.depend.bypass-generate .*/importlib/(64/)?metadata.* >\n' >> "$DISTRIBUTION-PYVER.p5m"
components/python/flit_core/python-integrate-project.conf
@@ -20,6 +20,3 @@
# - pep517
# - typing_extensions
PYTHON_BOOTSTRAP = yes
# Disable tests because required packages are not available during bootstrap
TEST_STYLE = none
components/python/importlib_metadata/python-integrate-project.conf
@@ -19,6 +19,3 @@
# - build
# - wheel
PYTHON_BOOTSTRAP = yes
# Disable tests because required packages are not available during bootstrap
TEST_STYLE = none
components/python/packaging/python-integrate-project.conf
@@ -18,9 +18,6 @@
# bootstrapped too.
# - setuptools_scm
PYTHON_BOOTSTRAP = yes
# Disable tests because required packages are not available during bootstrap
TEST_STYLE = none
%hook-manifest%
(
    cat "$SOURCE_DIR/LICENSE"
components/python/pep517/python-integrate-project.conf
@@ -18,6 +18,3 @@
# bootstrapped too.
# - build
PYTHON_BOOTSTRAP = yes
# Disable tests because required packages are not available during bootstrap
TEST_STYLE = none
components/python/pyproject_installer/python-integrate-project.conf
@@ -18,9 +18,6 @@
# Python modules and it needs to be bootstrapped.
PYTHON_BOOTSTRAP = yes
# https://github.com/stanislavlevin/pyproject_installer/issues/13
TEST_STYLE = none
# This project requires Python >= 3.8.  Once we add support for new Python
# version (>= 3.8), such version needs to be added to PYTHON_VERSIONS below.
# Once we obsolete Python 3.7 the PYTHON_VERSIONS line should be removed.
components/python/setuptools/python-integrate-project.conf
@@ -23,9 +23,6 @@
# - packaging
# - setuptools_scm
PYTHON_BOOTSTRAP = yes
# Disable tests because required packages are not available during bootstrap
TEST_STYLE = none
%hook-manifest%
# usr/bin/pyproject-build-3.7 does not use importlib.metadata.  It uses importlib_metadata instead.
#printf '<transform file path=usr/bin/pyproject-build-3\\.7$ -> add pkg.depend.bypass-generate .*/importlib/(64/)?metadata.* >\n' >> "$DISTRIBUTION-PYVER.p5m"
components/python/setuptools_scm/python-integrate-project.conf
@@ -18,6 +18,3 @@
# bootstrapped too.
# - importlib_metadata
PYTHON_BOOTSTRAP = yes
# Disable tests because required packages are not available during bootstrap
TEST_STYLE = none
components/python/tomli/python-integrate-project.conf
@@ -18,6 +18,3 @@
# bootstrapped too.
# - build
PYTHON_BOOTSTRAP = yes
# Disable tests because required packages are not available during bootstrap
TEST_STYLE = none
components/python/typing_extensions/python-integrate-project.conf
@@ -18,6 +18,3 @@
# bootstrapped too.
# - setuptools_scm
PYTHON_BOOTSTRAP = yes
# Disable tests because required packages are not available during bootstrap
TEST_STYLE = none
components/python/wheel/python-integrate-project.conf
@@ -18,9 +18,6 @@
# bootstrapped too.
# - packaging
PYTHON_BOOTSTRAP = yes
# Disable tests because required packages are not available during bootstrap
TEST_STYLE = none
%hook-manifest%
# usr/bin/wheel-3.7 does not use importlib.metadata.  It uses importlib_metadata instead.
printf '<transform file path=usr/bin/wheel-3\\.7$ -> add pkg.depend.bypass-generate .*/importlib/(64/)?metadata.* >\n' >> "$DISTRIBUTION-PYVER.p5m"
make-rules/pyproject.mk
@@ -13,6 +13,14 @@
# Copyright 2022 Marcel Telka
#
ifeq ($(strip $(PYTHON_BOOTSTRAP)),yes)
# Until we implement support for testing bootstrapped projects we simply
# disable tests for them because required packages (e.g. tox and/or pytest) are
# very likely not available during bootstrap so testing would very likely fail
# anyway.
TEST_STYLE = none
endif
include $(WS_MAKE_RULES)/setup.py.mk
PYTHON_BOOTSTRAP ?= no