mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 23:12:02 +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>
49 lines
1.4 KiB
Makefile
49 lines
1.4 KiB
Makefile
#
|
|
# Copyright (C) 2019-2021 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=python-sqlalchemy
|
|
PKG_VERSION:=2.0.23
|
|
PKG_RELEASE:=1
|
|
|
|
PYPI_NAME:=SQLAlchemy
|
|
PYPI_SOURCE_NAME:=sqlalchemy
|
|
PKG_HASH:=c1bda93cbbe4aa2aa0aa8655c5aeda505cd219ff3e8da91d1d329e143e4aff69
|
|
|
|
PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
|
|
PKG_LICENSE:=MIT
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
PKG_CPE_ID:=cpe:/a:sqlalchemy:sqlalchemy
|
|
|
|
PKG_BUILD_DEPENDS:=python-cython/host
|
|
|
|
include ../pypi.mk
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../python3-package.mk
|
|
|
|
define Package/python3-sqlalchemy
|
|
SECTION:=lang
|
|
CATEGORY:=Languages
|
|
SUBMENU:=Python
|
|
TITLE:=Database Abstraction Library
|
|
URL:=https://www.sqlalchemy.org
|
|
DEPENDS:=+python3 +python3-typing-extensions
|
|
endef
|
|
|
|
define Package/python3-sqlalchemy/description
|
|
SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that
|
|
gives application developers the full power and flexibility of SQL.
|
|
SQLAlchemy provides a full suite of well known enterprise-level
|
|
persistence patterns, designed for efficient and high-performing
|
|
database access, adapted into a simple and Pythonic domain language.
|
|
endef
|
|
|
|
$(eval $(call Py3Package,python3-sqlalchemy))
|
|
$(eval $(call BuildPackage,python3-sqlalchemy))
|
|
$(eval $(call BuildPackage,python3-sqlalchemy-src))
|