flyshell 1.4.11__tar.gz → 1.5.1__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 (77) hide show
  1. {flyshell-1.4.11/src/flyshell.egg-info → flyshell-1.5.1}/PKG-INFO +7 -13
  2. {flyshell-1.4.11 → flyshell-1.5.1}/README.md +6 -12
  3. flyshell-1.5.1/setup.py +53 -0
  4. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/builtin/fs.py +9 -1
  5. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/constants.py +3 -2
  6. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/native/diskops_handler.py +1 -1
  7. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/native/legacy/diskops.py +1 -1
  8. {flyshell-1.4.11 → flyshell-1.5.1/src/flyshell.egg-info}/PKG-INFO +7 -13
  9. {flyshell-1.4.11 → flyshell-1.5.1}/tests/test_diskops_ext.py +7 -2
  10. flyshell-1.4.11/setup.py +0 -49
  11. {flyshell-1.4.11 → flyshell-1.5.1}/LICENSE +0 -0
  12. {flyshell-1.4.11 → flyshell-1.5.1}/MANIFEST.in +0 -0
  13. {flyshell-1.4.11 → flyshell-1.5.1}/c_src/diskops/diskops.c +0 -0
  14. {flyshell-1.4.11 → flyshell-1.5.1}/c_src/diskops/posix/cat.c +0 -0
  15. {flyshell-1.4.11 → flyshell-1.5.1}/c_src/diskops/posix/cp.c +0 -0
  16. {flyshell-1.4.11 → flyshell-1.5.1}/c_src/diskops/posix/dir.c +0 -0
  17. {flyshell-1.4.11 → flyshell-1.5.1}/c_src/diskops/posix/mkdir.c +0 -0
  18. {flyshell-1.4.11 → flyshell-1.5.1}/c_src/diskops/posix/mv.c +0 -0
  19. {flyshell-1.4.11 → flyshell-1.5.1}/c_src/diskops/posix/rename.c +0 -0
  20. {flyshell-1.4.11 → flyshell-1.5.1}/c_src/diskops/posix/rm.c +0 -0
  21. {flyshell-1.4.11 → flyshell-1.5.1}/c_src/diskops/posix/rmdir.c +0 -0
  22. {flyshell-1.4.11 → flyshell-1.5.1}/c_src/diskops/posix/touch.c +0 -0
  23. {flyshell-1.4.11 → flyshell-1.5.1}/c_src/diskops/shared/dir_types.c +0 -0
  24. {flyshell-1.4.11 → flyshell-1.5.1}/c_src/diskops/shared/dir_types.h +0 -0
  25. {flyshell-1.4.11 → flyshell-1.5.1}/c_src/diskops/shared/native_errors.h +0 -0
  26. {flyshell-1.4.11 → flyshell-1.5.1}/c_src/diskops/shared/win32_utf.h +0 -0
  27. {flyshell-1.4.11 → flyshell-1.5.1}/c_src/diskops/win32/cat.c +0 -0
  28. {flyshell-1.4.11 → flyshell-1.5.1}/c_src/diskops/win32/cp.c +0 -0
  29. {flyshell-1.4.11 → flyshell-1.5.1}/c_src/diskops/win32/dir.c +0 -0
  30. {flyshell-1.4.11 → flyshell-1.5.1}/c_src/diskops/win32/mkdir.c +0 -0
  31. {flyshell-1.4.11 → flyshell-1.5.1}/c_src/diskops/win32/mv.c +0 -0
  32. {flyshell-1.4.11 → flyshell-1.5.1}/c_src/diskops/win32/rename.c +0 -0
  33. {flyshell-1.4.11 → flyshell-1.5.1}/c_src/diskops/win32/rm.c +0 -0
  34. {flyshell-1.4.11 → flyshell-1.5.1}/c_src/diskops/win32/rmdir.c +0 -0
  35. {flyshell-1.4.11 → flyshell-1.5.1}/c_src/diskops/win32/touch.c +0 -0
  36. {flyshell-1.4.11 → flyshell-1.5.1}/pyproject.toml +0 -0
  37. {flyshell-1.4.11 → flyshell-1.5.1}/setup.cfg +0 -0
  38. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/__init__.py +0 -0
  39. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/abstract/__init__.py +0 -0
  40. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/abstract/base_cmd.py +0 -0
  41. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/abstract/base_plugin.py +0 -0
  42. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/abstract/parent_cmd.py +0 -0
  43. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/accounts/__init__.py +0 -0
  44. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/accounts/auth.py +0 -0
  45. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/bin/__init__.py +0 -0
  46. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/builtin/__init__.py +0 -0
  47. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/builtin/pkg.py +0 -0
  48. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/builtin/system.py +0 -0
  49. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/builtin/utils.py +0 -0
  50. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/core/__init__.py +0 -0
  51. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/core/console.py +0 -0
  52. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/core/data.py +0 -0
  53. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/core/directory.py +0 -0
  54. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/main.py +0 -0
  55. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/native/__init__.py +0 -0
  56. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/native/diskops_bridge.py +0 -0
  57. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/native/legacy/__init__.py +0 -0
  58. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/startup/__init__.py +0 -0
  59. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/startup/deps.py +0 -0
  60. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/startup/env.py +0 -0
  61. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell/startup/loader.py +0 -0
  62. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell.egg-info/SOURCES.txt +0 -0
  63. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell.egg-info/dependency_links.txt +0 -0
  64. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell.egg-info/entry_points.txt +0 -0
  65. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell.egg-info/requires.txt +0 -0
  66. {flyshell-1.4.11 → flyshell-1.5.1}/src/flyshell.egg-info/top_level.txt +0 -0
  67. {flyshell-1.4.11 → flyshell-1.5.1}/tests/test_auth.py +0 -0
  68. {flyshell-1.4.11 → flyshell-1.5.1}/tests/test_data.py +0 -0
  69. {flyshell-1.4.11 → flyshell-1.5.1}/tests/test_deps.py +0 -0
  70. {flyshell-1.4.11 → flyshell-1.5.1}/tests/test_directory.py +0 -0
  71. {flyshell-1.4.11 → flyshell-1.5.1}/tests/test_diskops_lgc.py +0 -0
  72. {flyshell-1.4.11 → flyshell-1.5.1}/tests/test_env.py +0 -0
  73. {flyshell-1.4.11 → flyshell-1.5.1}/tests/test_fs.py +0 -0
  74. {flyshell-1.4.11 → flyshell-1.5.1}/tests/test_loader.py +0 -0
  75. {flyshell-1.4.11 → flyshell-1.5.1}/tests/test_pkg.py +0 -0
  76. {flyshell-1.4.11 → flyshell-1.5.1}/tests/test_security.py +0 -0
  77. {flyshell-1.4.11 → flyshell-1.5.1}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flyshell
