flyshell 1.3.10__tar.gz → 1.3.11__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 (63) hide show
  1. {flyshell-1.3.10/src/flyshell.egg-info → flyshell-1.3.11}/PKG-INFO +1 -1
  2. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/constants.py +2 -2
  3. {flyshell-1.3.10 → flyshell-1.3.11/src/flyshell.egg-info}/PKG-INFO +1 -1
  4. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell.egg-info/SOURCES.txt +1 -1
  5. flyshell-1.3.10/tests/test_diskops.py → flyshell-1.3.11/tests/test_diskops_old.py +1 -56
  6. {flyshell-1.3.10 → flyshell-1.3.11}/LICENSE +0 -0
  7. {flyshell-1.3.10 → flyshell-1.3.11}/MANIFEST.in +0 -0
  8. {flyshell-1.3.10 → flyshell-1.3.11}/README.md +0 -0
  9. {flyshell-1.3.10 → flyshell-1.3.11}/c_src/diskops/diskops.c +0 -0
  10. {flyshell-1.3.10 → flyshell-1.3.11}/c_src/diskops/posix/cat.c +0 -0
  11. {flyshell-1.3.10 → flyshell-1.3.11}/c_src/diskops/posix/dir.c +0 -0
  12. {flyshell-1.3.10 → flyshell-1.3.11}/c_src/diskops/posix/touch.c +0 -0
  13. {flyshell-1.3.10 → flyshell-1.3.11}/c_src/diskops/shared/dir_types.c +0 -0
  14. {flyshell-1.3.10 → flyshell-1.3.11}/c_src/diskops/shared/dir_types.h +0 -0
  15. {flyshell-1.3.10 → flyshell-1.3.11}/c_src/diskops/shared/native_errors.h +0 -0
  16. {flyshell-1.3.10 → flyshell-1.3.11}/c_src/diskops/win32/cat.c +0 -0
  17. {flyshell-1.3.10 → flyshell-1.3.11}/c_src/diskops/win32/dir.c +0 -0
  18. {flyshell-1.3.10 → flyshell-1.3.11}/c_src/diskops/win32/touch.c +0 -0
  19. {flyshell-1.3.10 → flyshell-1.3.11}/pyproject.toml +0 -0
  20. {flyshell-1.3.10 → flyshell-1.3.11}/setup.cfg +0 -0
  21. {flyshell-1.3.10 → flyshell-1.3.11}/setup.py +0 -0
  22. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/__init__.py +0 -0
  23. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/abstract/__init__.py +0 -0
  24. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/abstract/base_cmd.py +0 -0
  25. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/abstract/base_plugin.py +0 -0
  26. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/abstract/parent_cmd.py +0 -0
  27. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/accounts/__init__.py +0 -0
  28. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/accounts/auth.py +0 -0
  29. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/bin/__init__.py +0 -0
  30. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/builtin/__init__.py +0 -0
  31. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/builtin/diskops.py +0 -0
  32. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/builtin/fs.py +0 -0
  33. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/builtin/pkg.py +0 -0
  34. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/builtin/system.py +0 -0
  35. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/builtin/utils.py +0 -0
  36. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/core/__init__.py +0 -0
  37. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/core/console.py +0 -0
  38. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/core/data.py +0 -0
  39. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/core/directory.py +0 -0
  40. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/main.py +0 -0
  41. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/native/__init__.py +0 -0
  42. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/native/diskops_bridge.py +0 -0
  43. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/native/diskops_handler.py +0 -0
  44. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/native/legacy/__init__.py +0 -0
  45. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/native/legacy/diskops.py +0 -0
  46. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/startup/__init__.py +0 -0
  47. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/startup/deps.py +0 -0
  48. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/startup/env.py +0 -0
  49. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell/startup/loader.py +0 -0
  50. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell.egg-info/dependency_links.txt +0 -0
  51. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell.egg-info/entry_points.txt +0 -0
  52. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell.egg-info/requires.txt +0 -0
  53. {flyshell-1.3.10 → flyshell-1.3.11}/src/flyshell.egg-info/top_level.txt +0 -0
  54. {flyshell-1.3.10 → flyshell-1.3.11}/tests/test_auth.py +0 -0
  55. {flyshell-1.3.10 → flyshell-1.3.11}/tests/test_data.py +0 -0
  56. {flyshell-1.3.10 → flyshell-1.3.11}/tests/test_deps.py +0 -0
  57. {flyshell-1.3.10 → flyshell-1.3.11}/tests/test_directory.py +0 -0
  58. {flyshell-1.3.10 → flyshell-1.3.11}/tests/test_env.py +0 -0
  59. {flyshell-1.3.10 → flyshell-1.3.11}/tests/test_fs.py +0 -0
  60. {flyshell-1.3.10 → flyshell-1.3.11}/tests/test_loader.py +0 -0
  61. {flyshell-1.3.10 → flyshell-1.3.11}/tests/test_pkg.py +0 -0
  62. {flyshell-1.3.10 → flyshell-1.3.11}/tests/test_security.py +0 -0
  63. {flyshell-1.3.10 → flyshell-1.3.11}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flyshell
