mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 23:12:02 +08:00
970bbeb3b5
Changelog since 0.9.6.1: - add product version number to the PRODID tag in iCalendar output - add support for GEO tags in vCards - various bugfixes and compatibility improvements Also need to update setup.cfg at build time to insert the version to allow the package to build. Otherwise we get ``` 2026-04-21T08:17:17.9341927Z File "/builder/staging_dir/hostpkg/lib/python3.14/site-packages/setuptools/config/setupcfg.py", line 296, in __setitem__ 2026-04-21T08:17:17.9342520Z parsed = self.parsers.get(option_name, lambda x: x)(value) 2026-04-21T08:17:17.9343117Z File "/builder/staging_dir/hostpkg/lib/python3.14/site-packages/setuptools/config/setupcfg.py", line 602, in _parse_version 2026-04-21T08:17:17.9343777Z return expand.version(self._parse_attr(value, self.package_dir, self.root_dir)) 2026-04-21T08:17:17.9344201Z ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2026-04-21T08:17:17.9344938Z File "/builder/staging_dir/hostpkg/lib/python3.14/site-packages/setuptools/config/setupcfg.py", line 421, in _parse_attr 2026-04-21T08:17:17.9345544Z return expand.read_attr(attr_desc, package_dir, root_dir) 2026-04-21T08:17:17.9345876Z ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2026-04-21T08:17:17.9346409Z File "/builder/staging_dir/hostpkg/lib/python3.14/site-packages/setuptools/config/expand.py", line 191, in read_attr 2026-04-21T08:17:17.9346947Z return getattr(module, attr_name) 2026-04-21T08:17:17.9347261Z AttributeError: module 'vobject' has no attribute 'VERSION' 2026-04-21T08:17:17.9598878Z ``` Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
41 lines
1.0 KiB
Makefile
41 lines
1.0 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:=vobject
|
|
PKG_VERSION:=0.9.9
|
|
PKG_RELEASE:=1
|
|
PKG_LICENSE:=Apache-2.0
|
|
|
|
PYPI_NAME:=$(PKG_NAME)
|
|
PKG_HASH:=ac44e5d7e2079d84c1d52c50a615b9bec4b1ba958608c4c7fe40cbf33247b38e
|
|
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
|
|
|
|
include ../pypi.mk
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include ../python3-package.mk
|
|
|
|
define Package/python3-vobject
|
|
SUBMENU:=Python
|
|
SECTION:=lang
|
|
CATEGORY:=Languages
|
|
TITLE:=VObject
|
|
URL:=http://eventable.github.io/vobject/
|
|
DEPENDS:=+python3 +python3-dateutil
|
|
endef
|
|
|
|
define Package/python3-vobject/description
|
|
vCard and vCalendar support for Python
|
|
endef
|
|
|
|
define Build/Prepare
|
|
$(call Build/Prepare/Default)
|
|
$(SED) 's/version = attr:.*/version = $(PKG_VERSION)/' $(PKG_BUILD_DIR)/setup.cfg
|
|
endef
|
|
|
|
$(eval $(call Py3Package,python3-vobject))
|
|
$(eval $(call BuildPackage,python3-vobject))
|
|
$(eval $(call BuildPackage,python3-vobject-src))
|