From 7bd1395e683a7f49ead6edc9e59ebaf00af01886 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Sat, 5 Aug 2023 10:31:34 -0700 Subject: [PATCH] better pyproject.toml --- .DS_Store | Bin 6148 -> 6148 bytes .circleci/config.yml | 6 ++-- .github/workflows/publish_pypi.yml | 35 ----------------------- .github/workflows/tests.yml | 44 ----------------------------- 4 files changed, 3 insertions(+), 82 deletions(-) delete mode 100644 .github/workflows/publish_pypi.yml delete mode 100644 .github/workflows/tests.yml diff --git a/.DS_Store b/.DS_Store index 415a81792aa6dfc56f055757b12ae057b80b3ac0..17cee6a0acfa4d370d7d9b919baa2fb3a72b4c2f 100644 GIT binary patch delta 31 ncmZoMXfc@J&&ahgU^g=(*Jd6TY39k{>>DOF7;I+e_{$Ffm&ysQ delta 46 zcmZoMXfc@J&&a(oU^g=(_hudzX=ZK?hGK?Ph7yKShJwirtfGvvlO@>qZ)WHC%MSn( C8Vk+< diff --git a/.circleci/config.yml b/.circleci/config.yml index 5e2ba14087..e77cacca82 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -43,8 +43,8 @@ jobs: - run: name: PyPI publish command: | - if [ -n "$(git diff --name-only $CIRCLE_SHA1^..$CIRCLE_SHA1 | grep 'setup.py')" ]; then - echo "setup.py modified" + if [ -n "$(git diff --name-only $CIRCLE_SHA1^..$CIRCLE_SHA1 | grep 'pyproject.toml')" ]; then + echo "pyproject.toml modified" echo -e "[pypi]\nusername = __token__\npassword = $PYPI_API_TOKEN" > ~/.pypirc python -m pip install --upgrade pip pip install build @@ -60,7 +60,7 @@ jobs: ls dist/ twine upload --verbose dist/* else - echo "No changes to setup.py. Skipping PyPI publish." + echo "No changes to pyproject.toml. Skipping PyPI publish." circleci step halt fi diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml deleted file mode 100644 index a6b3531bd6..0000000000 --- a/.github/workflows/publish_pypi.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Publish to PyPI -on: - push: - branches: - - main # You can change this to the branch you want to publish from - paths: - - 'setup.py' -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: 3.8 # You can change this to the Python version required for your package - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install twine - pip install wheel - pip install --upgrade setuptools - - - name: Build package - run: python setup.py sdist bdist_wheel - - - name: Upload to PyPI - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} - run: twine upload dist/* diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml deleted file mode 100644 index d899f2360c..0000000000 --- a/.github/workflows/tests.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: liteLLM Dev Tests - -on: [push, pull_request] - -env: - OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} - AZURE_API_BASE: ${{ secrets.AZURE_API_BASE }} - AZURE_API_VERSION: ${{ secrets.AZURE_API_VERSION }} - AZURE_API_KEY: ${{ secrets.AZURE_API_KEY }} - REPLICATE_API_TOKEN: ${{ secrets.REPLICATE_API_TOKEN }} - COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }} - POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }} - POSTHOG_API_URL: ${{ secrets.POSTHOG_API_URL }} - SLACK_API_TOKEN: ${{ secrets.SLACK_API_TOKEN }} - SLACK_API_SECRET: ${{ secrets.SLACK_API_SECRET }} - SLACK_API_CHANNEL: ${{ secrets.SLACK_API_CHANNEL }} - SENTRY_API_URL: ${{ secrets.SENTRY_API_URL }} - SENTRY_API_TRACE_RATE: ${{ secrets.SENTRY_API_TRACE_RATE }} - -jobs: - test: - name: Run Tests - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: 3.8 # Replace 'x' with the desired version (e.g., 3.6, 3.7, 3.8) - - - name: Install dependencies - run: pip install -r requirements.txt - - - name: Run tests - run: pytest litellm/tests - - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }}