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

Distribute package as a universal wheel #756

Merged
merged 1 commit into from
May 20, 2018
Merged

Distribute package as a universal wheel #756

merged 1 commit into from
May 20, 2018

Conversation

jdufresne
Copy link
Contributor

@jdufresne jdufresne commented Mar 23, 2018

Wheels are the new standard of Python distribution. Advantages of wheels includes:

  • Faster installation
  • Avoids arbitrary code execution for installation by avoiding setup.py
  • Allows better caching for testing and continuous integration
  • Creates .pyc files as part of installation to ensure they match the
    python interpreter used
  • More consistent installs across platforms and machines

As locust is a pure Python package (no C files) for both Python 2 & 3, the wheel can be distributed as universal.

When you wouldd normally run python setup.py sdist upload, run instead python setup.py sdist bdist_wheel upload.

The wheel includes the LICENSE file through the [metadata] attribute license_file.

For additional information on Python wheels, see:

https://pythonwheels.com/

For the detailed PEP, see:

https://www.python.org/dev/peps/pep-0427/

Wheels are the new standard of python distribution. Advantages of wheels
includes:

- Faster installation
- Avoids arbitrary code execution for installation by avoiding setup.py
- Allows better caching for testing and continuous integration
- Creates .pyc files as part of installation to ensure they match the
  python interpreter used
- More consistent installs across platforms and machines

As locust is a pure Python package (no C files) for both Python 2 & 3,
the wheel can be distributed as universal.

When you wouldd normally run `python setup.py sdist upload`, run instead
`python setup.py sdist bdist_wheel upload`.

The wheel includes the LICENSE file through the [metadata] attribute
license_file.

For additional information on Python wheels, see:

https://pythonwheels.com/

For the detailed PEP, see:

https://www.python.org/dev/peps/pep-0427/
@codecov
Copy link

codecov bot commented Mar 23, 2018

Codecov Report

Merging #756 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #756   +/-   ##
=======================================
  Coverage   65.13%   65.13%           
=======================================
  Files          14       14           
  Lines        1417     1417           
  Branches      222      222           
=======================================
  Hits          923      923           
  Misses        443      443           
  Partials       51       51

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aa741c9...5127ebe. Read the comment docs.

Copy link
Member

@mbeacom mbeacom left a comment

Choose a reason for hiding this comment

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

lgtm :shipit: Thanks!

@mbeacom mbeacom merged commit cf9b2ba into locustio:master May 20, 2018
@jdufresne jdufresne deleted the wheel branch October 19, 2019 23: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.

2 participants