Hint: You can adjust the default video playback speed in your account settings.
Hint: You can set the default subtitles language in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please see our video player troubleshooting guide to resolve the issue.

Preparing Your Package for Publication on PyPI

Give Feedback

After implementing your packages functionalities, you’ll now add additional files, which are needed in order to publish your package to PyPI.

The setup.py file should be placed in the top folder of your package. A fairly minimal setup.py for reader looks like this:

import pathlib
from setuptools import setup

# The directory containing this file
HERE = pathlib.Path(__file__).parent

# The text of the README file
README = (HERE / "README.md").read_text()

# This call to setup() does all the work
    description="Read the latest Real Python tutorials",
    author="Real Python",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.7",
    install_requires=["feedparser", "html2text"],
        "console_scripts": [

rorydaulton on May 31, 2020

At time stamp 1:13 the video for this lesson “Preparing Your Package for Publication on PyPI” says, “Copy and paste the code from below”. The code was for setup.py. Could you add that code, along with any others, into the text below the video? (Similar code may need to be placed into other lessons in this series.)

Dan Bader RP Team on May 31, 2020

Thanks, I’ve moved the setup.py example to the video description to make it easier to find (previously it was only linked under “Supporting Materials”). Best, Dan

Become a Member to join the conversation.