Skip to content

Conversation

@TomeHirata
Copy link
Collaborator

@TomeHirata TomeHirata commented Feb 27, 2025

This PR fixes #7853 and #7490 without causing #7867.
Confirmed the behavior by running python -m build on a clean clone of the DSPy repo.

image

Signed-off-by: TomuHirata <tomu.hirata@gmail.com>
Signed-off-by: TomuHirata <tomu.hirata@gmail.com>
@TomeHirata TomeHirata changed the title Fix pyproject.toml Fix pyproject.toml to include package data Feb 27, 2025
Copy link
Collaborator

@chenmoneygithub chenmoneygithub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the PR! LGTM

include = ["dspy*"]
where = ["."]
include = ["dspy", "dspy.*"]
exclude = ["tests", "tests.*"]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curious - since we do explicit include, do we still need this exclude part?

Non-blocking, feel free to merge!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not necessary (I confirmed "tests" are not included when removing this line), but mostly for the safeguard. We do the same configuration in mlflow: https://github.com/mlflow/mlflow/blob/master/pyproject.release.toml#L139

@TomeHirata TomeHirata merged commit 0801b65 into stanfordnlp:main Feb 27, 2025
4 checks passed
glesperance pushed a commit to glesperance/dspy that referenced this pull request Mar 3, 2025
* fix pyproject.toml

Signed-off-by: TomuHirata <tomu.hirata@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] runner.js is not bundled into the tarball on PyPI as of 2.6.6

2 participants