DSPy: The framework for programming—not prompting—language models
Python
Fixed by exluding attestations which were automatically enabled in an update to the release/v1 action (#1761)
Hanna Moazam8c0be198496d
diff --git a/.github/workflows/build_and_release.yml b/.github/workflows/build_and_release.ymlindex da234b787..bc3e8b284 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.pyrun: sed -i '/#replace_package_name_marker/{n;s/name="[^"]*"/name="dspy-ai"/;}' ./dspy/.internal_dspyai/setup.py- name: Update dspy dependency version in setup.pyrun: |- 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 wheelrun: 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 filediff --git a/dspy/.internal_dspyai/setup.py b/dspy/.internal_dspyai/setup.pyindex 981085483..0996fbb1f 100644--- a/dspy/.internal_dspyai/setup.py+++ b/dspy/.internal_dspyai/setup.py@@ -19,5 +19,5 @@ setup(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"])