-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
47 lines (42 loc) · 1.4 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
#!/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-absolute',
version=__import__('absolute').__version__,
description=__import__('absolute').__description__,
long_description=long_description,
url='https://github.com/noirbizarre/django-absolute',
download_url='http://pypi.python.org/pypi/django-absolute',
author='Axel Haustant',
author_email='[email protected]',
packages=find_packages(),
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)',
],
)