Test say hello func
Project description
Practice creating Packages
Steps:
- Create 'script'.py, put in src dir inside project directory
- Create setup.py in project dir.
- run: python 'script'.py bdist_wheel (Create package from script.py using setup.py as config)
- run: pip install -e . (Install package in current directory)
- test script: from 'script' import 'funcname' ... call function
- Choose a license https://choosealicense.com/ and create LICENSE.txt file
- Add classifiers to setup.py file https://pypi.org/classifiers/
- Add a README.md describing project, how to install (with reqs), usage
- Add README to setup.py file as long_description
- Add library dependencies to setup.py as install_requires, and developer dependencies as extras_require (requirements.txt is an alternative to this, but setup.py recommended)
- Test files in test directory, run pytest
- Optional: url and author in setup.py
- run py setup.py sdist (For source distribution)
- Publish package: py setup.py bdist_wheel sdist
- Push to PyPI: twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
helloworld-danlh-0.0.1.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for helloworld_danlh-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8081419db38c907215bda1e43eb242c8696027c4fa31aa54cad6c8207c0b1bc1 |
|
MD5 | bf5321bc9d64f68ca1fbbad13abd1f23 |
|
BLAKE2b-256 | ad7e31034ce420a9bf8156d4ff7bc62e4c4c16326a46eafdd8d88fd281db3d10 |