Skip to content

Commit 593e0d3

Browse files
authored
Move internal_dspy outside dspy module (#8400)
* move internal_dspy outside dspy module * lint * move internal_dspyai under .github * fix ci
1 parent 440101d commit 593e0d3

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

dspy/.internal_dspyai/pyproject.toml renamed to .github/.internal_dspyai/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ requires = ["setuptools>=40.8.0", "wheel"]
1919
build-backend = "setuptools.build_meta"
2020

2121
[tool.setuptools.packages.find]
22-
include = ["dsp.*", "dspy.*", "dsp", "dspy"]
22+
include = ["dsp.*", "dspy.*", "dsp", "dspy"]

.github/workflows/build_and_release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,19 +110,19 @@ jobs:
110110
attestations: false
111111
# Publish to dspy-ai
112112
- name: Update package name in pyproject.toml
113-
run: sed -i '/#replace_package_name_marker/{n;s/name *= *"[^"]*"/name="dspy-ai"/;}' ./dspy/.internal_dspyai/pyproject.toml
113+
run: sed -i '/#replace_package_name_marker/{n;s/name *= *"[^"]*"/name="dspy-ai"/;}' .github/.internal_dspyai/pyproject.toml
114114
- name: Update version for dspy-ai release
115-
run: sed -i '/#replace_package_version_marker/{n;s/version *= *"[^"]*"/version="${{ needs.extract-tag.outputs.version }}"/;}' ./dspy/.internal_dspyai/pyproject.toml
115+
run: sed -i '/#replace_package_version_marker/{n;s/version *= *"[^"]*"/version="${{ needs.extract-tag.outputs.version }}"/;}' .github/.internal_dspyai/pyproject.toml
116116
- name: Update dspy dependency for dspy-ai release
117117
run: |
118-
sed -i '/#replace_dspy_version_marker/{n;s/dspy *>= *"[^"]*/dspy>=${{ needs.extract-tag.outputs.version }}/;}' ./dspy/.internal_dspyai/pyproject.toml
118+
sed -i '/#replace_dspy_version_marker/{n;s/dspy>=[^"]*/dspy>=${{ needs.extract-tag.outputs.version }}/;}' .github/.internal_dspyai/pyproject.toml
119119
- name: Build a binary wheel (dspy-ai)
120-
run: python3 -m build ./dspy/.internal_dspyai/
120+
run: python3 -m build .github/.internal_dspyai/
121121
- name: Publish distribution 📦 to PyPI (dspy-ai)
122122
uses: pypa/gh-action-pypi-publish@release/v1
123123
with:
124124
attestations: false
125-
packages-dir: ./dspy/.internal_dspyai/dist/
125+
packages-dir: .github/.internal_dspyai/dist/
126126
- uses: stefanzweifel/git-auto-commit-action@v5 # auto commit changes to main
127127
with:
128128
commit_message: Update versions

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ docs/docs/**/*.json*
6565
*.tar.gz
6666

6767
test_before_pypi/
68-
dspy/.internal_dspyai/dist/
68+
.github/.internal_dspyai/dist/

0 commit comments

Comments
 (0)