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

Support packaging as .whl files #1172

Merged
merged 1 commit into from
Oct 28, 2016
Merged

Conversation

derekbekoe
Copy link
Member

When publishing on PyPI, we should publish both .tar.gz and .whl files.

Add setup.cfg files

  • Update package-verify and nightly-build to use bdist_wheel also

@@ -32,7 +32,7 @@ def build_package(path_to_package, dist_dir):
print_heading('Building {}'.format(path_to_package))
path_to_setup = os.path.join(path_to_package, 'setup.py')
set_version(path_to_setup)
cmd_success = exec_command('python setup.py sdist -d {}'.format(dist_dir), cwd=path_to_package)
cmd_success = exec_command('python setup.py sdist bdist_wheel -d {}'.format(dist_dir), cwd=path_to_package)
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a question, is it worthwhile to produce both packages?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes they recommend creating both and uploading both.

@yugangw-msft
Copy link
Contributor

LGTM

@derekbekoe derekbekoe changed the title Support packaging as .whl files [DO NOT MERGE] Support packaging as .whl files Oct 27, 2016
@derekbekoe derekbekoe changed the title [DO NOT MERGE] Support packaging as .whl files Support packaging as .whl files Oct 27, 2016
@derekbekoe derekbekoe changed the title Support packaging as .whl files [DO NOT MERGE] Support packaging as .whl files Oct 27, 2016
@derekbekoe
Copy link
Member Author

derekbekoe commented Oct 27, 2016

I've verifying the change a bit more before merging.

- Update package-verify and nightly-build to use bdist_wheel also
@derekbekoe derekbekoe changed the title [DO NOT MERGE] Support packaging as .whl files Support packaging as .whl files Oct 28, 2016
@derekbekoe derekbekoe merged commit decc2fa into Azure:master Oct 28, 2016
@derekbekoe derekbekoe deleted the package_bdist branch October 28, 2016 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants