@@ -73,15 +73,15 @@ jobs:
73
73
- name : Install dependencies
74
74
run : python3 -m pip install --upgrade setuptools wheel twine
75
75
- name : Update version in setup.py (dspy)
76
- run : sed -i '/#replace_package_version_marker/{n;s/__version__= "[^"]*"/__version__="${{ needs.extract-tag.outputs.version }}"/;}' ./dspy/__metadata__.py
76
+ run : sed -i '/#replace_package_version_marker/{n;s/__version__ *= * "[^"]*"/__version__="${{ needs.extract-tag.outputs.version }}"/;}' ./dspy/__metadata__.py
77
77
- name : Update version in pyproject.toml
78
- run : sed -i '/#replace_package_version_marker/{n;s/version= "[^"]*"/version="${{ needs.extract-tag.outputs.version }}"/;}' pyproject.toml
78
+ run : sed -i '/#replace_package_version_marker/{n;s/version *= * "[^"]*"/version="${{ needs.extract-tag.outputs.version }}"/;}' pyproject.toml
79
79
# Publish to dspy
80
80
- name : Update package name in setup.py
81
81
run : |
82
- sed -i '/#replace_package_name_marker/{n;s/__name__= "[^"]*"/__name__="dspy"/;}' ./dspy/__metadata__.py
82
+ sed -i '/#replace_package_name_marker/{n;s/__name__ *= * "[^"]*"/__name__="dspy"/;}' ./dspy/__metadata__.py
83
83
- name : Update package name in pyproject.toml
84
- run : sed -i '/#replace_package_name_marker/{n;s/name= "[^"]*"/name="dspy"/;}' pyproject.toml
84
+ run : sed -i '/#replace_package_name_marker/{n;s/name *= * "[^"]*"/name="dspy"/;}' pyproject.toml
85
85
# Remove pyproject.toml temporarily to avoid conflicts
86
86
- name : Temporarily remove pyproject.toml
87
87
run : mv pyproject.toml pyproject.toml.bak
93
93
attestations : false
94
94
# Publish to dspy-ai
95
95
- name : Update version in setup.py (dspy-ai)
96
- run : sed -i '/#replace_package_version_marker/{n;s/version= "[^"]*"/version="${{ needs.extract-tag.outputs.version }}"/;}' ./dspy/.internal_dspyai/setup.py
96
+ run : sed -i '/#replace_package_version_marker/{n;s/version *= * "[^"]*"/version="${{ needs.extract-tag.outputs.version }}"/;}' ./dspy/.internal_dspyai/setup.py
97
97
- name : Update package name in setup.py
98
- run : sed -i '/#replace_package_name_marker/{n;s/name= "[^"]*"/name="dspy-ai"/;}' ./dspy/.internal_dspyai/setup.py
98
+ run : sed -i '/#replace_package_name_marker/{n;s/name *= * "[^"]*"/name="dspy-ai"/;}' ./dspy/.internal_dspyai/setup.py
99
99
- name : Update dspy dependency version in setup.py
100
100
run : |
101
101
sed -i '/#replace_dspy_version_marker/{n;s/dspy>=[^"]*/dspy>=${{ needs.extract-tag.outputs.version }}/;}' ./dspy/.internal_dspyai/setup.py
0 commit comments