Current Weather conditions and forcasts.
Features:
@@ -57,131 +57,131 @@
- Bug fixes
+ Bug fixes
- - Bug fixes related to build
+ - Bug fixes related to build
Thanks to
- - @hsbasu: multiple improvents related to build.
- - @soumyaDghosh: for bug fixes related to snap.
+ - @hsbasu: multiple improvents related to build.
+ - @soumyaDghosh: for bug fixes related to snap.
-
+
- Bug fixes
+ Bug fixes
- - Fix bug where some locations dosen't provide valid co-ordinates
- - Add website in about section
+ - Fix bug where some locations dosen't provide valid co-ordinates
+ - Add website in about section
-
-
+
+
- What's New
+ What's New
- - Introducing a new design with an entirely new app experience.
- - The new design follows a card design pattern, highlighting important data utilizing graphs and bars.
- - A new backend that is more optimized and offers a better user experience.
- - A new set of icons shipped with the app covers a wide range of conditions and is independent of system icons.
- - Now, mousam better scales with various screen sizes (desktop).
- - Covers more cities and locations.
- - The sunrise and sunset current time of the selected location is shown in the local time zone of the selected location.
- - Various bug fixes
+ - Introducing a new design with an entirely new app experience.
+ - The new design follows a card design pattern, highlighting important data utilizing graphs and bars.
+ - A new backend that is more optimized and offers a better user experience.
+ - A new set of icons shipped with the app covers a wide range of conditions and is independent of system icons.
+ - Now, mousam better scales with various screen sizes (desktop).
+ - Covers more cities and locations.
+ - The sunrise and sunset current time of the selected location is shown in the local time zone of the selected location.
+ - Various bug fixes
- Thanks to
+ Thanks to
- - @sabriunal: for bug fixes and translation-related changes.
- - @soumyaDghosh: for bug fixes related to snap.
- - @Nokse22: for fixes and creating new icons.
- - @hui1601: for fixing translation-related bugs.
- - @suryansh076: for helping with the new design.
- - And thanks to the folks who reported bugs on GitHub.
+ - @sabriunal: for bug fixes and translation-related changes.
+ - @soumyaDghosh: for bug fixes related to snap.
+ - @Nokse22: for fixes and creating new icons.
+ - @hui1601: for fixing translation-related bugs.
+ - @suryansh076: for helping with the new design.
+ - And thanks to the folks who reported bugs on GitHub.
-
-
+
+
- - Adds air-pollution info
- - Adds Snowfall summary
- - Adds forecast text in 5-day forecast
- - Follow system font scaling
- - UI Improvements
- - Various bug fixes
+ - Adds air-pollution info
+ - Adds Snowfall summary
+ - Adds forecast text in 5-day forecast
+ - Follow system font scaling
+ - UI Improvements
+ - Various bug fixes
-
-
+
+
- - Adds sunset/sunrise info
- - Add and remove city more quickly
- - Better error screens like - No internet!
- - UI Improvements
- - Various bug fixes
+ - Adds sunset/sunrise info
+ - Add and remove city more quickly
+ - Better error screens like - No internet!
+ - UI Improvements
+ - Various bug fixes
-
+
- - Adds 5 days forecast
- - Adds rain summary (rain quantity)
- - Fixes unit switching in forecast section
- - UI Improvements
- - Minor bug fixes
+ - Adds 5 days forecast
+ - Adds rain summary (rain quantity)
+ - Fixes unit switching in forecast section
+ - UI Improvements
+ - Minor bug fixes
-
-
+
+
- - Show today and tomorrow forecasts
- - Option:Use Imerial, Metric systems
- - Now switch location smoothly
- - Show notification (toast) on various events
- - UI Improvements
- - Minor bug fixes
- - Add Spanish translation, Thanks to Radical4ever
- - Update russian translation
- - Snap version is also available on snap-store, thanks to Soumyadeep Ghosh
+ - Show today and tomorrow forecasts
+ - Option:Use Imerial, Metric systems
+ - Now switch location smoothly
+ - Show notification (toast) on various events
+ - UI Improvements
+ - Minor bug fixes
+ - Add Spanish translation, Thanks to Radical4ever
+ - Update russian translation
+ - Snap version is also available on snap-store, thanks to Soumyadeep Ghosh
-
+
-
-
- - Use full country name.
- - Fix units.
- - UI Improvements.
- - Minor bug fixes.
-
-
-
-
-
- What's New
-
- - Option:Use Custom api-key.
- - UI Improvements.
- - Show states in search results.
- - Various bug fixes.
- - Add Turkish translation. Thanks to Sabri Ünal.
- - Add Russian translation. Thanks to Сергей Ворон.
-
-
-
+
+
+ - Use full country name.
+ - Fix units.
+ - UI Improvements.
+ - Minor bug fixes.
+
+
+
+
+
+ What's New
+
+ - Option:Use Custom api-key.
+ - UI Improvements.
+ - Show states in search results.
+ - Various bug fixes.
+ - Add Turkish translation. Thanks to Sabri Ünal.
+ - Add Russian translation. Thanks to Сергей Ворон.
+
+
+
-
- New features and updates
-
- - Use dynamic gradient backgrounds based on current weather.
- - See forcasts in beautiful card view.
- - Search and add cities.
-
-
+
+ New features and updates
+
+ - Use dynamic gradient backgrounds based on current weather.
+ - See forcasts in beautiful card view.
+ - Search and add cities.
+
+
diff --git a/meson.build b/meson.build
index cbe185e..694abbf 100644
--- a/meson.build
+++ b/meson.build
@@ -1,5 +1,5 @@
project('mousam',
- version: '1.0.2',
+ version: run_command('./parse_changelog', '--show-field', 'Version', check: true).stdout().split('~')[0].strip('\n'),
meson_version: '>= 0.61.0',
default_options: [ 'warning_level=2', 'werror=false', ],
)
diff --git a/parse_changelog b/parse_changelog
new file mode 100755
index 0000000..e05b912
--- /dev/null
+++ b/parse_changelog
@@ -0,0 +1,23 @@
+#!/bin/python3
+
+import argparse
+import os
+
+
+parser = argparse.ArgumentParser(description='Parse debian changelog.')
+parser.add_argument("-S", "--show-field", type=str, help="show the values for .")
+args = parser.parse_args()
+
+pwd = os.getcwd()
+deb_changelog = os.path.join(pwd, "debian/changelog")
+try:
+ with open(deb_changelog, "r") as file:
+ lines = file.readlines()
+except:
+ raise FileNotFoundError
+
+all_info = lines[0].split(' ')
+version = all_info[1].strip('(').strip(')')
+
+if "version" in args.show_field.lower():
+ print(version)