Skip to contentSkip to conversation

package/python-ujson: needs python3

PATCH In review Fabrice Fontaine 2 participants 2 messages Sep 27, 2021 – Oct 4, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/python-ujson: needs python3

python 2 support has been dropped since version 3.0.0 and
https://github.com/ultrajson/ultrajson/commit/0673d237cf5589a2a059771f694d5fbc5a293b13
resulting in the following build failure since bump to version 4.1.0 in commit a47f332a20bf3f79ef4903c8ddd2b7917217e354:

File "setup.py", line 37, in <module>

    with open("README.rst", encoding="utf-8") as f:

TypeError: 'encoding' is an invalid keyword argument for this function

Fixes:
- http://autobuild.buildroot.org/results/0737c4db63efe2205cb01984af72c270447fe085

---
 package/python-ujson/Config.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/python-ujson/Config.in +2 -1
index d185c98532..aee1d75fce 100644
@@ -1,7 +1,8 @@
 config BR2_PACKAGE_PYTHON_UJSON
 	bool "python-ujson"
+	depends on BR2_PACKAGE_PYTHON3
 	help
 	  UltraJSON is an ultra fast JSON encoder and decoder written
-	  in pure C with bindings for Python 2.5+ and 3.
+	  in pure C with bindings for Python 3.
 
 	  https://pypi.python.org/pypi/ujson
Signature · 6 lines
2.33.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Reviewed-by on v1 1/1
#1 lore raw

Hello,

Quoted 33 lines · Fabrice Fontaine

python 2 support has been dropped since version 3.0.0 and
https://github.com/ultrajson/ultrajson/commit/0673d237cf5589a2a059771f694d5fbc5a293b13
resulting in the following build failure since bump to version 4.1.0 in commit a47f332a20bf3f79ef4903c8ddd2b7917217e354:

File "setup.py", line 37, in <module>

    with open("README.rst", encoding="utf-8") as f:

TypeError: 'encoding' is an invalid keyword argument for this function

Fixes:
- http://autobuild.buildroot.org/results/0737c4db63efe2205cb01984af72c270447fe085

---
 package/python-ujson/Config.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/python-ujson/Config.in +2 -2
index d185c98532..aee1d75fce 100644
@@ -1,7 +1,8 @@
 config BR2_PACKAGE_PYTHON_UJSON
        bool "python-ujson"
+       depends on BR2_PACKAGE_PYTHON3
        help
          UltraJSON is an ultra fast JSON encoder and decoder written
-         in pure C with bindings for Python 2.5+ and 3.
+         in pure C with bindings for Python 3.
 
          https://pypi.python.org/pypi/ujson
--
Quoted 2 lines

2.33.0

Regards,
Asaf.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot