DSPy: The framework for programming—not prompting—language models
Python
Move internal_dspy outside dspy module (#8400)
TomuHirata593e0d3d56a7
diff --git a/dspy/.internal_dspyai/internals/build-and-release.md b/.github/.internal_dspyai/internals/build-and-release.mdsimilarity index 100%rename from dspy/.internal_dspyai/internals/build-and-release.mdrename to .github/.internal_dspyai/internals/build-and-release.mddiff --git a/dspy/.internal_dspyai/internals/release-checklist.md b/.github/.internal_dspyai/internals/release-checklist.mdsimilarity index 100%rename from dspy/.internal_dspyai/internals/release-checklist.mdrename to .github/.internal_dspyai/internals/release-checklist.mddiff --git a/dspy/.internal_dspyai/pyproject.toml b/.github/.internal_dspyai/pyproject.tomlsimilarity index 92%rename from dspy/.internal_dspyai/pyproject.tomlrename to .github/.internal_dspyai/pyproject.tomlindex 933b43611..279f56a6b 100644--- a/dspy/.internal_dspyai/pyproject.toml+++ b/.github/.internal_dspyai/pyproject.toml@@ -19,4 +19,4 @@ requires = ["setuptools>=40.8.0", "wheel"]build-backend = "setuptools.build_meta"[tool.setuptools.packages.find]-include = ["dsp.*", "dspy.*", "dsp", "dspy"]\ No newline at end of file+include = ["dsp.*", "dspy.*", "dsp", "dspy"]diff --git a/.github/workflows/build_and_release.yml b/.github/workflows/build_and_release.ymlindex cddfa9a62..4e625f0e6 100644--- a/.github/workflows/build_and_release.yml+++ b/.github/workflows/build_and_release.yml@@ -110,19 +110,19 @@ jobs:attestations: false# Publish to dspy-ai- name: Update package name in pyproject.toml- run: sed -i '/#replace_package_name_marker/{n;s/name *= *"[^"]*"/name="dspy-ai"/;}' ./dspy/.internal_dspyai/pyproject.toml+ run: sed -i '/#replace_package_name_marker/{n;s/name *= *"[^"]*"/name="dspy-ai"/;}' .github/.internal_dspyai/pyproject.toml- name: Update version for dspy-ai release- run: sed -i '/#replace_package_version_marker/{n;s/version *= *"[^"]*"/version="${{ needs.extract-tag.outputs.version }}"/;}' ./dspy/.internal_dspyai/pyproject.toml+ run: sed -i '/#replace_package_version_marker/{n;s/version *= *"[^"]*"/version="${{ needs.extract-tag.outputs.version }}"/;}' .github/.internal_dspyai/pyproject.toml- name: Update dspy dependency for dspy-ai releaserun: |- sed -i '/#replace_dspy_version_marker/{n;s/dspy *>= *"[^"]*/dspy>=${{ needs.extract-tag.outputs.version }}/;}' ./dspy/.internal_dspyai/pyproject.toml+ sed -i '/#replace_dspy_version_marker/{n;s/dspy>=[^"]*/dspy>=${{ needs.extract-tag.outputs.version }}/;}' .github/.internal_dspyai/pyproject.toml- name: Build a binary wheel (dspy-ai)- run: python3 -m build ./dspy/.internal_dspyai/+ run: python3 -m build .github/.internal_dspyai/- name: Publish distribution 📦 to PyPI (dspy-ai)uses: pypa/gh-action-pypi-publish@release/v1with:attestations: false- packages-dir: ./dspy/.internal_dspyai/dist/+ packages-dir: .github/.internal_dspyai/dist/- uses: stefanzweifel/git-auto-commit-action@v5 # auto commit changes to mainwith:commit_message: Update versionsdiff --git a/.gitignore b/.gitignoreindex e90b493fb..9541a1c63 100644--- a/.gitignore+++ b/.gitignore@@ -65,4 +65,4 @@ docs/docs/**/*.json**.tar.gztest_before_pypi/-dspy/.internal_dspyai/dist/\ No newline at end of file+.github/.internal_dspyai/dist/