diff --git a/.img/license.svg b/.img/license.svg new file mode 100644 index 0000000..e973ce5 --- /dev/null +++ b/.img/license.svg @@ -0,0 +1 @@ +LICENSELICENSECoopyleftCoopyleft \ No newline at end of file diff --git a/.img/pypi.svg b/.img/pypi.svg new file mode 100644 index 0000000..876b86d --- /dev/null +++ b/.img/pypi.svg @@ -0,0 +1 @@ +pypipypi0.3.60.3.6 \ No newline at end of file diff --git a/.img/python.svg b/.img/python.svg new file mode 100644 index 0000000..1f34829 --- /dev/null +++ b/.img/python.svg @@ -0,0 +1 @@ +pythonpython3.10, 3.113.10, 3.11 \ No newline at end of file diff --git a/scripts/generate_badges.sh b/scripts/generate_badges.sh new file mode 100755 index 0000000..c58d9e5 --- /dev/null +++ b/scripts/generate_badges.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env bash + +set -eu + +project_root="$(cd "$(dirname $(dirname "$0"))" && pwd)" + +get_version () { + cat "${project_root}/mobilizon_reshare/VERSION" +} + +python -m pybadges \ + --left-text="python" \ + --right-text="3.10, 3.11" \ + --whole-link="https://www.python.org/" \ + --browser \ + --logo='https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/python.svg' \ + --embed-logo=yes + +python -m pybadges \ + --left-text="pypi" \ + --right-text="$(get_version)" \ + --whole-link="https://pypi.org/project/mobilizon-reshare/" \ + --browser + +python -m pybadges \ + --left-text="LICENSE" \ + --right-text="Coopyleft" \ + --whole-link="https://github.com/Tech-Workers-Coalition-Italia/mobilizon-reshare/blob/master/LICENSE" \ + --browser