-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
73 lines (66 loc) · 2.01 KB
/
setup.py
File metadata and controls
73 lines (66 loc) · 2.01 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Setup script for RainbowPlus."""
import os
from setuptools import setup, find_packages
# Get the long description from the README file
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
# Define package metadata
NAME = "rainbowplus"
VERSION = "0.1.0"
DESCRIPTION = "RainbowPlus: Enhancing Adversarial Prompt Generation via Evolutionary Quality-Diversity Search"
AUTHOR = "Knovel Engineering Lab"
AUTHOR_EMAIL = "andrew.dang@knoveleng.com"
URL = "https://github.com/knoveleng/rainbowplus"
LICENSE = "MIT"
# Define package dependencies
REQUIRED_PACKAGES = [
"vllm==0.6.3.post1",
"openai>=1.0.0",
"nltk>=3.8.1",
"pydantic>=2.0.0",
"PyYAML>=6.0",
"datasets>=2.14.0",
]
# Define development dependencies
DEV_PACKAGES = [
"pytest>=7.0.0",
"black>=23.0.0",
"isort>=5.12.0",
"flake8>=6.0.0",
]
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=long_description,
long_description_content_type="text/markdown",
author=AUTHOR,
author_email=AUTHOR_EMAIL,
url=URL,
license=LICENSE,
packages=find_packages(exclude=["tests", "*.tests", "*.tests.*", "tests.*"]),
include_package_data=True,
install_requires=REQUIRED_PACKAGES,
extras_require={
"dev": DEV_PACKAGES,
},
python_requires=">=3.8",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
keywords="llm, language-model, evaluation, robustness, ai-safety",
project_urls={
"Bug Reports": f"{URL}/issues",
"Source": URL,
},
)