Skip to content
Newer
Older
100644 57 lines (51 sloc) 1.8 KB
6f40437 @nabucosound Packaged app for PyPI
authored Apr 5, 2012
1 import os
2 from distutils.core import setup
3
4
5 def fullsplit(path, result=None):
6 """
7 Split a pathname into components (the opposite of os.path.join) in a
8 platform-neutral way.
9 """
10 if result is None:
11 result = []
12 head, tail = os.path.split(path)
13 if head == "":
14 return [tail] + result
15 if head == path:
16 return result
17 return fullsplit(head, [tail] + result)
18
19 package_dir = "propaganda"
20 packages = []
21 for dirpath, dirnames, filenames in os.walk(package_dir):
22 # ignore dirnames that start with '.'
23 for i, dirname in enumerate(dirnames):
24 if dirname.startswith("."):
25 del dirnames[i]
26 if "__init__.py" in filenames:
27 packages.append(".".join(fullsplit(dirpath)))
28
29 version = __import__('propaganda').VERSION
30
31 setup(
32 name='django-propaganda',
33 version=version,
34 url='http://github.com/nabucosound/django-propaganda',
35 author='Hector Garcia',
36 author_email='hector@nomadblue.com',
37 description='Django app to manage your daily newsletter delivery.',
38 long_description=open('README.rst').read(),
39 packages=packages,
40 classifiers = [
41 'Development Status :: 4 - Beta',
42 'Environment :: Web Environment',
43 'Framework :: Django',
44 'Intended Audience :: Developers',
45 'License :: OSI Approved :: BSD License',
46 'Operating System :: OS Independent',
47 'Programming Language :: Python',
48 'Programming Language :: Python :: 2.6',
49 'Programming Language :: Python :: 2.7',
50 'Topic :: Internet :: WWW/HTTP',
51 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
52 'Topic :: Internet :: WWW/HTTP :: WSGI',
53 'Topic :: Software Development :: Libraries :: Application Frameworks',
54 'Topic :: Software Development :: Libraries :: Python Modules',
55 ],
56 )
Something went wrong with that request. Please try again.