From 763a7fba16fc411d0416023197c6c6a483b2b076 Mon Sep 17 00:00:00 2001 From: hmoazam Date: Wed, 6 Nov 2024 00:54:30 +0000 Subject: [PATCH] Fixed by exluding attestations which were automatically enabled in an update to the release/v1 action --- .github/workflows/build_and_release.yml | 10 +++++++--- dspy/.internal_dspyai/setup.py | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_and_release.yml b/.github/workflows/build_and_release.yml index da234b7873..bc3e8b284c 100644 --- a/.github/workflows/build_and_release.yml +++ b/.github/workflows/build_and_release.yml @@ -84,15 +84,19 @@ jobs: run: python3 setup.py sdist bdist_wheel - name: Publish distribution 📦 to PyPI (dspy) uses: pypa/gh-action-pypi-publish@release/v1 # This requires a trusted publisher to be setup in pypi - # Publish to dspy-ai + with: + attestations: false + # Publish to dspy-ai - name: Update version in setup.py (dspy-ai) run: sed -i '/#replace_package_version_marker/{n;s/version="[^"]*"/version="${{ needs.extract-tag.outputs.version }}"/;}' ./dspy/.internal_dspyai/setup.py - name: Update package name in setup.py run: sed -i '/#replace_package_name_marker/{n;s/name="[^"]*"/name="dspy-ai"/;}' ./dspy/.internal_dspyai/setup.py - name: Update dspy dependency version in setup.py run: | - sed -i '/#replace_dspy_version_marker/{n;s/dspy==[^"]*/dspy==${{ needs.extract-tag.outputs.version }}/;}' ./dspy/.internal_dspyai/setup.py + sed -i '/#replace_dspy_version_marker/{n;s/dspy==[^"]*/dspy>=${{ needs.extract-tag.outputs.version }}/;}' ./dspy/.internal_dspyai/setup.py - name: Build a binary wheel run: python3 ./dspy/.internal_dspyai/setup.py sdist bdist_wheel - name: Publish distribution 📦 to PyPI (dspy-ai) - uses: pypa/gh-action-pypi-publish@release/v1 # This requires a trusted publisher to be setup in pypi \ No newline at end of file + uses: pypa/gh-action-pypi-publish@release/v1 # This requires a trusted publisher to be setup in pypi + with: + attestations: false \ No newline at end of file diff --git a/dspy/.internal_dspyai/setup.py b/dspy/.internal_dspyai/setup.py index 981085483c..0996fbb1f6 100644 --- a/dspy/.internal_dspyai/setup.py +++ b/dspy/.internal_dspyai/setup.py @@ -19,5 +19,5 @@ packages=find_packages(include=["dsp.*", "dspy.*", "dsp", "dspy"]), python_requires=">=3.9", #replace_dspy_version_marker - install_requires=["dspy==2.5.3"] + install_requires=["dspy>=2.5.3"] )