Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python-uci: Update to 0.10.0 #25079

Open
Nemirtingas opened this issue Oct 3, 2024 · 6 comments
Open

python-uci: Update to 0.10.0 #25079

Nemirtingas opened this issue Oct 3, 2024 · 6 comments

Comments

@Nemirtingas
Copy link

Maintainer: @BKPepe

Description:
Update to 0.10.0 (allows creation of anonymous config) https://gitlab.nic.cz/turris/pyuci/-/tags/v0.10.0

@BKPepe
Copy link
Member

BKPepe commented Oct 3, 2024

Thanks for creating such an issue, but I haven't seen that Turris has been using that version since it was released, and that's for more than one year already. Most likely, Turris package managers such as @muzikr or @Zatharalex should look into it. It's their package, after all, and they use it daily on their routers.

@Nemirtingas
Copy link
Author

Hi,
Any tips on how I could update it in my openwrt image? At my work here, they build their own openwrt image with embeded packages and kernel modules. I'm creating an ansible python module to manipulate uci configuration through python-uci.

I've updated the Makefile of feeds/packages/lang/python/python-uci like so:

#
# Copyright (C) 2018-2022 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-uci
PKG_VERSION:=0.10.0
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://gitlab.nic.cz/turris/pyuci
PKG_SOURCE_DATE:=2023-08-03
PKG_SOURCE_VERSION:=89c638444207277cab8ac76c302c18df9775d1e2
PKG_MIRROR_HASH:=5806d2ff9001c6286e8ae7a89cc506eda62d749d147be227145f60744fc2e947

#PYPI_NAME:=pyuci
#PKG_HASH:=847b8f365d1b5ff5e241cd0a666dff23098be27021b5aca982a48235dc4aeca2

PKG_MAINTAINER:=Josef Schlehofer <[email protected]>
PKG_LICENSE:=GPL-3.0-or-later
PKG_LICENSE_FILES:=LICENSE

include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk

define Package/python3-uci
  SECTION:=lang
  CATEGORY:=Languages
  SUBMENU:=Python
  TITLE:=Python UCI bindings
  URL:=https://gitlab.nic.cz/turris/pyuci/
  DEPENDS:=+python3-light +libuci
endef

define Package/python3-uci/description
  Python3 bindings for Unified Configuration Interface.
endef

$(eval $(call Py3Package,python3-uci))
$(eval $(call BuildPackage,python3-uci))
$(eval $(call BuildPackage,python3-uci-src))

It seems to build fine but fails with the following error: No such file or directory: '/workdir/openwrt/build_dir/target-x86_64_musl/python-uci-0.10.0//openwrt-build/python_uci-0.10.0-*.whl'
The file in that directory is named pyuci-0.10.0-cp311-cp311-linux_x86_64.whl

Any idea?

@BKPepe
Copy link
Member

BKPepe commented Oct 3, 2024

For the beginning, I think @shenek should upload new version of PyUCI to PyPI, because there isnt the latest one, which you can see here: https://pypi.org/project/pyuci/

@Nemirtingas
Copy link
Author

Nemirtingas commented Oct 3, 2024

Fixed my compile issue, replace PKG_NAME:=python-uci with PKG_NAME:=pyuci, that'll be my workaround until the package is officially updated.

@Carmezim
Copy link

Carmezim commented Feb 3, 2025

Any plans to release v0.10.0 on PyPI?

@shenek
Copy link
Contributor

shenek commented Feb 20, 2025

Hi, version 0.10.2 should be available in PyPI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants