File size: 1,261 Bytes
5e56bcf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
[build-system]
requires = ["setuptools>=61.0", "wheel", "Cython"]
build-backend = "setuptools.build_meta"

[project]
name = "upif"
version = "0.1.4"
description = "Universal Prompt Injection Firewall - A local-first AI security layer."
authors = [
  { name = "Yash Dhone", email = "yash.dhone01@gmail.com" },
]
classifiers = [
    "Programming Language :: Python :: 3",
    "License :: OSI Approved :: MIT License",
    "Operating System :: OS Independent",
]
requires-python = ">=3.10"
dependencies = [
    "pydantic>=2.0",
    "cryptography>=41.0",
    "setuptools",
    "requests",
]

[project.optional-dependencies]
pro = [
    "onnxruntime>=1.16",
    "tokenizers>=0.14",
]
dev = [
    "pytest",
    "hypothesis",
]

[tool.setuptools]
packages = {find = {}}
include-package-data = true

[tool.setuptools.package-data]
upif = ["data/*.json"]

[tool.cibuildwheel]
# Build for Python 3.10, 3.11, 3.12 on Linux, Windows, and macOS
build = "cp310-* cp311-* cp312-*"
skip = "pp* *musllinux*" # Skip PyPy and Musl Linux for now to save time/complexity

[tool.cibuildwheel.linux]
archs = ["x86_64"] # Standard Colab/Server architecture

[tool.cibuildwheel.windows]
archs = ["AMD64"]

[tool.cibuildwheel.macos]
archs = ["x86_64", "arm64"] # Intel and Apple Silicon