Skip to content

Commit 64e3af8

Browse files
committed
version 0.2.11 Updated make tool
1 parent 7eb4f95 commit 64e3af8

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

bicchiere.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

make.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
33

4+
45
import os
56
import time
67

@@ -9,12 +10,18 @@ def usage():
910
return -1
1011

1112
def 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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "bicchiere"
9-
version = "0.2.10"
9+
version = "0.2.11"
1010
description = "Yet another python web (WSGI) micro-framework"
1111
readme = "README.md"
1212
authors = [{ name = "Domingo E Savoretti", email = "esavoretti@gmail.com" }]

0 commit comments

Comments
 (0)