forked from noirbizarre/django.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (43 loc) · 1.41 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
from setuptools import setup, find_packages
def rst(filename):
'''
Load rst file and sanitize it for PyPI.
Remove unsupported github tags:
- code-block directive
'''
content = open(filename).read()
return re.sub(r'\.\.\s? code-block::\s*(\w|\+)+', '::', content)
long_description = '\n'.join((
rst('README.rst'),
rst('CHANGELOG.rst'),
''
))
setup(
name='django.js',
version=__import__('djangojs').__version__,
description=__import__('djangojs').__description__,
long_description=long_description,
url='https://github.com/noirbizarre/django.js',
download_url='http://pypi.python.org/pypi/django.js',
author='Axel Haustant',
author_email='[email protected]',
packages=find_packages(),
include_package_data=True,
install_requires=['django'],
license='LGPL',
classifiers=[
"Framework :: Django",
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Environment :: Web Environment",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Topic :: System :: Software Distribution",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
],
)