cloudsh 0.3.2__tar.gz → 0.3.3__tar.gz

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.
Files changed (34) hide show
  1. {cloudsh-0.3.2 → cloudsh-0.3.3}/PKG-INFO +1 -1
  2. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/commands/touch.py +4 -6
  3. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/utils.py +1 -1
  4. {cloudsh-0.3.2 → cloudsh-0.3.3}/pyproject.toml +1 -1
  5. {cloudsh-0.3.2 → cloudsh-0.3.3}/setup.py +1 -1
  6. {cloudsh-0.3.2 → cloudsh-0.3.3}/LICENSE +0 -0
  7. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/__init__.py +0 -0
  8. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/__main__.py +0 -0
  9. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/args/cat.toml +0 -0
  10. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/args/complete.toml +0 -0
  11. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/args/cp.toml +0 -0
  12. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/args/head.toml +0 -0
  13. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/args/less.toml +0 -0
  14. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/args/ls.toml +0 -0
  15. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/args/mkdir.toml +0 -0
  16. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/args/more.toml +0 -0
  17. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/args/mv.toml +0 -0
  18. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/args/rm.toml +0 -0
  19. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/args/sink.toml +0 -0
  20. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/args/tail.toml +0 -0
  21. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/args/touch.toml +0 -0
  22. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/commands/cat.py +0 -0
  23. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/commands/complete.py +0 -0
  24. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/commands/cp.py +0 -0
  25. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/commands/head.py +0 -0
  26. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/commands/less.py +0 -0
  27. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/commands/ls.py +0 -0
  28. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/commands/mkdir.py +0 -0
  29. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/commands/more.py +0 -0
  30. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/commands/mv.py +0 -0
  31. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/commands/rm.py +0 -0
  32. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/commands/sink.py +0 -0
  33. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/commands/tail.py +0 -0
  34. {cloudsh-0.3.2 → cloudsh-0.3.3}/cloudsh/main.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cloudsh
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: A Python CLI wrapping common Linux commands for local/cloud files.
5
5
  License-File: LICENSE
6
6
  Author: Your Name
@@ -80,12 +80,10 @@ async def run(args: Namespace) -> None:
80
80
  if not exists:
81
81
  await path.a_touch()
82
82
  if mtime is not None:
83
- # Update cloud file metadata
84
- blob = path.client.client.bucket(path.bucket).get_blob(path.blob)
85
- metadata = blob.metadata or {}
86
- metadata["updated"] = datetime.fromtimestamp(mtime)
87
- blob.metadata = metadata
88
- blob.patch()
83
+ await path.async_client.set_metadata(
84
+ str(path),
85
+ {"updated": mtime},
86
+ )
89
87
  else:
90
88
  # Local files support both atime and mtime
91
89
  if not exists:
@@ -1,4 +1,4 @@
1
- __version__ = "0.3.2"
1
+ __version__ = "0.3.3"
2
2
 
3
3
  PACKAGE = "cloudsh"
4
4
  MULTIPLIERS = {
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "cloudsh"
3
- version = "0.3.2"
3
+ version = "0.3.3"
4
4
  description = "A Python CLI wrapping common Linux commands for local/cloud files."
5
5
  authors = ["Your Name <you@example.com>"]
6
6
  packages = [{ include = "cloudsh" }]
@@ -30,7 +30,7 @@ entry_points = \
30
30
 
31
31
  setup_kwargs = {
32
32
  'name': 'cloudsh',
33
- 'version': '0.3.2',
33
+ 'version': '0.3.3',
34
34
  'description': 'A Python CLI wrapping common Linux commands for local/cloud files.',
35
35
  'long_description': 'None',
36
36
  'author': 'Your Name',
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes