From 19e182c53b0279bee3b55073266885b80b026089 Mon Sep 17 00:00:00 2001 From: grabowski Date: Tue, 12 Aug 2025 16:52:39 +0700 Subject: [PATCH] Version bump: 3.1.0 3.1.1 Version Updates: - Core application version (src/__init__.py) - Web API version (src/web_api.py) - Main application logging (src/main.py) - Package setup version (setup.py) - Documentation generation (docs workflow) - Release workflow example version - Badge generation script - Integration test version display - README.md badge version - Setup and deployment documentation - Git initialization scripts Patch Release (3.1.1): - Workflow token migration fixes (GITHUB_TOKEN GH_TOKEN) - Pip installation warning elimination - Improved workflow reliability and logging - Better Gitea compatibility - Enhanced error handling and validation Files Updated: - 13 files with version references updated - Consistent versioning across all components - Ready for release tagging and deployment --- .gitea/workflows/docs.yml | 4 ++-- .gitea/workflows/release.yml | 2 +- DEPLOYMENT_CHECKLIST.md | 2 +- GITEA_SETUP_SUMMARY.md | 4 ++-- README.md | 2 +- docs/GITEA_WORKFLOWS.md | 2 +- scripts/generate_badges.py | 2 +- scripts/init_git.bat | 2 +- scripts/init_git.sh | 2 +- setup.py | 2 +- src/__init__.py | 2 +- src/main.py | 2 +- src/web_api.py | 2 +- tests/test_integration.py | 2 +- 14 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/docs.yml b/.gitea/workflows/docs.yml index 5403b72..975330e 100644 --- a/.gitea/workflows/docs.yml +++ b/.gitea/workflows/docs.yml @@ -248,8 +248,8 @@ jobs: project = 'Northern Thailand Ping River Monitor' copyright = '2025, Ping River Monitor Team' author = 'Ping River Monitor Team' - version = '3.1.0' - release = '3.1.0' + version = '3.1.1' + release = '3.1.1' extensions = [ 'sphinx.ext.autodoc', diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index cb8a6fc..7142b34 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -7,7 +7,7 @@ on: workflow_dispatch: inputs: version: - description: 'Release version (e.g., v3.1.0)' + description: 'Release version (e.g., v3.1.1)' required: true type: string diff --git a/DEPLOYMENT_CHECKLIST.md b/DEPLOYMENT_CHECKLIST.md index eade10e..cdc8d2d 100644 --- a/DEPLOYMENT_CHECKLIST.md +++ b/DEPLOYMENT_CHECKLIST.md @@ -259,7 +259,7 @@ make health-check **Deployment Date**: ___________ **Deployed By**: ___________ -**Version**: v3.1.0 +**Version**: v3.1.1 **Environment**: ___________ **Sign-off**: diff --git a/GITEA_SETUP_SUMMARY.md b/GITEA_SETUP_SUMMARY.md index c5d7124..df480f6 100644 --- a/GITEA_SETUP_SUMMARY.md +++ b/GITEA_SETUP_SUMMARY.md @@ -222,12 +222,12 @@ Your repository is now equipped with: 2. **Configure deployment environments** (staging/production) 3. **Set up monitoring dashboards** for workflow metrics 4. **Configure notifications** for team collaboration -5. **Create your first release** with `git tag v3.1.0` +5. **Create your first release** with `git tag v3.1.1` Your **Northern Thailand Ping River Monitor** is now ready for professional development and deployment! ๐ŸŽŠ --- -**Workflow Version**: v3.1.0 +**Workflow Version**: v3.1.1 **Setup Date**: 2025-08-12 **Repository**: https://git.b4l.co.th/grabowski/Northern-Thailand-Ping-River-Monitor \ No newline at end of file diff --git a/README.md b/README.md index 55ca27d..0fe855e 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ A comprehensive real-time water level monitoring system for the Ping River Basin in Northern Thailand, covering Royal Irrigation Department (RID) stations from Chiang Dao to Nakhon Sawan with advanced data collection, storage, and visualization capabilities. -[![CI/CD](https://git.b4l.co.th/B4L/Northern-Thailand-Ping-River-Monitor/actions/workflows/ci.yml/badge.svg)](https://git.b4l.co.th/B4L/Northern-Thailand-Ping-River-Monitor/actions) [![Security](https://git.b4l.co.th/B4L/Northern-Thailand-Ping-River-Monitor/actions/workflows/security.yml/badge.svg)](https://git.b4l.co.th/B4L/Northern-Thailand-Ping-River-Monitor/actions) [![Documentation](https://git.b4l.co.th/B4L/Northern-Thailand-Ping-River-Monitor/actions/workflows/docs.yml/badge.svg)](https://git.b4l.co.th/B4L/Northern-Thailand-Ping-River-Monitor/actions) [![Python](https://img.shields.io/badge/Python-3.9+-blue.svg)](https://python.org) [![FastAPI](https://img.shields.io/badge/FastAPI-0.104+-green.svg)](https://fastapi.tiangolo.com) [![Docker](https://img.shields.io/badge/Docker-Ready-blue.svg)](https://docker.com) [![License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE) [![Version](https://img.shields.io/badge/Version-v3.1.0-blue.svg)](https://git.b4l.co.th/B4L/Northern-Thailand-Ping-River-Monitor/releases) +[![CI/CD](https://git.b4l.co.th/B4L/Northern-Thailand-Ping-River-Monitor/actions/workflows/ci.yml/badge.svg)](https://git.b4l.co.th/B4L/Northern-Thailand-Ping-River-Monitor/actions) [![Security](https://git.b4l.co.th/B4L/Northern-Thailand-Ping-River-Monitor/actions/workflows/security.yml/badge.svg)](https://git.b4l.co.th/B4L/Northern-Thailand-Ping-River-Monitor/actions) [![Documentation](https://git.b4l.co.th/B4L/Northern-Thailand-Ping-River-Monitor/actions/workflows/docs.yml/badge.svg)](https://git.b4l.co.th/B4L/Northern-Thailand-Ping-River-Monitor/actions) [![Python](https://img.shields.io/badge/Python-3.9+-blue.svg)](https://python.org) [![FastAPI](https://img.shields.io/badge/FastAPI-0.104+-green.svg)](https://fastapi.tiangolo.com) [![Docker](https://img.shields.io/badge/Docker-Ready-blue.svg)](https://docker.com) [![License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE) [![Version](https://img.shields.io/badge/Version-v3.1.1-blue.svg)](https://git.b4l.co.th/B4L/Northern-Thailand-Ping-River-Monitor/releases) ## ๐ŸŒŸ Features diff --git a/docs/GITEA_WORKFLOWS.md b/docs/GITEA_WORKFLOWS.md index 9b8a4bf..288a4be 100644 --- a/docs/GITEA_WORKFLOWS.md +++ b/docs/GITEA_WORKFLOWS.md @@ -297,6 +297,6 @@ make validate-workflows --- -**Workflow Version**: v3.1.0 +**Workflow Version**: v3.1.1 **Last Updated**: 2025-08-12 **Maintained By**: Ping River Monitor Team \ No newline at end of file diff --git a/scripts/generate_badges.py b/scripts/generate_badges.py index e8eb394..01fbfa5 100644 --- a/scripts/generate_badges.py +++ b/scripts/generate_badges.py @@ -29,7 +29,7 @@ def main(): "FastAPI": generate_badge_url("FastAPI", "0.104%2B", "green"), "Docker": generate_badge_url("Docker", "Ready", "blue"), "License": generate_badge_url("License", "MIT", "green"), - "Version": generate_badge_url("Version", "v3.1.0", "blue"), + "Version": generate_badge_url("Version", "v3.1.1", "blue"), } print("# Status Badges") diff --git a/scripts/init_git.bat b/scripts/init_git.bat index 5327fda..0975d25 100644 --- a/scripts/init_git.bat +++ b/scripts/init_git.bat @@ -13,7 +13,7 @@ REM Add all files git add . REM Initial commit -git commit -m "Initial commit: Northern Thailand Ping River Monitor v3.1.0 +git commit -m "Initial commit: Northern Thailand Ping River Monitor v3.1.1 Features: - Real-time water level monitoring for Ping River Basin diff --git a/scripts/init_git.sh b/scripts/init_git.sh index 473ed46..3ecbd29 100644 --- a/scripts/init_git.sh +++ b/scripts/init_git.sh @@ -66,7 +66,7 @@ fi git add . # Initial commit -git commit -m "Initial commit: Northern Thailand Ping River Monitor v3.1.0 +git commit -m "Initial commit: Northern Thailand Ping River Monitor v3.1.1 Features: - Real-time water level monitoring for Ping River Basin diff --git a/setup.py b/setup.py index 3028ae7..aabf88a 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ for req in requirements: setup( name="northern-thailand-ping-river-monitor", - version="3.1.0", + version="3.1.1", author="Ping River Monitor Team", author_email="contact@example.com", description="Real-time water level monitoring system for the Ping River Basin in Northern Thailand", diff --git a/src/__init__.py b/src/__init__.py index 55b605d..990a718 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -6,7 +6,7 @@ A comprehensive real-time water level monitoring system for the Ping River Basin in Northern Thailand, covering Royal Irrigation Department (RID) stations. """ -__version__ = "3.1.0" +__version__ = "3.1.1" __author__ = "Ping River Monitor Team" __description__ = "Northern Thailand Ping River Monitoring System" diff --git a/src/main.py b/src/main.py index 7a73374..7c9a012 100644 --- a/src/main.py +++ b/src/main.py @@ -297,7 +297,7 @@ Examples: ) logger.info("๐Ÿ”๏ธ Northern Thailand Ping River Monitor starting...") - logger.info(f"Version: 3.1.0") + logger.info(f"Version: 3.1.1") logger.info(f"Log level: {args.log_level}") try: diff --git a/src/web_api.py b/src/web_api.py index bbb4ff3..d3156b9 100644 --- a/src/web_api.py +++ b/src/web_api.py @@ -143,7 +143,7 @@ async def lifespan(app: FastAPI): app = FastAPI( title="Northern Thailand Ping River Monitor API", description="Real-time water level monitoring system for Northern Thailand's Ping River Basin stations", - version="3.1.0", + version="3.1.1", lifespan=lifespan ) diff --git a/tests/test_integration.py b/tests/test_integration.py index ed8e8d6..a5cd6c3 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -165,7 +165,7 @@ def test_logging(): def main(): """Run all tests""" - print("๐Ÿงช Running integration tests for Northern Thailand Ping River Monitor v3.1.0") + print("๐Ÿงช Running integration tests for Northern Thailand Ping River Monitor v3.1.1") print("=" * 60) tests = [