aislop 0.10.2__py3-none-any.whl

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.
@@ -0,0 +1,136 @@
1
+ Metadata-Version: 2.4
2
+ Name: aislop
3
+ Version: 0.10.2
4
+ Summary: Python launcher for the aislop CLI
5
+ Author: Kenny Olawuwo
6
+ License: MIT
7
+ Project-URL: Homepage, https://scanaislop.com
8
+ Project-URL: Repository, https://github.com/scanaislop/aislop
9
+ Project-URL: Issues, https://github.com/scanaislop/aislop/issues
10
+ Keywords: aislop,ai-slop,cli,code-quality,static-analysis
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3 :: Only
17
+ Classifier: Topic :: Software Development :: Quality Assurance
18
+ Requires-Python: >=3.9
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Dynamic: license-file
22
+
23
+ # aislop for Python
24
+
25
+ Python launcher package for the `aislop` CLI.
26
+
27
+ This package is for Python and `pipx` users who want an `aislop` command from Python packaging tools. Node.js must be available on the machine.
28
+
29
+ It exposes:
30
+
31
+ - `aislop`
32
+ - `aislop-mcp`
33
+
34
+ ## Install
35
+
36
+ Private install while this repo is private:
37
+
38
+ ```sh
39
+ pipx install git+ssh://git@github.com/scanaislop/aislop-py.git
40
+ ```
41
+
42
+ Public install after publishing to PyPI:
43
+
44
+ ```sh
45
+ pipx install aislop
46
+ ```
47
+
48
+ ## Use
49
+
50
+ ```sh
51
+ aislop scan
52
+ aislop fix
53
+ aislop ci
54
+ aislop-mcp
55
+ ```
56
+
57
+ The launcher keeps the Python package small while exposing the same `aislop` commands.
58
+
59
+ ## Versioning Model
60
+
61
+ The Python package version should track the CLI version. For example, `aislop==0.10.2` launches the `0.10.2` CLI.
62
+
63
+ Do not make a fixed PyPI release float to a newer CLI version automatically. A user who installs a fixed PyPI version expects that installed package to keep running the same CLI version until they upgrade it.
64
+
65
+ Users can run `aislop upgrade` to check whether a newer release is available.
66
+
67
+ ## Upgrade Users
68
+
69
+ Private git install:
70
+
71
+ ```sh
72
+ pipx install --force git+ssh://git@github.com/scanaislop/aislop-py.git
73
+ ```
74
+
75
+ Public PyPI install:
76
+
77
+ ```sh
78
+ pipx upgrade aislop
79
+ ```
80
+
81
+ Users can run `aislop upgrade` at any time to check whether a newer release is available.
82
+
83
+ ## Update The Launcher
84
+
85
+ Run this after a new `aislop` version is published:
86
+
87
+ ```sh
88
+ scripts/update-version.sh 0.10.3
89
+ ```
90
+
91
+ Then validate:
92
+
93
+ ```sh
94
+ PYTHONPATH=src python3 -m unittest discover -s tests
95
+ python3 -m pip wheel . --wheel-dir dist
96
+ pipx install --force .
97
+ aislop --version
98
+ ```
99
+
100
+ Commit and push:
101
+
102
+ ```sh
103
+ git add pyproject.toml src/aislop_py tests
104
+ git commit -m "Update aislop launcher to 0.10.3"
105
+ git push
106
+ ```
107
+
108
+ ## Publish To PyPI
109
+
110
+ Publishing is automated from GitHub Actions:
111
+
112
+ - `test` publishes to TestPyPI.
113
+ - `develop` does not publish.
114
+ - `main` publishes to PyPI.
115
+
116
+ See [`docs/publishing.md`](docs/publishing.md).
117
+
118
+ ## Troubleshooting
119
+
120
+ If the command exits with a Node.js tooling error, install Node.js first:
121
+
122
+ ```sh
123
+ brew install node
124
+ ```
125
+
126
+ If the wrong version runs, reinstall the launcher:
127
+
128
+ ```sh
129
+ pipx install --force aislop
130
+ ```
131
+
132
+ For private installs:
133
+
134
+ ```sh
135
+ pipx install --force git+ssh://git@github.com/scanaislop/aislop-py.git
136
+ ```
@@ -0,0 +1,8 @@
1
+ aislop-0.10.2.dist-info/licenses/LICENSE,sha256=kUAHabOw7KyujnE3-uqIkiVBRPblS70jByO5aFa40w8,1070
2
+ aislop_py/__init__.py,sha256=ICJzE-aY3MMjxY3iW7uSc6KTAbO5Hv4iL8RHoViEr_E,74
3
+ aislop_py/cli.py,sha256=8gW4XADCcFu-ZH0c5EqMiAvL2f1rTOffg8Eu3o0HDZ4,969
4
+ aislop-0.10.2.dist-info/METADATA,sha256=GM52vm7rB8uXZ9XUxiu5y7vk5VKPKUahbUGQQ0IVXjs,3044
5
+ aislop-0.10.2.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
6
+ aislop-0.10.2.dist-info/entry_points.txt,sha256=w4CZIZFXdzWoC79n22kEG4-6oPsD1ruk86Dz9ik6l3k,82
7
+ aislop-0.10.2.dist-info/top_level.txt,sha256=6Mjb39zKVgTrRSkQzpNrj4I-hCoVPGopZGoe0QL_PNE,10
8
+ aislop-0.10.2.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ aislop = aislop_py.cli:main
3
+ aislop-mcp = aislop_py.cli:main_mcp
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Kenny Olawuwo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ aislop_py
aislop_py/__init__.py ADDED
@@ -0,0 +1,3 @@
1
+ """Python launcher package for the aislop CLI."""
2
+
3
+ __version__ = "0.10.2"
aislop_py/cli.py ADDED
@@ -0,0 +1,42 @@
1
+ from __future__ import annotations
2
+
3
+ import os
4
+ import shutil
5
+ import sys
6
+
7
+ NPM_PACKAGE = os.environ.get("AISLOP_NPM_PACKAGE", "aislop@0.10.2")
8
+
9
+
10
+ def _command(bin_name: str, argv: list[str]) -> list[str] | None:
11
+ npx = shutil.which("npx")
12
+ if npx:
13
+ return [npx, "--yes", "--package", NPM_PACKAGE, bin_name, *argv]
14
+
15
+ npm = shutil.which("npm")
16
+ if npm:
17
+ return [npm, "exec", "--yes", "--package", NPM_PACKAGE, "--", bin_name, *argv]
18
+
19
+ return None
20
+
21
+
22
+ def _run(bin_name: str, argv: list[str] | None = None) -> int:
23
+ args = list(sys.argv[1:] if argv is None else argv)
24
+ command = _command(bin_name, args)
25
+ if command is None:
26
+ print("aislop for Python requires Node.js tooling on PATH.", file=sys.stderr)
27
+ return 127
28
+
29
+ os.execv(command[0], command)
30
+ return 127
31
+
32
+
33
+ def main() -> int:
34
+ return _run("aislop")
35
+
36
+
37
+ def main_mcp() -> int:
38
+ return _run("aislop-mcp")
39
+
40
+
41
+ if __name__ == "__main__":
42
+ raise SystemExit(main())