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
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
Loading