Skip to main content

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


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)

Uploaded Source

Built Distribution

helloworld_danlh-0.0.1-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page