FlowerPower 0.11.5__py3-none-any.whl → 0.11.5.1__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.
flowerpower/fs/base.py CHANGED
@@ -597,16 +597,19 @@ def get_filesystem(
597
597
  ... )
598
598
  """
599
599
  if fs is not None:
600
+ if dirfs:
601
+ if fs.protocol == "dir":
602
+ base_path = path.split("://")[1]
603
+ if base_path != fs.path:
604
+ fs = DirFileSystem(
605
+ path=posixpath.join(fs.path, base_path.replace(fs.path, "")),
606
+ fs=fs.fs,
607
+ )
600
608
  if cached:
601
609
  if fs.is_cache_fs:
602
610
  return fs
603
611
  return MonitoredSimpleCacheFileSystem(fs=fs, cache_storage=cache_storage)
604
612
 
605
- if dirfs:
606
- if fs.protocol == "dir":
607
- return fs
608
- return DirFileSystem(path=path, fs=fs)
609
-
610
613
  pp = infer_storage_options(str(path) if isinstance(path, Path) else path)
611
614
  protocol = (
612
615
  storage_options_kwargs.get("protocol", None)
@@ -630,6 +633,8 @@ def get_filesystem(
630
633
  path = pp.get("path", "").lstrip("/")
631
634
  if len(host) and host not in path:
632
635
  path = posixpath.join(host, path)
636
+ if "." in path:
637
+ path = posixpath.dirname(path)
633
638
 
634
639
  if isinstance(storage_options, dict):
635
640
  storage_options = storage_options_from_dict(protocol, storage_options)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: FlowerPower
3
- Version: 0.11.5
3
+ Version: 0.11.5.1
4
4
  Summary: A simple workflow framework. Hamilton + APScheduler = FlowerPower
5
5
  Author-email: "Volker L." <ligno.blades@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/legout/flowerpower
@@ -17,7 +17,7 @@ flowerpower/cli/mqtt.py,sha256=GM5d6bzG01THZd7SwXFAC3j0cait642eXT50P3R22vk,6281
17
17
  flowerpower/cli/pipeline.py,sha256=60P6u_QOSgp0jJXEMxazEEo5Sh7-SWFo-Kkuaz21YuI,37845
18
18
  flowerpower/cli/utils.py,sha256=nDSSj_1nlYlMmj252kRZeohhFqHv9yvdgDEduQCyWOc,5152
19
19
  flowerpower/fs/__init__.py,sha256=uZaPXErEfQqQRbKRIjkB9yiygd45X5_psYn9-VVrBTQ,910
20
- flowerpower/fs/base.py,sha256=bWfY_xPPZ9DhSpSGMC2SV6OdbYp5XyDrjxLYhTjJlqo,22352
20
+ flowerpower/fs/base.py,sha256=A8zOtcYu3ixbIGayP1b-GTFnul8iZATUW6eTtloRJ48,22605
21
21
  flowerpower/fs/ext.py,sha256=gsCJ87VxVdy22oVtNRaN4M-SLO8WORVf5JRyDeQjjEs,63834
22
22
  flowerpower/fs/storage_options.py,sha256=msq5TpxAU8tcE_Bxjw6SyxaFa75UjdYnR4-O9U2wmbk,48034
23
23
  flowerpower/job_queue/__init__.py,sha256=a25hIqv2xoFKb4JZlyUukS0ppZ9-2sJKH3XAvbk3rlk,10788
@@ -93,9 +93,9 @@ flowerpower/utils/monkey.py,sha256=VPl3yimoWhwD9kI05BFsjNvtyQiDyLfY4Q85Bb6Ma0w,2
93
93
  flowerpower/utils/open_telemetry.py,sha256=fQWJWbIQFtKIxMBjAWeF12NGnqT0isO3A3j-DSOv_vE,949
94
94
  flowerpower/utils/scheduler.py,sha256=2zJ_xmLXpvXUQNF1XS2Gqm3Ogo907ctZ50GtvQB_rhE,9354
95
95
  flowerpower/utils/templates.py,sha256=ouyEeSDqa9PjW8c32fGpcINlpC0WToawRFZkMPtwsLE,1591
96
- flowerpower-0.11.5.dist-info/licenses/LICENSE,sha256=9AkLexxrmr0aBgSHiqxpJk9wgazpP1CTJyiDyr56J9k,1063
97
- flowerpower-0.11.5.dist-info/METADATA,sha256=Cmyl1IhcjYUTdIrKw_VSGtjclhFUHzIcWlM7yknDL3I,21610
98
- flowerpower-0.11.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
99
- flowerpower-0.11.5.dist-info/entry_points.txt,sha256=61X11i5a2IwC9LBiP20XCDl5zMOigGCjMCx17B7bDbQ,52
100
- flowerpower-0.11.5.dist-info/top_level.txt,sha256=VraH4WtEUfSxs5L-rXwDQhzQb9eLHTUtgvmFZ2dAYnA,12
101
- flowerpower-0.11.5.dist-info/RECORD,,
96
+ flowerpower-0.11.5.1.dist-info/licenses/LICENSE,sha256=9AkLexxrmr0aBgSHiqxpJk9wgazpP1CTJyiDyr56J9k,1063
97
+ flowerpower-0.11.5.1.dist-info/METADATA,sha256=S67wBjxZk_VkQtsIB-HOQl_lOP_-v2kK9Ri1HMuBskc,21612
98
+ flowerpower-0.11.5.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
99
+ flowerpower-0.11.5.1.dist-info/entry_points.txt,sha256=61X11i5a2IwC9LBiP20XCDl5zMOigGCjMCx17B7bDbQ,52
100
+ flowerpower-0.11.5.1.dist-info/top_level.txt,sha256=VraH4WtEUfSxs5L-rXwDQhzQb9eLHTUtgvmFZ2dAYnA,12
101
+ flowerpower-0.11.5.1.dist-info/RECORD,,