Skip to content
Open
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
2 changes: 1 addition & 1 deletion python/py-altgraph/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ checksums md5 103802ef2ad240dfa98886a909cc54d2 \
rmd160 3f6cc99212babb09ead8a0b1ab1d74f8ea0b84db \
sha256 c87b395dd12fabde9c99573a9749d67da8d29ef9de0125c7f536699b4a9bc9e7

python.versions 37 310 311 312 313 314
python.versions 27 37 310 311 312 313 314

if {$subport ne $name} {
test.run yes
Expand Down
7 changes: 5 additions & 2 deletions python/py-lxml/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,16 @@ python.versions 27 37 310 311 312 313 314
if {${name} ne ${subport}} {
if {${python.version} == 27} {
version 5.0.2
revision 0
revision 1
checksums rmd160 edd377fe2e214c69db4e468583ac507cf71853a7 \
sha256 6399703c40ba53e2c3b72fdb56cb908d2b83c08082ecf17de839b27e68d1e598 \
size 3862433

depends_build-append \
port:py${python.version}-modulegraph \
} elseif {${python.version} == 37} {
version 5.4.0
revision 0
revision 1
checksums rmd160 388615fe1ee020bdbc0fc6556a47a94843578e9d \
sha256 d12832e1dbea4be280b22fd0ea7c9b87f0d8fc51ba06e92dc62d52f804f78ebd \
size 3679479
Expand Down
7 changes: 6 additions & 1 deletion python/py-modulegraph/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ PortGroup python 1.0

name py-modulegraph
version 0.19.7
revision 1
categories-append devel
license MIT
maintainers {jmr @jmroot} openmaintainer
Expand All @@ -25,14 +26,18 @@ checksums md5 87234ee031830f93aaf175ea21e35013 \
rmd160 d0cc393f8c6a437a84c4b69550ebc7a3553c2b80 \
sha256 9ad8a81148ba1d90ade66617a153786f7d7cf6a88de83ee28e251183122c2a57

python.versions 37 310 311 312 313 314
python.versions 27 37 310 311 312 313 314

if {$subport ne $name} {
depends_lib-append port:py${python.version}-altgraph
if {${python.version} < 38} {
# Needs pkg_resources at runtime when importlib.metadata is not available
depends_lib-append port:py${python.version}-setuptools
}
if {${python.version} < 33} {
# Byte-form string literals aren't available before Python 3.3
patchfiles-append patch-norb.diff
}
test.run yes
python.test_framework unittest
}
11 changes: 11 additions & 0 deletions python/py-modulegraph/files/patch-norb.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- modulegraph/util.py.orig 2025-11-21 12:36:05.000000000 -0800
+++ modulegraph/util.py 2026-04-04 16:44:53.000000000 -0700
@@ -115,7 +115,7 @@ def imp_walk(name):
raise ImportError("No module named %s" % (name,))


-cookie_re = re.compile(rb"coding[:=]\s*([-\w.]+)")
+cookie_re = re.compile(r"coding[:=]\s*([-\w.]+)")
if sys.version_info[0] == 2:
default_encoding = "ascii"
else:
Loading