[BugFix] Fix modification of sky/__init__.py
when building sky wheels
#2733
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To reproduce:
python -c 'from sky.backends import wheel_utils; wheel_utils.build_sky_wheel()'
This will replace the
![image](https://private-user-images.githubusercontent.com/74357442/277496711-b1dd622e-d3b6-42ed-8449-a938880f62ba.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxNzYzNjMsIm5iZiI6MTcyNTE3NjA2MywicGF0aCI6Ii83NDM1NzQ0Mi8yNzc0OTY3MTEtYjFkZDYyMmUtZDNiNi00MmVkLTg0NDktYTkzODg4MGY2MmJhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAxVDA3MzQyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVkOTkzMjVjNDg1NmYwNTMzZmY3ZDg3NzRkOThjYTY3ZTY1NzkyYWJlM2ZmOTdmOWQ3NTc5OGMwMjdhMTM4YmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Ba4Ms2E4EuPRUvcRjOIOZSx1On0Bi3eaESxdo_0EeME)
_SKYPILOT_COMMIT_SHA
insky/__init__.py
with the current commit. This PR fixed the problem.Tested (run the relevant ones):
bash format.sh
pytest tests/test_smoke.py
pytest tests/test_smoke.py::test_fill_in_the_name
bash tests/backward_comaptibility_tests.sh