File tree Expand file tree Collapse file tree 4 files changed +13
-6
lines changed
Expand file tree Collapse file tree 4 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pip install bicchiere
1515
1616## [ Project home page] ( https://bicchiere.eu.pythonanywhere.com " Project Home Page - Demo App ")
1717
18- Current version: 0.2.10
18+ Current version: 0.2.11
1919
2020## A drop from Bicchiere
2121
Original file line number Diff line number Diff line change @@ -916,7 +916,7 @@ class Bicchiere(BicchiereMiddleware):
916916 Main WSGI application class
917917 """
918918
919- __version__ = (0 , 2 , 10 )
919+ __version__ = (0 , 2 , 11 )
920920
921921 __author__ = "Domingo E. Savoretti"
922922
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22# -*- coding: utf-8 -*-
33
4+
45import os
56import time
67
@@ -9,12 +10,18 @@ def usage():
910 return - 1
1011
1112def main ():
13+ """
14+ Auxiliary tool that updates version, builds packages, uploads them to Pypi and updates github repo.
15+ """
16+
1217 os .system ("clear" )
1318
1419 args = os .sys .argv [1 :]
15- if len (args ) != 3 :
20+ if len (args ) < 3 :
1621 return usage ()
17- major , minor , revision = args
22+ major , minor , revision = args [:3 ]
23+ commit_message = args [3 ] if len (args ) > 3 else ""
24+
1825 print (f"Attemping to build bicchiere version: { major } .{ minor } .{ revision } " )
1926
2027 from bicchiere import Bicchiere
@@ -72,7 +79,7 @@ def main():
7279 time .sleep (1 )
7380 print ("Updating git." )
7481 os .system ("git add ." )
75- os .system (f"git commit -m'version { version } '" )
82+ os .system (f"git commit -m'version { version } { commit_message } '" )
7683 os .system (f"git tag v{ version } " )
7784 os .system ("git push" )
7885
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66
77[project ]
88name = " bicchiere"
9- version = " 0.2.10 "
9+ version = " 0.2.11 "
1010description = " Yet another python web (WSGI) micro-framework"
1111readme = " README.md"
1212authors = [{ name = " Domingo E Savoretti" , email = " esavoretti@gmail.com" }]
You can’t perform that action at this time.
0 commit comments