Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Clean up setup.py#128

Merged
mihir-db merged 34 commits into
databricks:mainfrom
eitanturok:eitan-dev
Aug 1, 2024
Merged

Clean up setup.py#128
mihir-db merged 34 commits into
databricks:mainfrom
eitanturok:eitan-dev

Conversation

@eitanturok

@eitanturok eitanturok commented Jul 31, 2024

Copy link
Copy Markdown
Contributor

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

@mvpatel2000 mvpatel2000 left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

@mihir-db mihir-db left a comment

Copy link
Copy Markdown
Contributor

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
@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