Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated setup.py, INSTALL notice and MANIFEST template
- Loading branch information
Jannis Leidel
committed
Nov 21, 2008
1 parent
e6bd2bb
commit f7c72f8
Showing
4 changed files
with
38 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/ * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
VERSION = (0, 3, 1) | ||
__version__ = '.'.join(map(str, VERSION)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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', | ||
), | ||
) |