Author: leidel
Date: Sat Jan 24 08:20:56 2009
New Revision: 1119
Modified:
wiki/SprintIdeas.wiki
Log:
Edited wiki page through web user interface.
Modified: wiki/SprintIdeas.wiki
==============================================================================
--- wiki/SprintIdeas.wiki (original)
+++ wiki/SprintIdeas.wiki Sat Jan 24 08:20:56 2009
@@ -7,7 +7,7 @@
== common templates directory ==
-assignee: James Tauber and Jannis Leidel
+assignee: James Tauber
== import vs. get_app() ==
@@ -34,6 +34,42 @@
* write pip requirement/freeze files for the example projects
* make sure every app used has a valid setup.py
* docs
+
+====How to enable apps to be used with pip====
+
+Your app requires a basic
[http://docs.python.org/distutils/setupscript.html setup.py] file to be
used with pip.
+
+If the app is going to be used in Pinax from a VCS you also need to make
sure it uses [http://peak.telecommunity.com/DevCenter/setuptools
setuptools] in the setup.py because it enables pip to use a checkout
without installing it completely (with
[http://peak.telecommunity.com/DevCenter/setuptools#develop-deploy-the-project-source-in-development-mode
setuptools' develop command]).
+
+A simple example is (from
[http://github.com/ericflo/django-pagination/blob/4862731dd2d89e8491cbb188788e53ed1cf27b51/setup.py
django-pagination]):
+
+{{{
+from setuptools import setup, find_packages
+
+version = '1.0.5'
+
+setup(
+ name='django-pagination',
+ version=version,
+ description="django-pagination",
+ classifiers=[
+ "Framework :: Django",
+ "Programming Language :: Python",
+ "Environment :: Web Environment",
+ 'Intended Audience :: Developers',
+ 'Operating System :: OS Independent',
+ ],
+ keywords='pagination,django',
+ author='Eric Florenzano',
+ author_email='[email protected]',
+ url='http://django-pagination.googlecode.com/',
+ license='BSD',
+ packages=find_packages(),
+ include_package_data=True,
+ zip_safe=False,
+ install_requires=['setuptools'],
+)
+}}}
_and_
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---