Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
56 lines (55 loc) · 1.82 KB
/
Copy pathsetup.py
File metadata and controls
56 lines (55 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
from setuptools import setup, find_packages
setup(
name="ai-code-detector",
version="0.3.0",
description="Probabilistic AI-generated code detection for GitHub repositories",
author="AI Code Detector Team",
# Single real package: src/ai_code_detector (#20). The old flat layout
# installed only analysis/ingest/model/report and no CLI at all.
packages=find_packages(where="src"),
package_data={"ai_code_detector": ["configs/*.yaml"]},
package_dir={"": "src"},
install_requires=[
"GitPython>=3.1.40",
"numpy>=1.24.0",
"scipy>=1.10.0",
"scikit-learn>=1.3.0",
"pandas>=2.0.0",
"click>=8.1.0",
"pyyaml>=6.0",
"tqdm>=4.65.0",
"colorama>=0.4.6",
"jinja2>=3.1.2",
"markdown>=3.5.0",
],
extras_require={
"dev": [
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
"jsonschema>=4.0",
],
# Tree-sitter structural metrics for JS/TS/Go/Rust (#7); see analysis.ast_backend.
"treesitter": [
"tree-sitter>=0.23",
"tree-sitter-python>=0.23",
"tree-sitter-javascript>=0.23",
"tree-sitter-typescript>=0.23",
"tree-sitter-go>=0.23",
"tree-sitter-rust>=0.23",
],
"mlx": [
"mlx>=0.0.10",
"mlx-lm>=0.0.10",
],
},
entry_points={
"console_scripts": [
"aicd=ai_code_detector.aicd:main",
# Deprecated (one release): print a notice, then run the old command.
"ai-code-detector=ai_code_detector.aicd:legacy_basic",
"ai-code-detector-enhanced=ai_code_detector.aicd:legacy_enhanced",
"ai-code-detector-agent-scan=ai_code_detector.aicd:legacy_agent_scan",
],
},
python_requires=">=3.9",
)