-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
46 lines (39 loc) · 1.21 KB
/
setup.py
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
from distutils.core import setup
import os
import sys
parent_directory = os.path.abspath(os.path.dirname(__file__))
metafiles = {
'README.md': None,
'CHANGES.md': None,
'CLASSIFIERS.txt': None,
}
# The following bit will read each index from metafiles and fill it's value
# with the contents of that file if it is able to read the file.
for filename in metafiles:
try:
current_file = open(os.path.join(parent_directory, filename))
metafiles[filename] = current_file.read()
current_file.close()
except IOError:
pass
metadata = {
'name': 'tastybone',
'version': '0.0.4',
'description': 'Expose TastyPie to your client. Nicely.',
'long_description': metafiles['README.md'] + '\n\n' + metafiles['CHANGES.md'],
'classifiers': metafiles['CLASSIFIERS.txt'],
'author': 'Brandon R. Stoner',
'author_email': 'monokrome@limpidtech.com',
'url': 'http://github.com/LimpidTech/TastyBone',
'keywords': 'django tastypie',
'packages': ['tastybone'],
'package_data': {
'tastybone': [
'api.py',
'__init__.py',
'static/scripts/tastybone.js',
'static/scripts/tastybone.min.js',
]
}
}
setup(**metadata)