-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
76 lines (67 loc) · 2.17 KB
/
setup.py
File metadata and controls
76 lines (67 loc) · 2.17 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
"""Setup configuration for code2llm."""
from setuptools import setup, find_packages
import os
# Read version
def read_version():
version_path = os.path.join(os.path.dirname(__file__), "VERSION")
with open(version_path, "r") as f:
return f.read().strip()
version = read_version()
# Read long description
def read_readme():
readme_path = os.path.join(os.path.dirname(__file__), "README.md")
if os.path.exists(readme_path):
with open(readme_path, "r", encoding="utf-8") as f:
return f.read()
return "Python code flow analysis tool"
setup(
name="code2llm",
version=version,
description="Python code flow analysis tool - CFG, DFG, and call graph extraction",
long_description=read_readme(),
long_description_content_type="text/markdown",
author="STTS Project",
author_email="",
url="https://github.com/wronai/stts",
packages=find_packages(),
entry_points={
"console_scripts": [
"code2llm=code2llm.cli:main",
],
},
install_requires=[
"networkx>=2.6",
"matplotlib>=3.4",
"pyyaml>=5.4",
"numpy>=1.20",
"code2logic",
],
extras_require={
"dev": [
"pytest>=6.2",
"pytest-cov>=2.12",
"black>=21.0",
"flake8>=3.9",
"mypy>=0.910",
],
},
python_requires=">=3.8",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Code Generators",
],
keywords="static-analysis control-flow data-flow call-graph reverse-engineering",
project_urls={
"Source": "https://github.com/wronai/stts",
"Tracker": "https://github.com/wronai/stts/issues",
},
)