From a0a2fec8dc0c7da009029640d3316cb1091ee1c1 Mon Sep 17 00:00:00 2001 From: Hailey Schoelkopf <65563625+haileyschoelkopf@users.noreply.github.com> Date: Wed, 31 Jan 2024 10:12:46 -0500 Subject: [PATCH] Make dependencies compatible with PyPI (#1378) * make deps not point to github urls * formatting * try making PyPI only run on tag pushes --- .github/workflows/publish.yml | 5 ++++- pyproject.toml | 8 +++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8574c079fc..be3481754e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,6 +1,9 @@ name: Publish Python distribution to PyPI -on: push +on: + push: + tags: + - '*' jobs: build: diff --git a/pyproject.toml b/pyproject.toml index 3840445b11..bbf6162a31 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "lm_eval" -version = "0.4.0" +version = "0.4.1" authors = [ {name="EleutherAI", email="contact@eleuther.ai"} ] @@ -56,16 +56,14 @@ Repository = "https://github.com/EleutherAI/lm-evaluation-harness" [project.optional-dependencies] anthropic = ["anthropic"] dev = ["pytest", "pytest-cov", "pytest-xdist", "pre-commit", "mypy"] -gptq = ["auto-gptq[triton] @ git+https://github.com/PanQiWei/AutoGPTQ"] +gptq = ["auto-gptq[triton]>=0.6.0"] ifeval = ["langdetect", "immutabledict"] mamba = ["mamba_ssm", "causal-conv1d==1.0.2"] math = ["sympy>=1.12", "antlr4-python3-runtime==4.11"] multilingual = ["nagisa>=0.2.7", "jieba>=0.42.1", "pycountry"] openai = ["openai==1.3.9", "tiktoken"] optimum = ["optimum[openvino]"] -promptsource = [ - "promptsource @ git+https://github.com/bigscience-workshop/promptsource.git#egg=promptsource" -] +promptsource = ["promptsource>=0.2.3"] sentencepiece = ["sentencepiece>=0.1.98", "protobuf>=4.22.1"] testing = ["pytest", "pytest-cov", "pytest-xdist"] vllm = ["vllm<=0.2.5"]