3
- Version: 1.3.10
3
+ Version: 1.3.11
4
4
  Summary: A modular, zero-dependency command-line environment in Python.
5
5
  License-Expression: MIT
6
6
  Requires-Python: >=3.10
@@ -5,8 +5,8 @@ import os
5
5
  import platform
6
6
  import time
7
7
 
8
- BUILD = 150
9
- VERSION = "1.3.10"
8
+ BUILD = 151
9
+ VERSION = "1.3.11"
10
10
 
11
11
 
12
12
  def _resolve_app_dir() -> Path:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flyshell
3
- Version: 1.3.10
3
+ Version: 1.3.11
4
4
  Summary: A modular, zero-dependency command-line environment in Python.
5
5
  License-Expression: MIT
6
6
  Requires-Python: >=3.10
@@ -52,7 +52,7 @@ tests/test_auth.py
52
52
  tests/test_data.py
53
53
  tests/test_deps.py
54
54
  tests/test_directory.py
55
- tests/test_diskops.py
55
+ tests/test_diskops_old.py
56
56
  tests/test_env.py
57
57
  tests/test_fs.py
58
58
  tests/test_loader.py
@@ -1,57 +1,6 @@
1
- # tests/test_diskops.py
1
+ # tests/test_diskops_old.py
2
2
 
3
3
  from flyshell.builtin import diskops
4
- import flyshell
5
-
6
- import pytest
7
-
8
- pytestmark = pytest.mark.skip(reason="Refactoring diskops to modular native C backend")
9
-
10
-
11
- def test_touch_creates_file_and_updates_timestamp(tmp_path):
12
- cmd = diskops.Touch()
13
- target = tmp_path / "test.txt"
14
- code, msg = cmd.execute([str(target)])
15
- assert code == 0
16
- assert "Created file" in msg
17
- assert target.exists()
18
- code, msg = cmd.execute([str(target)])
19
- assert code == 0
20
- assert "Updated timestamp" in msg
21
-
22
-
23
- def test_touch_missing_parent_directory(tmp_path):
24
- cmd = diskops.Touch()
25
- target = tmp_path / "nonexistent_dir" / "test.txt"
26
- code, msg = cmd.execute([str(target)])
27
- assert code == 1
28
- assert "Parent directory does not exist" in msg
29
-
30
-
31
- def test_cat_reads_content_with_limit_and_numbers(tmp_path):
32
- file_path = tmp_path / "sample.txt"
33
- file_path.write_text("line 1\nline 2\nline 3\nline 4\n")
34
- cmd = diskops.Cat()
35
- code, msg = cmd.execute([str(file_path)])
36
- assert code == 0
37
- assert "line 1" in msg and "line 4" in msg
38
- code, msg = cmd.execute(["-n", "-l", "2", str(file_path)])
39
- assert code == 0
40
- assert "1 | line 1" in msg
41
- assert "2 | line 2" in msg
42
- assert "line 3" not in msg
43
-
44
-
45
- def test_cat_nonexistent_and_empty_file(tmp_path):
46
- cmd = diskops.Cat()
47
- code, msg = cmd.execute([str(tmp_path / "missing.txt")])
48
- assert code == 1
49
- assert "not found" in msg
50
- empty_file = tmp_path / "empty.txt"
51
- empty_file.write_text("")
52
- code, msg = cmd.execute([str(empty_file)])
53
- assert code == 1
54
- assert "is empty" in msg
55
4
 
56
5
 
57
6
  def test_mkdir_standard_and_parents(tmp_path):
@@ -124,7 +73,3 @@ def test_rmdir_empty_and_non_empty(tmp_path):
124
73
  code, msg = cmd.execute(["-f", str(target_dir)])
125
74
  assert code == 0
126
75
  assert not target_dir.exists()
127
-
128
-
129
- def test_native_disk_c_ext():
130
- assert flyshell.check_native() is True
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