Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixups to exclude tests from the wheels #315

Merged
merged 3 commits into from
Apr 25, 2023

Conversation

bpkroth
Copy link
Contributor

@bpkroth bpkroth commented Apr 25, 2023

There is a bug in setuptools-wheel and setuptools-scm plugins that prevents us from being able to exclude certain directories: pypa/wheel#99
pypa/setuptools-scm#190

To avoid this we follow advice from that issue and splits the generation of the wheel into two steps:

  • sdist (source) tar generation
  • wheel from that

This PR doesn't fix the Windows CI pipelines, but we don't intend to publish from those anyways.

@bpkroth bpkroth requested a review from a team as a code owner April 25, 2023 18:15
@bpkroth bpkroth marked this pull request as draft April 25, 2023 18:20
@bpkroth bpkroth marked this pull request as ready for review April 25, 2023 18:22
Copy link
Member

@motus motus left a comment

Choose a reason for hiding this comment

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

looks good, but I wonder how come that mlos_core does NOT include the tests while mlos_bench does? Could there be a simpler solution to this problem?

mlos_bench/setup.py Outdated Show resolved Hide resolved
mlos_core/setup.py Outdated Show resolved Hide resolved
@motus motus merged commit f6058a1 into microsoft:main Apr 25, 2023
bpkroth added a commit that referenced this pull request Apr 25, 2023
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.

2 participants