forked from klen/django_markdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
54 lines (40 loc) · 1.46 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
47
48
49
50
51
52
53
54
import os
from setuptools import setup, find_packages
from django_markdown import version, PROJECT, LICENSE
MODULE_NAME = 'django_markdown'
PACKAGE_DATA = list()
for directory in [ 'templates', 'static' ]:
for root, dirs, files in os.walk( os.path.join( MODULE_NAME, directory )):
for filename in files:
PACKAGE_DATA.append("%s/%s" % ( root[len(MODULE_NAME)+1:], filename ))
def read( fname ):
try:
return open( os.path.join( os.path.dirname( __file__ ), fname ) ).read()
except IOError:
return ''
META_DATA = dict(
name = PROJECT,
version = version,
description = read('DESCRIPTION'),
long_description = read('README.rst'),
license=LICENSE,
author = "Kirill Klenov",
author_email = "[email protected]",
url = "http://github.com/klen/django-markdown.git",
keywords= 'html markdown django',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: Russian',
'Natural Language :: English',
'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
'Programming Language :: Python',
'Topic :: Software Development :: Code Generators',
'Topic :: Text Processing :: Markup',
],
packages = find_packages(),
package_data = { '': PACKAGE_DATA, },
install_requires = [ 'markdown' ],
)
if __name__ == "__main__":
setup( **META_DATA )