Skip to content
Snippets Groups Projects
Select Git revision
  • b435310762bd795b47fcb409930083317237c6a2
  • master default protected
  • chrome-manifest-v3
  • feature/migrate-cordova-13
  • feat/improve-network-scan
  • feat/force-migration-check
  • develop
  • feature/encrypted_comment
  • feature/android_api_19
  • gitlab_migration_1
  • rml8
  • v1.7.15-rc1
  • v1.7.14
  • v1.7.13
  • v1.7.12
  • v1.7.11
  • v1.7.10
  • v1.7.9
  • v1.7.8
  • v1.7.7
  • v1.7.6
  • v1.7.5
  • v1.7.4
  • v1.7.3
  • v1.7.2
  • v1.7.1
  • v1.7.0
  • v1.7.0-rc2
  • v1.7.0-rc1
  • v1.6.12
  • v1.6.11
31 results

wallet-controllers.js

Blame
  • release.sh 757 B
    #!/bin/bash
    
    #__version__     = '0.20.1dev9'
    current=`grep -P "__version__ = \"\d+.\d+.\d+(\w*)\"" duniterpy/__init__.py | grep -oP "\d+.\d+.\d+(\w*)"`
    echo "Current version: $current"
    
    if [[ $1 =~ ^[0-9]+.[0-9]+.[0-9]+[0-9a-z]*$ ]]; then
      # update version in duniterpy
      sed -i "s/__version__ = \".*\"/__version__ = \"$1\"/g" duniterpy/__init__.py
      # update version in pyproject.toml
      poetry version "$1"
      # update version in documentation configuration
      sed -i "s/version = \".*\"/version = \"$1\"/g" docs/conf.py
      sed -i "s/release = \".*\"/release = \"$1\"/g" docs/conf.py
      # commit changes and add version tag
      git commit pyproject.toml duniterpy/__init__.py docs/conf.py -m "$1"
      git tag "$1" -a -m "$1"
    else
      echo "Wrong version format"
    fi