From ce4f2bf6926026e58c7a0fe2222930b663630296 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Wed, 29 Jul 2009 00:37:15 -0400 Subject: [PATCH] chapter outline --- packaging.html | 71 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 70 insertions(+), 1 deletion(-) diff --git a/packaging.html b/packaging.html index 7f17a55..d4064d4 100644 --- a/packaging.html +++ b/packaging.html @@ -12,7 +12,7 @@ body{counter-reset:h1 16}
  
-

You are here: Home Dive Into Python 3 +

You are here: Home Dive Into Python 3

Difficulty level: ♦♦♦♦♢

Packaging Python Libraries

@@ -22,12 +22,81 @@ body{counter-reset:h1 16}

Diving In

FIXME +

# setup.py
+from distutils.core import setup
+VERSION = '0.5.0'
+setup(name='httplib2',
+      version=VERSION, 
+      author='Joe Gregorio',
+      author_email='joe@example.com',
+      url='http://code.google.com/p/httplib2/',
+      download_url='http://httplib2.googlecode.com/files/httplib2-python3-{}.tar.gz'.format(VERSION),
+      description='A comprehensive HTTP client library.',
+      license='MIT',
+      packages=['httplib2'],
+      classifiers=[
+          'Development Status :: 4 - Beta',
+          'Environment :: Web Environment',
+          'Intended Audience :: Developers',
+          'License :: OSI Approved :: MIT License',
+          'Operating System :: OS Independent',
+          'Programming Language :: Python',
+          'Programming Language :: Python :: 3',
+          'Topic :: Internet :: WWW/HTTP',
+          'Topic :: Software Development :: Libraries',
+      ],
+)
+
+

⁂ +

Overview of the Packaging Process

+ +

Directory Structure

+ +

Writing Your Setup Script

+ +

Checking Your Setup Script for Errors

+ +

Writing Your Setup Configuration File

+ +

Creating Source Distributions

+ + + +

Creating Binary Distributions

+ + + +

Building A Windows Installer

+ + + + +

Building a Linux RPM Package

+ +

The Python Package Index

+ +

Registering Yourself

+ +

Registering Your Python Library

+ +

Uploading New Versions

+ + +

Further Reading