flyshell 1.3.4__tar.gz → 1.3.6__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.3.4/src/flyshell.egg-info → flyshell-1.3.6}/PKG-INFO +2 -2
- flyshell-1.3.6/c_src/diskops/diskops.c +29 -0
- flyshell-1.3.6/c_src/diskops/posix/placeholder.c +2 -0
- flyshell-1.3.6/c_src/diskops/shared/placeholder.c +2 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/pyproject.toml +16 -2
- flyshell-1.3.6/setup.py +23 -0
- flyshell-1.3.6/src/flyshell/__init__.py +22 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/src/flyshell/constants.py +2 -2
- flyshell-1.3.6/src/flyshell/startup/__init__.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6/src/flyshell.egg-info}/PKG-INFO +2 -2
- {flyshell-1.3.4 → flyshell-1.3.6}/src/flyshell.egg-info/SOURCES.txt +5 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/tests/test_diskops.py +5 -0
- flyshell-1.3.4/src/flyshell/__init__.py +0 -10
- {flyshell-1.3.4 → flyshell-1.3.6}/LICENSE +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/README.md +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/setup.cfg +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/src/flyshell/abstract/__init__.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/src/flyshell/abstract/base_cmd.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/src/flyshell/abstract/base_plugin.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/src/flyshell/abstract/parent_cmd.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/src/flyshell/accounts/__init__.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/src/flyshell/accounts/auth.py +0 -0
- {flyshell-1.3.4/src/flyshell/builtin → flyshell-1.3.6/src/flyshell/bin}/__init__.py +0 -0
- {flyshell-1.3.4/src/flyshell/core → flyshell-1.3.6/src/flyshell/builtin}/__init__.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/src/flyshell/builtin/diskops.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/src/flyshell/builtin/fs.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/src/flyshell/builtin/pkg.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/src/flyshell/builtin/system.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/src/flyshell/builtin/utils.py +0 -0
- {flyshell-1.3.4/src/flyshell/startup → flyshell-1.3.6/src/flyshell/core}/__init__.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/src/flyshell/core/console.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/src/flyshell/core/data.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/src/flyshell/core/directory.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/src/flyshell/main.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/src/flyshell/startup/deps.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/src/flyshell/startup/env.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/src/flyshell/startup/loader.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/src/flyshell.egg-info/dependency_links.txt +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/src/flyshell.egg-info/entry_points.txt +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/src/flyshell.egg-info/requires.txt +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/src/flyshell.egg-info/top_level.txt +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/tests/test_auth.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/tests/test_data.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/tests/test_deps.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/tests/test_directory.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/tests/test_env.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/tests/test_fs.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/tests/test_loader.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/tests/test_pkg.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/tests/test_security.py +0 -0
- {flyshell-1.3.4 → flyshell-1.3.6}/tests/test_utils.py +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flyshell
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.6
|
|
4
4
|
Summary: A modular, zero-dependency command-line environment in Python.
|
|
5
|
-
License: MIT
|
|
5
|
+
License-Expression: MIT
|
|
6
6
|
Requires-Python: >=3.10
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
8
|
License-File: LICENSE
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// c_src/diskops/diskops.c
|
|
2
|
+
|
|
3
|
+
#define PY_SSIZE_T_CLEAN
|
|
4
|
+
#include <Python.h>
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
static PyObject* method_ping(PyObject* self, PyObject* args) {
|
|
8
|
+
return PyLong_FromLong(42);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
static PyMethodDef NativeDiskMethods[] = {
|
|
13
|
+
{"ping", method_ping, METH_NOARGS, "Test connectivity to C engine."},
|
|
14
|
+
{NULL, NULL, 0, NULL}
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
static struct PyModuleDef nativediskmodule = {
|
|
19
|
+
PyModuleDef_HEAD_INIT,
|
|
20
|
+
"_native_diskops",
|
|
21
|
+
"Native C engine backend for Flyshell",
|
|
22
|
+
-1,
|
|
23
|
+
NativeDiskMethods
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
PyMODINIT_FUNC PyInit__native_diskops(void) {
|
|
28
|
+
return PyModule_Create(&nativediskmodule);
|
|
29
|
+
}
|
|
@@ -1,14 +1,28 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["setuptools>=
|
|
2
|
+
requires = ["setuptools>=77.0.0", "wheel"]
|
|
3
3
|
build-backend = "setuptools.build_meta"
|
|
4
4
|
|
|
5
|
+
[tool.cibuildwheel]
|
|
6
|
+
build = "cp310-* cp311-* cp312-* cp313-* cp314-*"
|
|
7
|
+
skip = "*-win32 *i686 *musllinux*"
|
|
8
|
+
|
|
9
|
+
test-requires = ["pytest"]
|
|
10
|
+
test-command = "pytest {project}/tests"
|
|
11
|
+
|
|
12
|
+
[tool.cibuildwheel.macos]
|
|
13
|
+
archs = ["x86_64", "arm64"]
|
|
14
|
+
|
|
15
|
+
[tool.cibuildwheel.linux]
|
|
16
|
+
archs = ["auto", "aarch64"]
|
|
17
|
+
|
|
5
18
|
[project]
|
|
6
19
|
name = "flyshell"
|
|
7
20
|
dynamic = ["version"]
|
|
8
21
|
description = "A modular, zero-dependency command-line environment in Python."
|
|
9
22
|
readme = "README.md"
|
|
10
23
|
requires-python = ">=3.10"
|
|
11
|
-
license =
|
|
24
|
+
license = "MIT"
|
|
25
|
+
license-files = ["LICENSE"]
|
|
12
26
|
|
|
13
27
|
[project.scripts]
|
|
14
28
|
flyshell = "flyshell.main:main"
|
flyshell-1.3.6/setup.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
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/placeholder.c",
|
|
9
|
+
]
|
|
10
|
+
|
|
11
|
+
if sys.platform == "win32":
|
|
12
|
+
sources.append("c_src/diskops/win32/placeholder.c")
|
|
13
|
+
else:
|
|
14
|
+
sources.append("c_src/diskops/posix/placeholder.c")
|
|
15
|
+
|
|
16
|
+
native_disk = Extension(
|
|
17
|
+
name="flyshell.bin._native_diskops",
|
|
18
|
+
sources=sources,
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
setup(
|
|
22
|
+
ext_modules=[native_disk],
|
|
23
|
+
)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# src/flyshell/__init__.py
|
|
2
|
+
|
|
3
|
+
try:
|
|
4
|
+
from flyshell.abstract.base_plugin import BasePlugin
|
|
5
|
+
|
|
6
|
+
__all__ = ["BasePlugin"]
|
|
7
|
+
except ImportError:
|
|
8
|
+
BasePlugin = None
|
|
9
|
+
__all__ = []
|
|
10
|
+
pass
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
try:
|
|
14
|
+
from flyshell.bin import _native_diskops
|
|
15
|
+
except ImportError:
|
|
16
|
+
_native_diskops = None
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def check_native() -> bool:
|
|
20
|
+
if _native_diskops is not None:
|
|
21
|
+
return _native_diskops.ping() == 42
|
|
22
|
+
return False
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flyshell
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.6
|
|
4
4
|
Summary: A modular, zero-dependency command-line environment in Python.
|
|
5
|
-
License: MIT
|
|
5
|
+
License-Expression: MIT
|
|
6
6
|
Requires-Python: >=3.10
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
8
|
License-File: LICENSE
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
LICENSE
|
|
2
2
|
README.md
|
|
3
3
|
pyproject.toml
|
|
4
|
+
setup.py
|
|
5
|
+
c_src/diskops/diskops.c
|
|
6
|
+
c_src/diskops/posix/placeholder.c
|
|
7
|
+
c_src/diskops/shared/placeholder.c
|
|
4
8
|
src/flyshell/__init__.py
|
|
5
9
|
src/flyshell/constants.py
|
|
6
10
|
src/flyshell/main.py
|
|
@@ -16,6 +20,7 @@ src/flyshell/abstract/base_plugin.py
|
|
|
16
20
|
src/flyshell/abstract/parent_cmd.py
|
|
17
21
|
src/flyshell/accounts/__init__.py
|
|
18
22
|
src/flyshell/accounts/auth.py
|
|
23
|
+
src/flyshell/bin/__init__.py
|
|
19
24
|
src/flyshell/builtin/__init__.py
|
|
20
25
|
src/flyshell/builtin/diskops.py
|
|
21
26
|
src/flyshell/builtin/fs.py
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# tests/test_diskops.py
|
|
2
2
|
|
|
3
3
|
from flyshell.builtin import diskops
|
|
4
|
+
import flyshell
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
def test_touch_creates_file_and_updates_timestamp(tmp_path):
|
|
@@ -119,3 +120,7 @@ def test_rmdir_empty_and_non_empty(tmp_path):
|
|
|
119
120
|
code, msg = cmd.execute(["-f", str(target_dir)])
|
|
120
121
|
assert code == 0
|
|
121
122
|
assert not target_dir.exists()
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
def test_native_disk_c_ext():
|
|
126
|
+
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
|
|
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
|