Skip to Content
Python Microservices Development
book

Python Microservices Development

by Tarek Ziadé
July 2017
Beginner to intermediate
340 pages
7h 43m
English
Packt Publishing
Content preview from Python Microservices Development

The MANIFEST.in file

When creating a source or binary release, Setuptools will include all the packages modules and data files, the setup.py file, and a few other files automatically in the tarball. But files like the PIP requirements will not be included for you.

In order to add them to your distribution, you need to add a MANIFEST.in file, which contains the list of files to include.

The file follows a simple glob-like syntax, described at https://docs.python.org/3/distutils/commandref.html#creating-a-source-distribution-the-sdist-command, where you point a file or a directory (including glob patterns) and say if you want to include or prune the matches.

Here's an example from Runnerly:

    include requirements.txt     include README.rst  include ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python Microservices Development - Second Edition

Python Microservices Development - Second Edition

Simon Fraser, Tarek Ziadé
Python Web Development with Sanic

Python Web Development with Sanic

Stephen Sadowski, Adam Hopkins

Publisher Resources

ISBN: 9781785881114Supplemental Content