Skip to main content

Say Hello!

Project description

Create Your Own Python Package

Based on the talk here: https://www.youtube.com/watch?v=GIF3LaRqgXo&ab_channel=CodingTech

Setup Steps

  1. Create your Python module (in here it is helloworld.py)
  2. Create setup.py file (see setup.py file)
  3. Run "python setup.py bdist_wheel" (creates build, dist, and other folders/files)
  4. Optional: Create .gitignore (just good practice, checkout gitignore.io)
  5. Add the .egg-info file in the src directory to the .gitignore (it is unnecessary apparently).
  6. Create README.md
  7. Run "pip install -e ." to install this package locally (run frequently to check your work)
  8. Add a license (checkout choosealicense.com). MIT License added here by default.
  9. Optional: Run some tests (checkout a package called pytest, it is great)
  10. Run "pip install check-manifest", then "check-manifest --create", then "git add MANIFEST.in" (this all helps the next step run properly)
  11. Run "python setup.py sdist" to create a .tar.gz file with the source code for distribution
  12. Run "python setup.py bdist_wheel sdist"
  13. Run "pip install twine", then "twine upload dist/*" and woohoo! you have now uploaded it to pypi!
  14. To test with different versions of Python, checkout the "tox" package
  15. To get started, it is best to use the "cookiecutter" package! Run "pip install cookiecutter" then "cookiecutter gh: ionelmc/cookiecutter-pylibrary

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

patrick-helloworld-0.0.2.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

patrick_helloworld-0.0.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file patrick-helloworld-0.0.2.tar.gz.

File metadata

  • Download URL: patrick-helloworld-0.0.2.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.12

File hashes

Hashes for patrick-helloworld-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d26fcac681f57ab0608d5a0874b8cbf6450049f3f76c4fbc6765ef60025ba851
MD5 2f3805a12ee24927f1ccc73f1a27e5a7
BLAKE2b-256 46ca0e0b4ec48a6820d0260c280b49ecc2e250480681814833bdbf949dc0cb84

See more details on using hashes here.

File details

Details for the file patrick_helloworld-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: patrick_helloworld-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.12

File hashes

Hashes for patrick_helloworld-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b3baf1459754fc084a68faf06ee2a51d9fb6267a88109fa13d39de123a3b2010
MD5 d163e7fa3526d4f5da399d2ecd104918
BLAKE2b-256 b7d93faa8a7fc70c19acb5a50d45e9ff76c66dae2443866fd54cad8094697dbe

See more details on using hashes here.

Supported by

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