pumaguard 20.post131__py3-none-any.whl → 20.post155__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pumaguard/main.py CHANGED
@@ -16,6 +16,7 @@ from pumaguard import (
16
16
  )
17
17
  from pumaguard.presets import (
18
18
  Preset,
19
+ get_default_settings_file,
19
20
  )
20
21
  from pumaguard.utils import (
21
22
  print_bash_completion,
@@ -88,7 +89,7 @@ def configure_presets(args: argparse.Namespace, presets: Preset):
88
89
 
89
90
  if args.settings is None:
90
91
  logger.info("loading default settings")
91
- settings = os.path.join(model_path, "settings.yaml")
92
+ settings = get_default_settings_file()
92
93
  else:
93
94
  settings = args.settings
94
95
  presets.load(settings)
pumaguard/presets.py CHANGED
@@ -52,7 +52,7 @@ def get_default_settings_file() -> str:
52
52
  snap_user_data = os.environ.get("SNAP_USER_DATA")
53
53
  if snap_user_data:
54
54
  snap_config_dir = Path(snap_user_data) / "pumaguard"
55
- snap_settings_file = snap_config_dir / "settings.yaml"
55
+ snap_settings_file = snap_config_dir / "pumaguard-settings.yaml"
56
56
 
57
57
  # If snap settings file exists, use it
58
58
  if snap_settings_file.exists():
@@ -64,27 +64,12 @@ def get_default_settings_file() -> str:
64
64
 
65
65
  # XDG compliant location
66
66
  xdg_config_dir = get_xdg_config_home() / "pumaguard"
67
- xdg_settings_file = xdg_config_dir / "settings.yaml"
68
-
69
- # Legacy location (current directory)
70
- legacy_settings_file = Path("pumaguard-settings.yaml")
67
+ xdg_settings_file = xdg_config_dir / "pumaguard-settings.yaml"
71
68
 
72
69
  # If the XDG file exists, use it
73
70
  if xdg_settings_file.exists():
74
71
  return str(xdg_settings_file)
75
72
 
76
- # If the legacy file exists, use it but log a warning
77
- if legacy_settings_file.exists():
78
- logger.info(
79
- "Using legacy settings file location: %s", legacy_settings_file
80
- )
81
- logger.info(
82
- "Consider moving it to XDG location: %s", xdg_settings_file
83
- )
84
- return str(legacy_settings_file)
85
-
86
- # Neither exists, return XDG location as default (will be created if
87
- # needed). Create the directory if it doesn't exist.
88
73
  xdg_config_dir.mkdir(parents=True, exist_ok=True)
89
74
  return str(xdg_settings_file)
90
75
 
@@ -1 +1 @@
1
- 4ae170443a6f906032ab42fbaf70ad98
1
+ 3c0a2c541351061c550618667ec2c4c8
@@ -1273,6 +1273,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1273
1273
  --------------------------------------------------------------------------------
1274
1274
  build_daemon
1275
1275
  characters
1276
+ ffi
1276
1277
  package_config
1277
1278
 
1278
1279
  Copyright 2019, the Dart project authors.
@@ -1581,6 +1582,36 @@ distributed under the License is distributed on an "AS IS" BASIS,
1581
1582
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1582
1583
  See the License for the specific language governing permissions and
1583
1584
  limitations under the License.
1585
+ --------------------------------------------------------------------------------
1586
+ cross_file
1587
+ flutter_plugin_android_lifecycle
1588
+
1589
+ Copyright 2013 The Flutter Authors
1590
+
1591
+ Redistribution and use in source and binary forms, with or without modification,
1592
+ are permitted provided that the following conditions are met:
1593
+
1594
+ * Redistributions of source code must retain the above copyright
1595
+ notice, this list of conditions and the following disclaimer.
1596
+ * Redistributions in binary form must reproduce the above
1597
+ copyright notice, this list of conditions and the following
1598
+ disclaimer in the documentation and/or other materials provided
1599
+ with the distribution.
1600
+ * Neither the name of Google Inc. nor the names of its
1601
+ contributors may be used to endorse or promote products derived
1602
+ from this software without specific prior written permission.
1603
+
1604
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
1605
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1606
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1607
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
1608
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1609
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
1610
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
1611
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1612
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
1613
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1614
+
1584
1615
  --------------------------------------------------------------------------------
1585
1616
  cupertino_icons
1586
1617
 
@@ -4571,6 +4602,30 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
4571
4602
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
4572
4603
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4573
4604
  --------------------------------------------------------------------------------
4605
+ file_picker
4606
+
4607
+ MIT License
4608
+
4609
+ Copyright (c) 2018 Miguel Ruivo
4610
+
4611
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4612
+ of this software and associated documentation files (the "Software"), to deal
4613
+ in the Software without restriction, including without limitation the rights
4614
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
4615
+ copies of the Software, and to permit persons to whom the Software is
4616
+ furnished to do so, subject to the following conditions:
4617
+
4618
+ The above copyright notice and this permission notice shall be included in all
4619
+ copies or substantial portions of the Software.
4620
+
4621
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4622
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
4623
+ FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE
4624
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
4625
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
4626
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
4627
+ SOFTWARE.
4628
+ --------------------------------------------------------------------------------
4574
4629
  fixnum
4575
4630
  http_multi_server
4576
4631
  shelf
@@ -5133,6 +5188,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5133
5188
  --------------------------------------------------------------------------------
5134
5189
  flutter_lints
5135
5190
  multicast_dns
5191
+ plugin_platform_interface
5136
5192
 
5137
5193
  Copyright 2013 The Flutter Authors. All rights reserved.
5138
5194
 
@@ -31180,6 +31236,38 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31180
31236
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31181
31237
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31182
31238
 
31239
+ --------------------------------------------------------------------------------
31240
+ win32
31241
+
31242
+ BSD 3-Clause License
31243
+
31244
+ Copyright (c) 2024, Halil Durmus
31245
+
31246
+ Redistribution and use in source and binary forms, with or without
31247
+ modification, are permitted provided that the following conditions are met:
31248
+
31249
+ 1. Redistributions of source code must retain the above copyright notice, this
31250
+ list of conditions and the following disclaimer.
31251
+
31252
+ 2. Redistributions in binary form must reproduce the above copyright notice,
31253
+ this list of conditions and the following disclaimer in the documentation
31254
+ and/or other materials provided with the distribution.
31255
+
31256
+ 3. Neither the name of the copyright holder nor the names of its
31257
+ contributors may be used to endorse or promote products derived from
31258
+ this software without specific prior written permission.
31259
+
31260
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
31261
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31262
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
31263
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
31264
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31265
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
31266
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
31267
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
31268
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31269
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31270
+
31183
31271
  --------------------------------------------------------------------------------
31184
31272
  xxhash
31185
31273
 
@@ -38,6 +38,6 @@ _flutter.buildConfig = {"engineRevision":"13e658725ddaa270601426d1485636157e38c3
38
38
 
39
39
  _flutter.loader.load({
40
40
  serviceWorkerSettings: {
41
- serviceWorkerVersion: "2540755629"
41
+ serviceWorkerVersion: "1734427193"
42
42
  }
43
43
  });
@@ -9,14 +9,14 @@ const RESOURCES = {"flutter.js": "24bc71911b75b5f8135c949e27a2984e",
9
9
  "icons/Icon-192.png": "ac9a721a12bbc803b44f645561ecb1e1",
10
10
  "icons/Icon-maskable-192.png": "c457ef57daa1d16f64b27b786ec2ea3c",
11
11
  "manifest.json": "79fc5e98516f37b747bbe5e9fa3533a8",
12
- "main.dart.mjs": "3db96d2cdc2371d816be368e5ebe283f",
12
+ "main.dart.mjs": "5de0a2da7f7fd6bfcef5644581ca32fb",
13
13
  "index.html": "ee3247fa8df2826decc51c0bee49c25a",
14
14
  "/": "ee3247fa8df2826decc51c0bee49c25a",
15
15
  "assets/shaders/stretch_effect.frag": "40d68efbbf360632f614c731219e95f0",
16
16
  "assets/shaders/ink_sparkle.frag": "ecc85a2e95f5e9f53123dcaf8cb9b6ce",
17
17
  "assets/AssetManifest.bin.json": "69a99f98c8b1fb8111c5fb961769fcd8",
18
- "assets/fonts/MaterialIcons-Regular.otf": "c9bdfa4f7f22b7a3cea8bcd10bcb69da",
19
- "assets/NOTICES": "d81ec306ec7c479779c2cc3242df8eea",
18
+ "assets/fonts/MaterialIcons-Regular.otf": "2823b161afe760bc779560d8ed5764fc",
19
+ "assets/NOTICES": "f8bfc82f3f21353fe65a14d27347d81b",
20
20
  "assets/packages/cupertino_icons/assets/CupertinoIcons.ttf": "33b7d9392238c04c131b6ce224e13711",
21
21
  "assets/FontManifest.json": "dc3d03800ccca4601324923c0b1d6d57",
22
22
  "assets/AssetManifest.bin": "693635b5258fe5f1cda720cf224f158c",
@@ -33,10 +33,10 @@ const RESOURCES = {"flutter.js": "24bc71911b75b5f8135c949e27a2984e",
33
33
  "canvaskit/canvaskit.js.symbols": "a3c9f77715b642d0437d9c275caba91e",
34
34
  "canvaskit/skwasm.js.symbols": "3a4aadf4e8141f284bd524976b1d6bdc",
35
35
  "favicon.png": "5dcef449791fa27946b3d35ad8803796",
36
- "main.dart.wasm": "4b8e46ec336a4e75391574ee00f3b348",
37
- "flutter_bootstrap.js": "d6a7060a1acca8f81bc938cb61cf7c63",
36
+ "main.dart.wasm": "b7e85784e7cc42b937c6ddffca885d19",
37
+ "flutter_bootstrap.js": "3ef55fde7b54ef5b9e14eae3d702bab3",
38
38
  "version.json": "d3ae24eea88b92d3d617cfcd1d6d057d",
39
- "main.dart.js": "3a8e96b8efa9b893fff221cb9cd5983e"};
39
+ "main.dart.js": "8d76816e4e65d2d9504d5fd4013ba7cf"};
40
40
  // The application shell files that are downloaded before a service worker can
41
41
  // start.
42
42
  const CORE = ["main.dart.js",