Creating a Source Distribution and Wheel
For personal use, the configuration shown in the previous section is enough to create a source distribution and a wheel. Let’s try it:
| $ cd /path/to/code/appendices/packaging/some_package_proj/ |
| $ python setup.py sdist bdist_wheel |
| running sdist |
| ... |
| warning: sdist: standard file not found: |
| should have one of README, README.rst, README.txt |
| |
| running check |
| warning: check: missing required meta-data: url |
| |
| warning: check: missing meta-data: |
| either (author and author_email) |
| or (maintainer and maintainer_email) must be supplied |
| |
| running bdist_wheel |
| ... |
| $ ls dist |
| some_package-0.0.0-py3-none-any.whl some_package-0.0.0.tar.gz |
Well, with some warnings, a .whl ...
Get Python Testing with pytest now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.