Skip to content

Commit

Permalink
Updated setup.py, INSTALL notice and MANIFEST template
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannis Leidel committed Nov 21, 2008
1 parent e6bd2bb commit f7c72f8
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 45 deletions.
15 changes: 12 additions & 3 deletions INSTALL
Expand Up @@ -2,14 +2,23 @@ To install it, run the following command inside this directory:

python setup.py install

If you have the Python ``easy_install`` utility available, you can
also type the following to download and install in one step::

easy_install django-messages

Or if you're using ``pip``::

pip install django-messages

Or if you'd prefer you can simply place the included ``messages``
directory somewhere on your Python path, or symlink to it from
somewhere on your Python path; this is useful if you're working from a
Subversion checkout.

Note that this application requires Python 2.4 or later, and Django 0.96.1.
You can obtain Python from http://www.python.org/ and Django
Note that this application requires Python 2.4 or later, and Django 1.0 or
later. You can obtain Python from http://www.python.org/ and Django
from http://www.djangoproject.com/.

Most of this install notice was bluntly stolen from James Bennett's registration
package, http://code.google.com/p/django-registration/
package, http://www.bitbucket.org/ubernostrum/django-registration/
5 changes: 2 additions & 3 deletions MANIFEST.in
@@ -1,6 +1,5 @@
include README
include AUTHORS
include LICENSE
include INSTALL
include MANIFEST.in
include messages/templates/messages/*.html
recursive-include messages/locale *
recursive-include messages/templates/ *
2 changes: 2 additions & 0 deletions messages/__init__.py
@@ -0,0 +1,2 @@
VERSION = (0, 3, 1)
__version__ = '.'.join(map(str, VERSION))
61 changes: 22 additions & 39 deletions setup.py
@@ -1,41 +1,24 @@
from distutils.core import setup
import os

# Compile the list of packages available, because distutils doesn't have
# an easy way to do this.
packages, data_files = [], []
root_dir = os.path.dirname(__file__)
if root_dir:
os.chdir(root_dir)

for dirpath, dirnames, filenames in os.walk('messages'):
# Ignore dirnames that start with '.'
for i, dirname in enumerate(dirnames):
if dirname.startswith('.'): del dirnames[i]
if '__init__.py' in filenames:
pkg = dirpath.replace(os.path.sep, '.')
if os.path.altsep:
pkg = pkg.replace(os.path.altsep, '.')
packages.append(pkg)
elif filenames:
prefix = dirpath[13:] # Strip "messages/" or "messages\"
for f in filenames:
data_files.append(os.path.join(prefix, f))

setup(name='messages',
version='0.3',
description='User-to-user messaging system for Django',
author='Arne Brodowski',
author_email='mail@arnebrodowski.de',
url='http://code.google.com/p/django-messages/',
packages=packages,
package_dir={'messages': 'messages'},
package_data={'messages': data_files},
classifiers=['Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'],
)
setup(
name='django-messages',
version=__import__('messages').__version__,
description='User-to-user messaging system for Django',
author='Arne Brodowski',
author_email='mail@arnebrodowski.de',
url='http://code.google.com/p/django-messages/',
packages=(
'messages',
'messages.templatetags',
),
classifiers=(
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities',
'Framework :: Django',
),
)

0 comments on commit f7c72f8

Please sign in to comment.