forked from HassenPy/django-pdb
-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
61 lines (52 loc) · 1.73 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
55
56
57
58
59
60
61
#!/usr/bin/env/python
# -*- coding: utf-8 -*-
from setuptools import setup
import os
import re
def abs_path(relative_path):
"""
Given a path relative to this directory return an absolute path.
"""
base_path = os.path.abspath(os.path.dirname(__file__))
return os.path.join(base_path, relative_path)
def get_version(relative_path):
"""
Return version given package's path.
"""
data = open(os.path.join(abs_path(relative_path), '__init__.py')).read()
return re.search(r"__version__ = '([^']+)'", data).group(1)
def get_long_description():
"""
Return the contents of the README file.
"""
try:
return open(abs_path('README.rst')).read()
except:
pass # Required to install using pip (won't have README then)
setup(
name='django-pdb',
version=get_version('django_pdb'),
description='Easier pdb debugging for Django',
long_description=get_long_description(),
author='Tom Christie',
author_email='[email protected]',
url='https://github.com/tomchristie/django-pdb',
packages=('django_pdb',
'django_pdb.management',
'django_pdb.management.commands',
'django_pdb.templatetags'),
license='Public Domain',
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: Public Domain',
'Framework :: Django',
'Operating System :: OS Independent',
],
)