Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lang/python/python-argcomplete/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=python-argcomplete
PKG_VERSION:=3.2.1
PKG_VERSION:=3.6.3
PKG_RELEASE:=1

PYPI_NAME:=argcomplete
PKG_HASH:=437f67fb9b058da5a090df505ef9be0297c4883993f3f56cb186ff087778cfb4
PKG_HASH:=62e8ed4fd6a45864acc8235409461b72c9a28ee785a2011cc5eb78318786c89c

PKG_LICENSE:=Apache-2.0
PKG_LICENSE_FILES:=LICENSE.rst
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>

PKG_BUILD_DEPENDS:=python-setuptools-scm/host
PKG_BUILD_DEPENDS:=python-hatchling/host python-hatch-vcs/host

include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
Expand Down

This file was deleted.

6 changes: 3 additions & 3 deletions lang/python/python-babel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=python-babel
PKG_VERSION:=2.17.0
PKG_RELEASE:=3
PKG_VERSION:=2.18.0
PKG_RELEASE:=1

PYPI_NAME:=babel
PKG_HASH:=0c54cffb19f690cdcc52a3b50bcbf71e07a808d1c80d549f2459b9d2cf0afb9d
PKG_HASH:=b80b99a14bd085fcacfa15c9165f651fbb3406e66cc603abf11c5750937c992d

PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
PKG_LICENSE:=BSD-3-Clause
Expand Down
24 changes: 24 additions & 0 deletions lang/python/python-babel/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/sh
[ "$1" = python3-babel ] || exit 0
python3 - << 'EOF'
import babel
assert babel.__version__, "babel version is empty"

from babel import Locale
from babel.dates import format_date, format_datetime
from babel.numbers import format_number, format_currency
import datetime

locale = Locale.parse("en_US")
assert locale.territory == "US"

d = datetime.date(2024, 1, 15)
formatted = format_date(d, locale="en_US")
assert "2024" in formatted, f"date format missing year: {formatted}"

n = format_number(1234567.89, locale="en_US")
assert "1,234,567" in n, f"number format unexpected: {n}"

c = format_currency(9.99, "USD", locale="en_US")
assert "$" in c or "USD" in c, f"currency format unexpected: {c}"
EOF
5 changes: 3 additions & 2 deletions lang/python/python-charset-normalizer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=python-charset-normalizer
PKG_VERSION:=3.3.2
PKG_VERSION:=3.4.7
PKG_RELEASE:=1

PYPI_NAME:=charset-normalizer
PKG_HASH:=f30c3cb33b24454a82faecaf01b19c18562b1e89558fb6c56de4d9118a032fd5
PYPI_SOURCE_NAME:=charset_normalizer
PKG_HASH:=ae89db9e5f98a11a4bf50407d4363e7b09b31e55bc117b4f7d80aab97ba009e5

PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
Expand Down
6 changes: 3 additions & 3 deletions lang/python/python-eventlet/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=python-eventlet
PKG_VERSION:=0.40.4
PKG_RELEASE:=2
PKG_VERSION:=0.41.0
PKG_RELEASE:=1

PYPI_NAME:=eventlet
PKG_HASH:=69bef712b1be18b4930df6f0c495d2a882bf7b63aa111e7b6eeff461cfcaf26f
PKG_HASH:=35df85f0ccd3e73effb6fd9f1ceae46b500b966c7da1817289c323a307bd397b

PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
PKG_LICENSE:=MIT
Expand Down
4 changes: 2 additions & 2 deletions lang/python/python-jsonschema/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=python-jsonschema
PKG_VERSION:=4.22.0
PKG_VERSION:=4.26.0
PKG_RELEASE:=1

PYPI_NAME:=jsonschema
PKG_HASH:=5b22d434a45935119af990552c862e5d6d564e8f6601206b305a61fdf661a2b7
PKG_HASH:=0c26707e2efad8aa1bfc5b7ce170f3fccc2e4918ff85989ba9ffa9facb2be326

PKG_MAINTAINER:=Javier Marcet <javier@marcet.info>
PKG_LICENSE:=MIT
Expand Down
6 changes: 3 additions & 3 deletions lang/python/python-networkx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=python-networkx
PKG_VERSION:=3.5
PKG_VERSION:=3.6.1
PKG_RELEASE:=1

PYPI_NAME:=networkx
PKG_HASH:=d4c6f9cf81f52d69230866796b82afbccdec3db7ae4fbd1b65ea750feed50037
PKG_HASH:=26b7c357accc0c8cde558ad486283728b65b6a95d85ee1cd66bafab4c8168509

PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE.txt
Expand All @@ -27,7 +27,7 @@ define Package/python3-networkx
SUBMENU:=Python
TITLE:=Creating and manipulating graphs and networks
URL:=https://networkx.org/
DEPENDS:=+python3-light +python3-uuid +python3-xml
DEPENDS:=+python3-light +python3-logging +python3-uuid +python3-xml
endef

define Package/python3-networkx/description
Expand Down
23 changes: 23 additions & 0 deletions lang/python/python-networkx/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh
[ "$1" = python3-networkx ] || exit 0
python3 - << 'EOF'
import networkx
assert networkx.__version__, "networkx version is empty"

import networkx as nx

G = nx.Graph()
G.add_nodes_from([1, 2, 3, 4])
G.add_edges_from([(1, 2), (2, 3), (3, 4)])

assert G.number_of_nodes() == 4
assert G.number_of_edges() == 3
assert nx.is_connected(G)

path = nx.shortest_path(G, source=1, target=4)
assert path == [1, 2, 3, 4], f"unexpected path: {path}"

D = nx.DiGraph()
D.add_edges_from([(1, 2), (2, 3)])
assert list(nx.topological_sort(D)) == [1, 2, 3]
EOF
11 changes: 7 additions & 4 deletions lang/python/python-paho-mqtt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=python-paho-mqtt
PKG_VERSION:=1.6.1
PKG_RELEASE:=2
PKG_VERSION:=2.1.0
PKG_RELEASE:=1

PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
PKG_LICENSE:=EPL-2.0 Eclipse Distribution License v1.0
PKG_LICENSE_FILES:=epl-v20 edl-v10 LICENSE.txt

PYPI_NAME:=paho-mqtt
PKG_HASH:=2a8291c81623aec00372b5a85558a372c747cbca8e9934dfe218638b8eefc26f
PYPI_SOURCE_NAME:=paho_mqtt
PKG_HASH:=12d6e7511d4137555a3f6ea167ae846af2c7357b10bc6fa4f7c3968fc1723834

PKG_BUILD_DEPENDS:=python-hatchling/host

include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
Expand All @@ -25,7 +28,7 @@ define Package/python3-paho-mqtt
SUBMENU:=Python
TITLE:=MQTT version 5.0/3.1.1 client class
URL:=http://eclipse.org/paho
DEPENDS:=+python3-light +python3-uuid
DEPENDS:=+python3-light +python3-uuid +python3-logging +python3-urllib
endef

define Package/python3-paho-mqtt/description
Expand Down
27 changes: 27 additions & 0 deletions lang/python/python-paho-mqtt/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/sh
[ "$1" = python3-paho-mqtt ] || exit 0

python3 - << 'EOF'
import paho.mqtt.client as mqtt

# Verify version
assert hasattr(mqtt, '__version__') or hasattr(mqtt.Client, '__module__')

# Test basic client instantiation
client = mqtt.Client(mqtt.CallbackAPIVersion.VERSION2)
assert client is not None

# Test that the client has expected methods
assert callable(getattr(client, 'connect', None))
assert callable(getattr(client, 'publish', None))
assert callable(getattr(client, 'subscribe', None))
assert callable(getattr(client, 'disconnect', None))

# Test MQTTMessage
msg = mqtt.MQTTMessage(topic=b'test/topic')
msg.payload = b'hello'
assert msg.topic == 'test/topic'
assert msg.payload == b'hello'

print("paho-mqtt OK")
EOF
6 changes: 4 additions & 2 deletions lang/python/python-xmltodict/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,18 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=python-xmltodict
PKG_VERSION:=0.13.0
PKG_VERSION:=1.0.4
PKG_RELEASE:=1

PYPI_NAME:=xmltodict
PKG_HASH:=341595a488e3e01a85a9d8911d8912fd922ede5fecc4dce437eb4b6c8d037e56
PKG_HASH:=6d94c9f834dd9e44514162799d344d815a3a4faec913717a9ecbfa5be1bb8e61

PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE

PKG_BUILD_DEPENDS:=python-setuptools/host

include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk
Expand Down
29 changes: 29 additions & 0 deletions lang/python/python-xmltodict/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/sh
[ "$1" = python3-xmltodict ] || exit 0

python3 - << 'EOF'
import xmltodict

# Basic XML to dict conversion
xml = """<root>
<name>test</name>
<value>42</value>
<items>
<item>a</item>
<item>b</item>
</items>
</root>"""
data = xmltodict.parse(xml)
assert data['root']['name'] == 'test'
assert data['root']['value'] == '42'
assert isinstance(data['root']['items']['item'], list)
assert data['root']['items']['item'] == ['a', 'b']

# Dict to XML conversion
d = {'doc': {'title': 'Hello', 'body': 'World'}}
result = xmltodict.unparse(d)
assert '<title>Hello</title>' in result
assert '<body>World</body>' in result

print("xmltodict OK")
EOF
Loading