Skip to content

Commit 8c0be19

Browse files
authored
Fixed by exluding attestations which were automatically enabled in an update to the release/v1 action (#1761)
1 parent d7d6fae commit 8c0be19

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/build_and_release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,19 @@ jobs:
8484
run: python3 setup.py sdist bdist_wheel
8585
- name: Publish distribution 📦 to PyPI (dspy)
8686
uses: pypa/gh-action-pypi-publish@release/v1 # This requires a trusted publisher to be setup in pypi
87-
# Publish to dspy-ai
87+
with:
88+
attestations: false
89+
# Publish to dspy-ai
8890
- name: Update version in setup.py (dspy-ai)
8991
run: sed -i '/#replace_package_version_marker/{n;s/version="[^"]*"/version="${{ needs.extract-tag.outputs.version }}"/;}' ./dspy/.internal_dspyai/setup.py
9092
- name: Update package name in setup.py
9193
run: sed -i '/#replace_package_name_marker/{n;s/name="[^"]*"/name="dspy-ai"/;}' ./dspy/.internal_dspyai/setup.py
9294
- name: Update dspy dependency version in setup.py
9395
run: |
94-
sed -i '/#replace_dspy_version_marker/{n;s/dspy==[^"]*/dspy==${{ needs.extract-tag.outputs.version }}/;}' ./dspy/.internal_dspyai/setup.py
96+
sed -i '/#replace_dspy_version_marker/{n;s/dspy==[^"]*/dspy>=${{ needs.extract-tag.outputs.version }}/;}' ./dspy/.internal_dspyai/setup.py
9597
- name: Build a binary wheel
9698
run: python3 ./dspy/.internal_dspyai/setup.py sdist bdist_wheel
9799
- name: Publish distribution 📦 to PyPI (dspy-ai)
98-
uses: pypa/gh-action-pypi-publish@release/v1 # This requires a trusted publisher to be setup in pypi
100+
uses: pypa/gh-action-pypi-publish@release/v1 # This requires a trusted publisher to be setup in pypi
101+
with:
102+
attestations: false

dspy/.internal_dspyai/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
packages=find_packages(include=["dsp.*", "dspy.*", "dsp", "dspy"]),
2020
python_requires=">=3.9",
2121
#replace_dspy_version_marker
22-
install_requires=["dspy==2.5.3"]
22+
install_requires=["dspy>=2.5.3"]
2323
)

0 commit comments

Comments
 (0)