-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
56 lines (52 loc) · 1.68 KB
/
setup.py
File metadata and controls
56 lines (52 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
from setuptools import setup
classifiers = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities',
'Topic :: Communications :: Email',
]
# Recursive file finder for adding our PHP
import os
import os.path
def lsrecursive(base):
output = []
lst = os.listdir(base)
for f in lst:
entry = os.path.join(base,f)
if os.path.isdir(entry) and entry != ".." and entry != ".":
output += lsrecursive(entry)
else:
output += [entry]
return output
def _get_files():
lst = [s.split("contactstore/openinviter/")[1]
for s in lsrecursive(os.path.join(os.path.dirname(__file__), "contactstore/openinviter/php"))
]
return lst
# Depends:
# django, php
setup(
name = "django-contactstore",
version = "0.1.5",
description = "an openinviter based contact importer",
long_description = """Allows importing and invite sending with OpenInviter using PHP.""",
license = "GPLv2",
author = "Nic Ferrier",
author_email = "nic@woome.com",
url = "http://github.com/woome/django-contactstore",
download_url="http://github.com/woome/django-contactstore/downloads",
platforms = ["unix"],
packages = ["contactstore", "contactstore.tests", "contactstore.openinviter"],
package_data = {
"contactstore.openinviter": _get_files(),
},
entry_points = {
'console_scripts': [
'openinviter = contactstore.openinviter.invitercmd:main',
],
},
classifiers = classifiers
)