Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9338747
pypi-check-versions
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
483 B
Subscribers
None
pypi-check-versions
View Options
#!/usr/bin/env bash
mr
-m
run
bash
-c
'
if [[ $(basename $PWD) =~ ^(swh-docs|swh-py-template)$ ]]; then
echo SKIP $(basename $PWD)
else
if [ -f setup.py ] ; then
PKG=$(python3 setup.py --name)
if [ -n "$PKG" ]; then
PYPI=v$(http https://pypi.org/pypi/$PKG/json | jq -r .info.version)
LASTTAG=$(git tag --sort v:refname | tail -n1)
if [ v"$LASTTAG" == v"$PYPI" ]; then
echo "OK $PKG $LASTTAG"
else
(>&2 echo "$PKG $LASTTAG (git) != $PYPI (pypi)")
fi
fi
fi
fi
'
|
grep
-v
'mr run'
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Jul 4 2025, 9:05 AM (6 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3287756
Attached To
rDENV Development environment
Event Timeline
Log In to Comment