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

Upload wheel to PyPI #213

Open
hugovk opened this issue Sep 9, 2021 · 2 comments
Open

Upload wheel to PyPI #213

hugovk opened this issue Sep 9, 2021 · 2 comments

Comments

@hugovk
Copy link
Contributor

hugovk commented Sep 9, 2021

Please could you also upload a wheel to PyPI?

For example, to generate:

python3 -m pip install -U pip setuptools wheel
python3 setup.py sdist --format=gztar bdist_wheel

https://pythonwheels.com/ says advantages include:

  1. Faster installation for pure Python and native C extension packages.
  2. Avoids arbitrary code execution for installation. (Avoids setup.py)
  3. Installation of a C extension does not require a compiler on Linux, Windows or macOS.
  4. Allows better caching for testing and continuous integration.
  5. Creates .pyc files as part of installation to ensure they match the Python interpreter used.
  6. More consistent installs across platforms and machines.

The wheel (11K) is also smaller to download than sdist (25K).

These advantages also help other packages which include pyperclip as a dependency.

Thank you!

@jaraco
Copy link
Contributor

jaraco commented Nov 20, 2022

The modern, recommended way to upload wheels is to use build and twine:

build
twine upload dist/*

@jaraco
Copy link
Contributor

jaraco commented Nov 20, 2022

If this project wishes to adopt jaraco/skeleton (or concepts from it), tagged commits would be automatically released with wheels after passing tests.

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

No branches or pull requests

2 participants