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

Clean up setup.py #128

Merged
merged 34 commits into from
Aug 1, 2024
Merged

Clean up setup.py #128

merged 34 commits into from
Aug 1, 2024

Conversation

eitanturok
Copy link
Contributor

@eitanturok eitanturok commented Jul 31, 2024

This PR cleans up setup.py based on Composer's setup.py and is a follow up after #127. This is a better organized version of #126 as many of the changes made in #126 were already made in #127.

Specifically, this PR:

  1. Gracefully handles missing torch while running setup.py
  2. Gracefully determines the version of the package with a _version.py file
  3. Adds an __init__.py file to MegaBlocks
  4. Parses the README.md better for the pypi description

These changes pass all the tests on the Github Action on my local fork: https://github.com/eitanturok/megablocks/actions/runs/10183100358. It currently seems like there are issues with the GAs here.

In a separate PR we will update the package owner name and email. (Still waiting on Kobie to get back to me about this.)

@eitanturok eitanturok requested a review from dakinggg July 31, 2024 17:32
Copy link
Contributor

@mvpatel2000 mvpatel2000 left a comment

Choose a reason for hiding this comment

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

LGTM, didn't read setup too closely. Assuming copy pasted from composer?

@eitanturok
Copy link
Contributor Author

Yep, copy and pasted from Composer!

@eitanturok eitanturok requested review from mvpatel2000 and vchiley and removed request for mvpatel2000 July 31, 2024 19:33
Copy link
Collaborator

@mihir-db mihir-db left a comment

Choose a reason for hiding this comment

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

Approved with wrong account

@mihir-db mihir-db merged commit 52186a6 into databricks:main Aug 1, 2024
2 checks passed
@eitanturok eitanturok deleted the eitan-dev branch August 1, 2024 17:27
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.

3 participants