Skip to content

Commit

Permalink
add badges
Browse files Browse the repository at this point in the history
  • Loading branch information
fishinthecalculator committed Jan 7, 2024
1 parent 5ebaa04 commit 9794b00
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions .img/license.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .img/pypi.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .img/python.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions scripts/generate_badges.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9794b00

Please sign in to comment.