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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file helloworld-danlh-0.0.1.tar.gz.

File metadata

  • Download URL: helloworld-danlh-0.0.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for helloworld-danlh-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f225dc5595e29059dc1e36bb0cc139cd6d8f0294f7d73059f4e84c2047d35572
MD5 292ef7221421326ac4f2f4ff81648fa8
BLAKE2b-256 b963220073bf96603b6472202fc7dbb86c496932be409ff0b859ad2844e6d807

See more details on using hashes here.

File details

Details for the file helloworld_danlh-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for helloworld_danlh-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8081419db38c907215bda1e43eb242c8696027c4fa31aa54cad6c8207c0b1bc1
MD5 bf5321bc9d64f68ca1fbbad13abd1f23
BLAKE2b-256 ad7e31034ce420a9bf8156d4ff7bc62e4c4c16326a46eafdd8d88fd281db3d10

See more details on using hashes here.

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