Kaynağa Gözat

package/python-setuptools-scm: needs python3

python-setuptools-scm dropped python 2 support since
https://github.com/pypa/setuptools_scm/commit/f0be71fbcf150bfc68e4169226399d6ae4da8f1b
resulting in the following build failure since bump to version 6.3.2 in
commit 12e3527fd97df9ae1b60b892c61d10ce291b7a00:

/buildroot/autobuild/instance-2/output-1/host/lib" INTLTOOL_PERL=/usr/bin/perl  /home/buildroot/autobuild/instance-2/output-1/host/bin/python setup.py build  )
  File "setup.py", line 22
    f"{type(self).__name__} is forbidden, "
                                          ^

Fixes:
 - http://autobuild.buildroot.org/results/2f6125993de364b4a44d259f16806e6dfd792402

With python 2 support dropped, python-backports-functools-lru-cache can no
longer be built, so drop it.

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Fabrice Fontaine 3 yıl önce
ebeveyn
işleme
31848ba595

+ 7 - 0
Config.in.legacy

@@ -146,6 +146,13 @@ endif
 
 comment "Legacy options removed in 2022.02"
 
+config BR2_PACKAGE_PYTHON_BACKPORTS_FUNCTOOLS_LRU_CACHE
+	bool "python-backports-functools-lru-cache package removed"
+	select BR2_LEGACY
+	help
+	  This package has been removed as python-setuptools-scm
+	  dropped support of python 2 since version 6.0.0.
+
 config BR2_PACKAGE_SYSTEMD_TMPFILES
 	bool "systemd tmpfiles support always enabled"
 	select BR2_LEGACY

+ 0 - 1
package/Config.in

@@ -939,7 +939,6 @@ menu "External python modules"
 	source "package/python-babel/Config.in"
 	source "package/python-backcall/Config.in"
 	source "package/python-backports-abc/Config.in"
-	source "package/python-backports-functools-lru-cache/Config.in"
 	source "package/python-backports-shutil-get-terminal-size/Config.in"
 	source "package/python-backports-ssl-match-hostname/Config.in"
 	source "package/python-bcrypt/Config.in"

+ 0 - 7
package/python-backports-functools-lru-cache/Config.in

@@ -1,7 +0,0 @@
-config BR2_PACKAGE_PYTHON_BACKPORTS_FUNCTOOLS_LRU_CACHE
-	bool "python-backports-functools-lru-cache"
-	depends on BR2_PACKAGE_PYTHON
-	help
-	  Backport of functools.lru_cache from Python 3.3
-
-	  https://github.com/jaraco/backports.functools_lru_cache

+ 0 - 5
package/python-backports-functools-lru-cache/python-backports-functools-lru-cache.hash

@@ -1,5 +0,0 @@
-# md5, sha256 from https://pypi.org/pypi/backports.functools_lru_cache/json
-md5	20f53f54cd3f04b3346ce75a54959754  backports.functools_lru_cache-1.5.tar.gz
-sha256	9d98697f088eb1b0fa451391f91afb5e3ebde16bbdb272819fd091151fda4f1a  backports.functools_lru_cache-1.5.tar.gz
-# Localy computed sha256 checksumms
-sha256	a55e2ffe9b44998e621d51d8c094bed09acc4b5236ee73d7df395a33ba3c18fd  LICENSE

+ 0 - 15
package/python-backports-functools-lru-cache/python-backports-functools-lru-cache.mk

@@ -1,15 +0,0 @@
-################################################################################
-#
-# python-backports-functools-lru-cache
-#
-################################################################################
-
-PYTHON_BACKPORTS_FUNCTOOLS_LRU_CACHE_VERSION = 1.5
-PYTHON_BACKPORTS_FUNCTOOLS_LRU_CACHE_SOURCE = backports.functools_lru_cache-$(PYTHON_BACKPORTS_FUNCTOOLS_LRU_CACHE_VERSION).tar.gz
-PYTHON_BACKPORTS_FUNCTOOLS_LRU_CACHE_SITE = https://files.pythonhosted.org/packages/57/d4/156eb5fbb08d2e85ab0a632e2bebdad355798dece07d4752f66a8d02d1ea
-PYTHON_BACKPORTS_FUNCTOOLS_LRU_CACHE_SETUP_TYPE = setuptools
-PYTHON_BACKPORTS_FUNCTOOLS_LRU_CACHE_DEPENDENCIES = host-python-setuptools-scm
-PYTHON_BACKPORTS_FUNCTOOLS_LRU_CACHE_LICENSE = MIT
-PYTHON_BACKPORTS_FUNCTOOLS_LRU_CACHE_LICENSE_FILES = LICENSE
-
-$(eval $(python-package))

