Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(arize-phoenix): add service #1

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 18 additions & 11 deletions Formula/arize-phoenix.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
class ArizePhoenix < Formula

Check warning on line 1 in Formula/arize-phoenix.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

`brew linkage --cached --test --strict i-am-bee/beeai/arize-phoenix` failed on Linux!

libffi
include Language::Python::Virtualenv

desc "AI Observability & Evaluation"
homepage "https://docs.arize.com/phoenix"
url "https://files.pythonhosted.org/packages/24/d4/2b765ad22ea4fea36e3cd9e7e6e68aec7deec9cb2c150aa79a3664f7d85a/arize_phoenix-7.12.0.tar.gz"
sha256 "f516da21f7950d2b77164a8b001f612e11ac6c365a9345f7f2c2852f8b102f9a"
license "ELv2"

depends_on "python@3.13"

depends_on "apache-arrow"
depends_on "certifi"
depends_on "cryptography"
depends_on "numpy"
depends_on "scipy"
license "Elastic-2.0"

depends_on "cmake" => :build
depends_on "cython" => :build
Expand All @@ -25,6 +17,13 @@
depends_on "python-setuptools" => :build
depends_on "rust" => :build

depends_on "apache-arrow"
depends_on "certifi"
depends_on "cryptography"
depends_on "numpy"
depends_on "python@3.13"
depends_on "scipy"

resource "aioitertools" do
url "https://files.pythonhosted.org/packages/06/de/38491a84ab323b47c7f86e94d2830e748780525f7a10c8600b67ead7e9ea/aioitertools-0.12.0.tar.gz"
sha256 "c2a9055b4fbb7705f561b9d86053e8af5d10cc845d22c32008c43490b2d8dd6b"
Expand Down Expand Up @@ -292,8 +291,8 @@

resource "sqlean-py" do
# source dist is broken on PyPI -- the external SQLite sources are missing -- need to download and build from Git
url "https://github.com/nalgeon/sqlean.py/archive/refs/tags/3.47.0.zip"
sha256 "dec85746a61d51e695cf32f1952f3184526691e32fb2be86d844bff2fa7407c0"
url "https://github.com/nalgeon/sqlean.py/archive/refs/tags/3.47.0.tar.gz"
sha256 "d850488ba72a79ffa2c9c4651b78e2871d260c7c63f72f731011786a0a6feac2"
end

resource "starlette" do
Expand Down Expand Up @@ -370,6 +369,14 @@
venv.pip_install_and_link buildpath
end

service do
run [opt_bin/"phoenix", "serve"]
keep_alive true
error_log_path var/"log/phoenix.log"
log_path var/"log/phoenix.log"
working_dir var
end

test do
system bin/"phoenix", "--help"
end
Expand Down