flyshell 1.4.11__tar.gz → 1.5.0__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.
- {flyshell-1.4.11/src/flyshell.egg-info → flyshell-1.5.0}/PKG-INFO +6 -12
- {flyshell-1.4.11 → flyshell-1.5.0}/README.md +5 -11
- flyshell-1.5.0/setup.py +53 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/constants.py +2 -2
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/native/diskops_handler.py +1 -1
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/native/legacy/diskops.py +1 -1
- {flyshell-1.4.11 → flyshell-1.5.0/src/flyshell.egg-info}/PKG-INFO +6 -12
- {flyshell-1.4.11 → flyshell-1.5.0}/tests/test_diskops_ext.py +7 -2
- flyshell-1.4.11/setup.py +0 -49
- {flyshell-1.4.11 → flyshell-1.5.0}/LICENSE +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/MANIFEST.in +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/c_src/diskops/diskops.c +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/c_src/diskops/posix/cat.c +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/c_src/diskops/posix/cp.c +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/c_src/diskops/posix/dir.c +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/c_src/diskops/posix/mkdir.c +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/c_src/diskops/posix/mv.c +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/c_src/diskops/posix/rename.c +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/c_src/diskops/posix/rm.c +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/c_src/diskops/posix/rmdir.c +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/c_src/diskops/posix/touch.c +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/c_src/diskops/shared/dir_types.c +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/c_src/diskops/shared/dir_types.h +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/c_src/diskops/shared/native_errors.h +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/c_src/diskops/shared/win32_utf.h +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/c_src/diskops/win32/cat.c +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/c_src/diskops/win32/cp.c +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/c_src/diskops/win32/dir.c +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/c_src/diskops/win32/mkdir.c +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/c_src/diskops/win32/mv.c +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/c_src/diskops/win32/rename.c +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/c_src/diskops/win32/rm.c +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/c_src/diskops/win32/rmdir.c +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/c_src/diskops/win32/touch.c +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/pyproject.toml +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/setup.cfg +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/__init__.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/abstract/__init__.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/abstract/base_cmd.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/abstract/base_plugin.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/abstract/parent_cmd.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/accounts/__init__.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/accounts/auth.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/bin/__init__.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/builtin/__init__.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/builtin/fs.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/builtin/pkg.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/builtin/system.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/builtin/utils.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/core/__init__.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/core/console.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/core/data.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/core/directory.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/main.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/native/__init__.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/native/diskops_bridge.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/native/legacy/__init__.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/startup/__init__.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/startup/deps.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/startup/env.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell/startup/loader.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell.egg-info/SOURCES.txt +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell.egg-info/dependency_links.txt +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell.egg-info/entry_points.txt +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell.egg-info/requires.txt +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/src/flyshell.egg-info/top_level.txt +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/tests/test_auth.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/tests/test_data.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/tests/test_deps.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/tests/test_directory.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/tests/test_diskops_lgc.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/tests/test_env.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/tests/test_fs.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/tests/test_loader.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/tests/test_pkg.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/tests/test_security.py +0 -0
- {flyshell-1.4.11 → flyshell-1.5.0}/tests/test_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flyshell
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.5.0
|
|
4
4
|
Summary: A modular, zero-dependency command-line environment in Python.
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Requires-Python: >=3.10
|
|
@@ -23,7 +23,7 @@ Dynamic: license-file
|
|
|
23
23
|

|
|
24
24
|

|
|
25
25
|
|
|
26
|
-
> Documentation last updated: v1.
|
|
26
|
+
> Documentation last updated: v1.5.0
|
|
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
|
|
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(
|
|
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
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|

|
|
7
7
|

|
|
8
8
|
|
|
9
|
-
> Documentation last updated: v1.
|
|
9
|
+
> Documentation last updated: v1.5.0
|
|
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
|
|
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(
|
|
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
|
|
flyshell-1.5.0/setup.py
ADDED
|
@@ -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
|
+
)
|
|
@@ -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.
|
|
3
|
+
Version: 1.5.0
|
|
4
4
|
Summary: A modular, zero-dependency command-line environment in Python.
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Requires-Python: >=3.10
|
|
@@ -23,7 +23,7 @@ Dynamic: license-file
|
|
|
23
23
|

|
|
24
24
|

|
|
25
25
|
|
|
26
|
-
> Documentation last updated: v1.
|
|
26
|
+
> Documentation last updated: v1.5.0
|
|
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
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
|
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
|
|
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
|
|
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
|