-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsetup.py
More file actions
98 lines (91 loc) · 2.92 KB
/
Copy pathsetup.py
File metadata and controls
98 lines (91 loc) · 2.92 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
"""
Setup script for the Pixelis project.
"""
from setuptools import setup, find_packages
from pathlib import Path
# Read README for long description
readme_file = Path(__file__).parent / "README.md"
if readme_file.exists():
long_description = readme_file.read_text(encoding="utf-8")
else:
long_description = "Pixelis: A novel vision-language agent for pixel-space reasoning"
# Read requirements
requirements_file = Path(__file__).parent / "requirements.txt"
if requirements_file.exists():
with open(requirements_file) as f:
requirements = [line.strip() for line in f if line.strip() and not line.startswith("#")]
else:
requirements = []
# Development dependencies
dev_requirements = [
"pytest>=7.0",
"pytest-cov>=4.0",
"pytest-xdist>=3.0",
"pytest-timeout>=2.0",
"black>=24.0",
"ruff>=0.2.0",
"mypy>=1.8",
"pre-commit>=3.0",
"ipython>=8.0",
"ipdb>=0.13",
"bandit>=1.7",
"safety>=3.0",
"pip-audit>=2.0",
]
# Documentation dependencies
docs_requirements = [
"sphinx>=7.0",
"sphinx-rtd-theme>=2.0",
"sphinx-autodoc-typehints>=1.25",
"myst-parser>=2.0",
]
# Visualization dependencies
viz_requirements = [
"matplotlib>=3.5",
"seaborn>=0.12",
"plotly>=5.0",
"graphviz>=0.20",
]
setup(
name="pixelis",
version="0.1.0",
author="Pixelis Team",
author_email="pixelis@example.com",
description="A novel vision-language agent for pixel-space reasoning",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/yourusername/pixelis",
project_urls={
"Documentation": "https://pixelis.readthedocs.io",
"Source": "https://github.com/yourusername/pixelis",
"Issues": "https://github.com/yourusername/pixelis/issues",
},
packages=find_packages(exclude=["tests", "tests.*", "reference", "reference.*"]),
include_package_data=True,
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
python_requires=">=3.10",
install_requires=requirements,
extras_require={
"dev": dev_requirements,
"docs": docs_requirements,
"viz": viz_requirements,
"all": dev_requirements + docs_requirements + viz_requirements,
},
entry_points={
"console_scripts": [
"pixelis-train=scripts.train:main",
"pixelis-eval=scripts.evaluate:main",
"pixelis-demo=scripts.demo_reproducibility:main",
],
},
zip_safe=False,
)