Loading…
Transcript

Questions?

  • GitHub:
  • https://github.com/DEV3L
  • Gmail:
  • jus.beall@gmail.com
  • LinkedIn
  • https://www.linkedin.com/in/justin-beall

How To Create Your First PyPI Package

PyPI Registration

Project Layout

High Level Steps

http://peterdowns.com/posts/first-time-with-pypi.html

  • PyPI Registration
  • Project Layout
  • setup.py
  • Upload
  • Profit!

setup.py

Upload

python setup.py register -r pypi

python setup.py sdist upload -r pypi

Profit!

Prerequisites

  • An idea *
  • Python installed
  • pip
  • Virtualenv & wrapper

* I find the hardest part of a projects is,

coming up with an idea!

Why Does It Matter?

Python is known for it’s “batteries included”.

BUT

The number of third party packages is much larger than the number of standard library packages, therefore understanding how packages are used, found, and created are foundational.

- Justin Beall

What is PyPI

(Py-P-I)?

The Python Package Index

Python's packaging system that allows people to distribute their programs and libraries in a standard format that makes it easy to install and use them.

pip install tay_say

Demo Update!

Example

https://github.com/DEV3L/python-package-archetype