-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·36 lines (31 loc) · 1.04 KB
/
setup.py
File metadata and controls
executable file
·36 lines (31 loc) · 1.04 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
#!/usr/bin/env python
from distutils.core import setup
import os
parent_directory = os.path.abspath(os.path.dirname(__file__))
meta_files = {
'README.md': None,
'CLASSIFIERS.txt': None,
}
for filename in meta_files:
try:
current_file = open(os.path.join(parent_directory, filename))
meta_files[filename] = current_file.read()
current_file.close()
except IOError:
raise IOError('{0} not found.'.format(filename))
classifiers = meta_files['CLASSIFIERS.txt'].split('\n')
classifiers.remove('')
setup(name='django-navigen',
version='0.1.3',
description='Dynamic navigation menu generation for django.',
long_description=meta_files['README.md'],
classifiers=classifiers,
author='Brandon R. Stoner',
author_email='monokrome@limpidtech.com',
url='http://github.com/LimpidTech/django-navigen',
packages=['navigen', 'navigen.templatetags'],
package_data={
'navigen': ['templates/navigation/*.html'],
},
keywords = 'web django menu navigation',
)