Skip to content

armgit / dspy

Public Imported from GitHub
0

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.md
similarity index 100%
rename from dspy/.internal_dspyai/internals/build-and-release.md
rename to .github/.internal_dspyai/internals/build-and-release.md
diff --git a/dspy/.internal_dspyai/internals/release-checklist.md b/.github/.internal_dspyai/internals/release-checklist.md
similarity index 100%
rename from dspy/.internal_dspyai/internals/release-checklist.md
rename to .github/.internal_dspyai/internals/release-checklist.md
diff --git a/dspy/.internal_dspyai/pyproject.toml b/.github/.internal_dspyai/pyproject.toml
similarity index 92%
rename from dspy/.internal_dspyai/pyproject.toml
rename to .github/.internal_dspyai/pyproject.toml
index 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.yml
index 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 release
run: |
- 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/v1
with:
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 main
with:
commit_message: Update versions
diff --git a/.gitignore b/.gitignore
index e90b493fb..9541a1c63 100644
--- a/.gitignore
+++ b/.gitignore
@@ -65,4 +65,4 @@ docs/docs/**/*.json*
*.tar.gz
test_before_pypi/
-dspy/.internal_dspyai/dist/
\ No newline at end of file
+.github/.internal_dspyai/dist/