© Ben Lopatin 2020
B. LopatinDjango Standalone Appshttps://doi.org/10.1007/978-1-4842-5632-9_17

17. Better packaging

Ben Lopatin1 
(1)
New York, NY, USA
 

In Chapter 8 we took a Django app and created a simple Python package to distribute that app. What we’re after here is simpler package configuration code, that is, easier to read and simpler to update, as well as maximal assurance that what we test is what we ship.

In this chapter, we revisit our package from Chapter 8 and explore some ways to improve upon the package we set up in order to include additional information and to make updating that information easier.

Version consolidation

Our setup.py file in Chapter 8 looked like this:
from setuptools import setup, find_packages
setup(
    name="blog",

Get Django Standalone Apps: Learn to Develop Reusable Django Libraries now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.