+ 1 - 0
package/python-crontab/Config.in

@@ -1,5 +1,6 @@
 config BR2_PACKAGE_PYTHON_CRONTAB
 	bool "python-crontab"
+	depends on BR2_PACKAGE_PYTHON3 # python-dateutil -> host-python-setuptools-scm
 	select BR2_PACKAGE_PYTHON_DATEUTIL # runtime
 	help
 	  Crontab module for reading and writing crontab files and

+ 1 - 0
package/python-dateutil/Config.in

@@ -1,5 +1,6 @@
 config BR2_PACKAGE_PYTHON_DATEUTIL
 	bool "python-dateutil"
+	depends on BR2_PACKAGE_PYTHON3 # host-python-setuptools-scm
 	select BR2_PACKAGE_PYTHON_SIX
 	help
 	  Extensions to the standard Python datetime module.

+ 1 - 0
package/python-jaraco-classes/Config.in

@@ -1,5 +1,6 @@
 config BR2_PACKAGE_PYTHON_JARACO_CLASSES
 	bool "python-jaraco-classes"
+	depends on BR2_PACKAGE_PYTHON3 # host-python-setuptools-scm
 	select BR2_PACKAGE_PYTHON_SIX # runtime
 	help
 	  Utility functions for Python class constructs.

+ 1 - 0
package/python-jsonmodels/Config.in

@@ -1,5 +1,6 @@
 config BR2_PACKAGE_PYTHON_JSONMODELS
 	bool "python-jsonmodels"
+	depends on BR2_PACKAGE_PYTHON3 # python-dateutil -> host-python-setuptools-scm
 	select BR2_PACKAGE_PYTHON_DATEUTIL # runtime
 	select BR2_PACKAGE_PYTHON_SIX # runtime
 	help

+ 1 - 0
package/python-py/Config.in

@@ -1,5 +1,6 @@
 config BR2_PACKAGE_PYTHON_PY
 	bool "python-py"
+	depends on BR2_PACKAGE_PYTHON3 # host-python-setuptools-scm
 	help
 	  library with cross-python path, ini-parsing, io, code, log
 	  facilities.

+ 1 - 0
package/python-setuptools-scm-git-archive/python-setuptools-scm-git-archive.mk

@@ -11,5 +11,6 @@ PYTHON_SETUPTOOLS_SCM_GIT_ARCHIVE_SETUP_TYPE = setuptools
 PYTHON_SETUPTOOLS_SCM_GIT_ARCHIVE_LICENSE = MIT
 PYTHON_SETUPTOOLS_SCM_GIT_ARCHIVE_LICENSE_FILES = LICENSE
 HOST_PYTHON_SETUPTOOLS_SCM_GIT_ARCHIVE_DEPENDENCIES = host-python-setuptools-scm
+HOST_PYTHON_SETUPTOOLS_SCM_GIT_ARCHIVE_NEEDS_HOST_PYTHON = python3
 
 $(eval $(host-python-package))

+ 1 - 0
package/python-setuptools-scm/python-setuptools-scm.mk

@@ -11,5 +11,6 @@ PYTHON_SETUPTOOLS_SCM_LICENSE = MIT
 PYTHON_SETUPTOOLS_SCM_LICENSE_FILES = LICENSE
 PYTHON_SETUPTOOLS_SCM_SETUP_TYPE = setuptools
 HOST_PYTHON_SETUPTOOLS_SCM_DEPENDENCIES = host-python-packaging host-python-tomli
+HOST_PYTHON_SETUPTOOLS_SCM_NEEDS_HOST_PYTHON = python3
 
 $(eval $(host-python-package))

+ 1 - 0
package/python-xlib/Config.in

@@ -1,5 +1,6 @@
 config BR2_PACKAGE_PYTHON_XLIB
 	bool "python-xlib"
+	depends on BR2_PACKAGE_PYTHON3 # host-python-setuptools-scm
 	select BR2_PACKAGE_PYTHON_SIX # runtime
 	help
 	  XLib in pure Python (Py2/Py3 compatible)