3
- Version: 1.4.11
3
+ Version: 1.5.1
4
4
  Summary: A modular, zero-dependency command-line environment in Python.
5
5
  License-Expression: MIT
6
6
  Requires-Python: >=3.10
@@ -21,9 +21,9 @@ Dynamic: license-file
21
21
  ![Licence](https://img.shields.io/badge/license-MIT-green.svg)
22
22
  ![Platform](https://img.shields.io/badge/platform-Windows%20%7C%20Linux%20(macOS%20source)-lightgrey.svg)
23
23
  ![Dependencies](https://img.shields.io/badge/dependencies-zero-brightgreen.svg)
24
- ![Tests](https://github.com/kianodev/flyshell/actions/workflows/publish.yml/badge.svg)
24
+ ![Tests](https://github.com/kianodev/flyshell/actions/workflows/ci.yml/badge.svg)
25
25
 
26
- > Documentation last updated: v1.4.10
26
+ > Documentation last updated: v1.5.1
27
27
 
28
28
  A modular, zero-dependency command-line environment and extensible runtime interface built in Python with compiled C-extensions.
29
29
 
@@ -38,7 +38,7 @@ No extra packages required, just install and enjoy!
38
38
  3. **Secure Authentication**: Flyshell uses salted PBKDF2 HMAC (SHA-256, 600,000 iterations) with constant-time equality comparisons to prevent timing attacks on password information.
39
39
  4. **Cross-Platform Support**: Flyshell is fully supported by Windows (NT), macOS (Darwin) and Linux installations with native OS management and POSIX-aware parsing. Note that Flyshell is **not** supported by any other systems.
40
40
  5. **State and History Persistence**: Flyshell has a fully encapsulated SQL storage system using SQLite3 providing session metrics and ISO 8601 UTC audit logging.
41
- 6. **Automatic C-Extension Compilation**: If installed via `pip`, Flyshell is distributed with more than 20 wheels suitable for most builds of popular operating systems.
41
+ 6. **Automatic C-Extension Compilation**: If installed via `pip` on Windows or Linux, Flyshell is shipped with pre-compiled wheels. For macOS users, Xcode CLI tools is required as macOS builds install from source.
42
42
 
43
43
  ## System Requirements
44
44
 
@@ -62,7 +62,6 @@ src/
62
62
  │ └── __init__.py
63
63
  ├── builtin/
64
64
  │ ├── __init__.py
65
- │ ├── diskops.py
66
65
  │ ├── fs.py
67
66
  │ ├── pkg.py
68
67
  │ ├── system.py
@@ -119,15 +118,10 @@ Clone the GitHub repository:
119
118
  git clone https://github.com/kianodev/flyshell.git
120
119
  ```
121
120
 
122
- Switch to the Flyshell directory and install in editable mode:
121
+ Switch to the Flyshell directory and install in editable mode compiling the C-binaries:
123
122
  ```bash
124
123
  cd flyshell
125
- pip install -e .
126
- ```
127
-
128
- Flyshell now uses C-binaries, you must compile these:
129
- ```bash
130
- python setup.py build_ext --inplace
124
+ python -m pip install -e .
131
125
  ```
132
126
 
133
127
  After this, you can simply run Flyshell:
@@ -216,7 +210,7 @@ Additional functions are available for you to use:
216
210
  2. `set_data(key, value)`: Updates a key in local memory and automatically persists it to SQLite via `save_storage()`.
217
211
  3. `load_storage()`: Reloads fresh key-value pairs directly from SQLite into `self.storage`.
218
212
  4. `save_storage()`: Writes all in-memory key-value pairs in `self.storage` back to SQLite.
219
- 5. `get_api_key(self, default=None)`: Fetches the specified API key from `flyshell_keys.env`.
213
+ 5. `get_api_key(key, default=None)`: Fetches the specified API key from `flyshell_keys.env`.
220
214
 
221
215
  Plugins save automatically on shut-down.
222
216
 
@@ -4,9 +4,9 @@
4
4
  ![Licence](https://img.shields.io/badge/license-MIT-green.svg)
5
5
  ![Platform](https://img.shields.io/badge/platform-Windows%20%7C%20Linux%20(macOS%20source)-lightgrey.svg)
6
6
  ![Dependencies](https://img.shields.io/badge/dependencies-zero-brightgreen.svg)
7
- ![Tests](https://github.com/kianodev/flyshell/actions/workflows/publish.yml/badge.svg)
7
+ ![Tests](https://github.com/kianodev/flyshell/actions/workflows/ci.yml/badge.svg)
8
8
 
9
- > Documentation last updated: v1.4.10
9
+ > Documentation last updated: v1.5.1
10
10
 
11
11
  A modular, zero-dependency command-line environment and extensible runtime interface built in Python with compiled C-extensions.
12
12
 
@@ -21,7 +21,7 @@ No extra packages required, just install and enjoy!
21
21
  3. **Secure Authentication**: Flyshell uses salted PBKDF2 HMAC (SHA-256, 600,000 iterations) with constant-time equality comparisons to prevent timing attacks on password information.
22
22
  4. **Cross-Platform Support**: Flyshell is fully supported by Windows (NT), macOS (Darwin) and Linux installations with native OS management and POSIX-aware parsing. Note that Flyshell is **not** supported by any other systems.
23
23
  5. **State and History Persistence**: Flyshell has a fully encapsulated SQL storage system using SQLite3 providing session metrics and ISO 8601 UTC audit logging.
24
- 6. **Automatic C-Extension Compilation**: If installed via `pip`, Flyshell is distributed with more than 20 wheels suitable for most builds of popular operating systems.
24
+ 6. **Automatic C-Extension Compilation**: If installed via `pip` on Windows or Linux, Flyshell is shipped with pre-compiled wheels. For macOS users, Xcode CLI tools is required as macOS builds install from source.
25
25
 
26
26
  ## System Requirements
27
27
 
@@ -45,7 +45,6 @@ src/
45
45
  │ └── __init__.py
46
46
  ├── builtin/
47
47
  │ ├── __init__.py
48
- │ ├── diskops.py
49
48
  │ ├── fs.py
50
49
  │ ├── pkg.py
51
50
  │ ├── system.py
@@ -102,15 +101,10 @@ Clone the GitHub repository:
102
101
  git clone https://github.com/kianodev/flyshell.git
103
102
  ```
104
103
 
105
- Switch to the Flyshell directory and install in editable mode:
104
+ Switch to the Flyshell directory and install in editable mode compiling the C-binaries:
106
105
  ```bash
107
106
  cd flyshell
108
- pip install -e .
109
- ```
110
-
111
- Flyshell now uses C-binaries, you must compile these:
112
- ```bash
113
- python setup.py build_ext --inplace
107
+ python -m pip install -e .
114
108
  ```
115
109
 
116
110
  After this, you can simply run Flyshell:
@@ -199,7 +193,7 @@ Additional functions are available for you to use:
199
193
  2. `set_data(key, value)`: Updates a key in local memory and automatically persists it to SQLite via `save_storage()`.
200
194
  3. `load_storage()`: Reloads fresh key-value pairs directly from SQLite into `self.storage`.
201
195
  4. `save_storage()`: Writes all in-memory key-value pairs in `self.storage` back to SQLite.
202
- 5. `get_api_key(self, default=None)`: Fetches the specified API key from `flyshell_keys.env`.
196
+ 5. `get_api_key(key, default=None)`: Fetches the specified API key from `flyshell_keys.env`.
203
197
 
204
198
  Plugins save automatically on shut-down.
205
199
 
@@ -0,0 +1,53 @@
1
+ # setup.py
2
+
3
+ from setuptools import Extension, setup
4
+ import sys
5
+
6
+ sources = [
7
+ "c_src/diskops/diskops.c",
8
+ "c_src/diskops/shared/dir_types.c",
9
+ ]
10
+
11
+ define_macros = []
12
+
13
+ if sys.platform == "win32":
14
+ sources.extend(
15
+ [
16
+ "c_src/diskops/win32/cat.c",
17
+ "c_src/diskops/win32/cp.c",
18
+ "c_src/diskops/win32/dir.c",
19
+ "c_src/diskops/win32/mkdir.c",
20
+ "c_src/diskops/win32/mv.c",
21
+ "c_src/diskops/win32/rename.c",
22
+ "c_src/diskops/win32/rm.c",
23
+ "c_src/diskops/win32/rmdir.c",
24
+ "c_src/diskops/win32/touch.c",
25
+ ]
26
+ )
27
+ else:
28
+ if sys.platform == "darwin":
29
+ define_macros.append(("_DARWIN_C_SOURCE", "1"))
30
+ sources.extend(
31
+ [
32
+ "c_src/diskops/posix/cat.c",
33
+ "c_src/diskops/posix/cp.c",
34
+ "c_src/diskops/posix/dir.c",
35
+ "c_src/diskops/posix/mkdir.c",
36
+ "c_src/diskops/posix/mv.c",
37
+ "c_src/diskops/posix/rename.c",
38
+ "c_src/diskops/posix/rm.c",
39
+ "c_src/diskops/posix/rmdir.c",
40
+ "c_src/diskops/posix/touch.c",
41
+ ]
42
+ )
43
+
44
+ native_diskops = Extension(
45
+ name="flyshell.bin._native_diskops",
46
+ sources=sources,
47
+ include_dirs=["c_src/diskops/shared"],
48
+ define_macros=define_macros,
49
+ )
50
+
51
+ setup(
52
+ ext_modules=[native_diskops],
53
+ )
@@ -190,7 +190,15 @@ class FsVersion(BaseCmd):
190
190
  aliases = []
191
191
 
192
192
  def execute(self, args):
193
- return (0, f"\nYou are on Flyshell Version {c.VERSION} (Build {c.BUILD})\n")
193
+ return (
194
+ 0,
195
+ (
196
+ f"\nYou are on Flyshell Version {c.VERSION}\n"
197
+ f"Increment Identifier: {c.VERFULL}\n"
198
+ f"Build: {c.BUILD}\n"
199
+ f"\nFull Version Name: {c.VERFULL}-b{c.BUILD}\n"
200
+ ),
201
+ )
194
202
 
195
203
 
196
204
  class Fs(ParentCmd):
@@ -5,8 +5,9 @@ import os
5
5
  import platform
6
6
  import time
7
7
 
8
- BUILD = 165
9
- VERSION = "1.4.11"
8
+ BUILD = 169
9
+ VERFULL = "1.5.1c"
10
+ VERSION = "1.5.1"
10
11
 
11
12
 
12
13
  def _resolve_app_dir() -> Path:
@@ -267,7 +267,7 @@ class Move(BaseCmd):
267
267
  if code != 0:
268
268
  return bridge.translate_error(code, raw_src)
269
269
  return (0, f"\nSUCCESS! Moved '{src_path.name}' -> '{final_dst}'\n")
270
-
270
+
271
271
 
272
272
  class MkDir(BaseCmd):
273
273
  name = "mkdir"
@@ -122,7 +122,7 @@ def lgc_mv(src_path: Path, dst_path: Path, force: bool = False) -> tuple[int, st
122
122
  return (-13, "") # ERR_IO
123
123
  except Exception:
124
124
  return (-99, "") # ERR_UNKNOWN
125
-
125
+
126
126
 
127
127
  def lgc_rename(src_path: Path, dst_path: Path) -> tuple[int, str]:
128
128
  if not src_path.exists():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flyshell
3
- Version: 1.4.11
3
+ Version: 1.5.1
4
4
  Summary: A modular, zero-dependency command-line environment in Python.
5
5
  License-Expression: MIT
6
6
  Requires-Python: >=3.10
@@ -21,9 +21,9 @@ Dynamic: license-file
21
21
  ![Licence](https://img.shields.io/badge/license-MIT-green.svg)
22
22
  ![Platform](https://img.shields.io/badge/platform-Windows%20%7C%20Linux%20(macOS%20source)-lightgrey.svg)
23
23
  ![Dependencies](https://img.shields.io/badge/dependencies-zero-brightgreen.svg)
24
- ![Tests](https://github.com/kianodev/flyshell/actions/workflows/publish.yml/badge.svg)
24
+ ![Tests](https://github.com/kianodev/flyshell/actions/workflows/ci.yml/badge.svg)
25
25
 
26
- > Documentation last updated: v1.4.10
26
+ > Documentation last updated: v1.5.1
27
27
 
28
28
  A modular, zero-dependency command-line environment and extensible runtime interface built in Python with compiled C-extensions.
29
29
 
@@ -38,7 +38,7 @@ No extra packages required, just install and enjoy!
38
38
  3. **Secure Authentication**: Flyshell uses salted PBKDF2 HMAC (SHA-256, 600,000 iterations) with constant-time equality comparisons to prevent timing attacks on password information.
39
39
  4. **Cross-Platform Support**: Flyshell is fully supported by Windows (NT), macOS (Darwin) and Linux installations with native OS management and POSIX-aware parsing. Note that Flyshell is **not** supported by any other systems.
40
40
  5. **State and History Persistence**: Flyshell has a fully encapsulated SQL storage system using SQLite3 providing session metrics and ISO 8601 UTC audit logging.
41
- 6. **Automatic C-Extension Compilation**: If installed via `pip`, Flyshell is distributed with more than 20 wheels suitable for most builds of popular operating systems.
41
+ 6. **Automatic C-Extension Compilation**: If installed via `pip` on Windows or Linux, Flyshell is shipped with pre-compiled wheels. For macOS users, Xcode CLI tools is required as macOS builds install from source.
42
42
 
43
43
  ## System Requirements
44
44
 
@@ -62,7 +62,6 @@ src/
62
62
  │ └── __init__.py
63
63
  ├── builtin/
64
64
  │ ├── __init__.py
65
- │ ├── diskops.py
66
65
  │ ├── fs.py
67
66
  │ ├── pkg.py
68
67
  │ ├── system.py
@@ -119,15 +118,10 @@ Clone the GitHub repository:
119
118
  git clone https://github.com/kianodev/flyshell.git
120
119
  ```
121
120
 
122
- Switch to the Flyshell directory and install in editable mode:
121
+ Switch to the Flyshell directory and install in editable mode compiling the C-binaries:
123
122
  ```bash
124
123
  cd flyshell
125
- pip install -e .
126
- ```
127
-
128
- Flyshell now uses C-binaries, you must compile these:
129
- ```bash
130
- python setup.py build_ext --inplace
124
+ python -m pip install -e .
131
125
  ```
132
126
 
133
127
  After this, you can simply run Flyshell:
@@ -216,7 +210,7 @@ Additional functions are available for you to use:
216
210
  2. `set_data(key, value)`: Updates a key in local memory and automatically persists it to SQLite via `save_storage()`.
217
211
  3. `load_storage()`: Reloads fresh key-value pairs directly from SQLite into `self.storage`.
218
212
  4. `save_storage()`: Writes all in-memory key-value pairs in `self.storage` back to SQLite.
219
- 5. `get_api_key(self, default=None)`: Fetches the specified API key from `flyshell_keys.env`.
213
+ 5. `get_api_key(key, default=None)`: Fetches the specified API key from `flyshell_keys.env`.
220
214
 
221
215
  Plugins save automatically on shut-down.
222
216
 
@@ -35,12 +35,16 @@ def test_native_mv_file_and_directory(tmp_path):
35
35
  exit_code, msg = cmd.execute([str(src_dir), str(target_parent)])
36
36
  assert exit_code == 0
37
37
  assert not src_dir.exists()
38
- assert (target_parent / "dir_to_move" / "item.txt").read_text(encoding="utf-8") == "inside"
38
+ assert (target_parent / "dir_to_move" / "item.txt").read_text(
39
+ encoding="utf-8"
40
+ ) == "inside"
39
41
 
40
42
 
41
43
  def test_native_mv_errors(tmp_path):
42
44
  cmd = handler.Move()
43
- exit_code, msg = cmd.execute([str(tmp_path / "missing.txt"), str(tmp_path / "out.txt")])
45
+ exit_code, msg = cmd.execute(
46
+ [str(tmp_path / "missing.txt"), str(tmp_path / "out.txt")]
47
+ )
44
48
  assert exit_code == 1
45
49
  assert "not found" in msg
46
50
  a = tmp_path / "a.txt"
@@ -50,6 +54,7 @@ def test_native_mv_errors(tmp_path):
50
54
  code, _ = bridge._native.mv(str(a), str(b), False)
51
55
  assert code == -5 # ERR_EXISTS
52
56
 
57
+
53
58
  def test_native_cp_file_and_directory(tmp_path):
54
59
  cmd = handler.Copy()
55
60
  src_file = tmp_path / "src.txt"
flyshell-1.4.11/setup.py DELETED
@@ -1,49 +0,0 @@
1
- # setup.py
2
-
3
- from setuptools import Extension, setup
4
- import sys
5
-
6
- sources = [
7
- "c_src/diskops/diskops.c",
8
- "c_src/diskops/shared/dir_types.c",
9
- ]
10
-
11
- define_macros = []
12
-
13
- if sys.platform == "win32":
14
- sources.extend([
15
- "c_src/diskops/win32/cat.c",
16
- "c_src/diskops/win32/cp.c",
17
- "c_src/diskops/win32/dir.c",
18
- "c_src/diskops/win32/mkdir.c",
19
- "c_src/diskops/win32/mv.c",
20
- "c_src/diskops/win32/rename.c",
21
- "c_src/diskops/win32/rm.c",
22
- "c_src/diskops/win32/rmdir.c",
23
- "c_src/diskops/win32/touch.c",
24
- ])
25
- else:
26
- if sys.platform == "darwin":
27
- define_macros.append(("_DARWIN_C_SOURCE", "1"))
28
- sources.extend([
29
- "c_src/diskops/posix/cat.c",
30
- "c_src/diskops/posix/cp.c",
31
- "c_src/diskops/posix/dir.c",
32
- "c_src/diskops/posix/mkdir.c",
33
- "c_src/diskops/posix/mv.c",
34
- "c_src/diskops/posix/rename.c",
35
- "c_src/diskops/posix/rm.c",
36
- "c_src/diskops/posix/rmdir.c",
37
- "c_src/diskops/posix/touch.c",
38
- ])
39
-
40
- native_diskops = Extension(
41
- name="flyshell.bin._native_diskops",
42
- sources=sources,
43
- include_dirs=["c_src/diskops/shared"],
44
- define_macros=define_macros,
45
- )
46
-
47
- setup(
48
- ext_modules=[native_diskops],
49
- )
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