Changeset View
Changeset View
Standalone View
Standalone View
bin/pypi-check-versions
#!/bin/bash | #!/usr/bin/env bash | ||||
mr -m run bash -c ' | mr -m run bash -c ' | ||||
if [[ $(basename $PWD) =~ ^(swh-docs|swh-py-template)$ ]]; then | if [[ $(basename $PWD) =~ ^(swh-docs|swh-py-template)$ ]]; then | ||||
echo SKIP $(basename $PWD) | echo SKIP $(basename $PWD) | ||||
else | else | ||||
if [ -f setup.py ] ; then | if [ -f setup.py ] ; then | ||||
PKG=$(python3 setup.py --name) | PKG=$(python3 setup.py --name) | ||||
if [ -n "$PKG" ]; then | if [ -n "$PKG" ]; then | ||||
PYPI=v$(http https://pypi.org/pypi/$PKG/json | jq -r .info.version) | PYPI=v$(http https://pypi.org/pypi/$PKG/json | jq -r .info.version) | ||||
Show All 10 Lines |