mirror of
https://github.com/openwrt/packages.git
synced 2026-06-01 23:42:06 +08:00
61d3d57a47
Since setuptools 69.3.0, it supports PEP625, based on this, package name and as well, the wheel should used lowercase instead of uppercase and also dots (.) should use underscore (_) More details can be found here: https://discuss.python.org/t/amending-pep-427-and-pep-625-on-package-normalization-rules/17226 Fixes: ``` Successfully built flask-2.0.2-py3-none-any.whl Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/builder/shared-workdir/build/sdk/staging_dir/hostpkg/lib/python3.11/site-packages/installer/__main__.py", line 98, in <module> _main(sys.argv[1:], "python -m installer") File "/builder/shared-workdir/build/sdk/staging_dir/hostpkg/lib/python3.11/site-packages/installer/__main__.py", line 86, in _main with WheelFile.open(args.wheel) as source: File "/builder/shared-workdir/build/sdk/staging_dir/target-aarch64_cortex-a53_musl/usr/lib/python3.11/contextlib.py", line 137, in __enter__ return next(self.gen) ^^^^^^^^^^^^^^ File "/builder/shared-workdir/build/sdk/staging_dir/hostpkg/lib/python3.11/site-packages/installer/sources.py", line 162, in open with zipfile.ZipFile(path) as f: ^^^^^^^^^^^^^^^^^^^^^ File "/builder/shared-workdir/build/sdk/staging_dir/target-aarch64_cortex-a53_musl/usr/lib/python3.11/zipfile.py", line 1311, in __init__ self.fp = io.open(file, filemode) ^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a53_musl/pypi/Flask-2.0.2//openwrt-build/Flask-2.0.2-*.whl' ``` Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=python-werkzeug
|
|
PKG_VERSION:=2.3.6
|
|
PKG_RELEASE:=1
|
|
|
|
PYPI_NAME:=Werkzeug
|
|
PYPI_SOURCE_NAME:=werkzeug
|
|
PKG_HASH:=98c774df2f91b05550078891dee5f0eb0cb797a522c757a2452b9cee5b202330
|
|
|
|
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
PKG_LICENSE_FILES:=LICENSE.rst
|
|
PKG_CPE_ID:=cpe:/a:palletsprojects:werkzeug
|
|
|
|
include ../pypi.mk
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../python3-package.mk
|
|
|
|
define Package/python3-werkzeug
|
|
SECTION:=lang
|
|
CATEGORY:=Languages
|
|
SUBMENU:=Python
|
|
TITLE:=Comprehensive WSGI web application library
|
|
URL:=https://palletsprojects.com/p/werkzeug/
|
|
DEPENDS:=+python3 +python3-markupsafe
|
|
endef
|
|
|
|
define Package/python3-werkzeug/description
|
|
Werkzeug is a comprehensive WSGI web application library. It began as a
|
|
simple collection of various utilities for WSGI applications and has
|
|
become one of the most advanced WSGI utility libraries.
|
|
endef
|
|
|
|
$(eval $(call Py3Package,python3-werkzeug))
|
|
$(eval $(call BuildPackage,python3-werkzeug))
|
|
$(eval $(call BuildPackage,python3-werkzeug-src))
|