-
Notifications
You must be signed in to change notification settings - Fork 44
/
setup.py
30 lines (24 loc) · 910 Bytes
/
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
import re
from setuptools import setup
from os import path
project_path = path.abspath(path.dirname(__file__))
meta_file = open(path.join(project_path, "django_cprofile_middleware" ,"metadata.py")).read()
md = dict(re.findall(r"__([a-z]+)__\s*=\s*'([^']+)'", meta_file))
with open(path.join(project_path, 'README.md')) as f:
long_description = f.read()
setup(
name = 'django-cprofile-middleware',
packages = ['django_cprofile_middleware'],
license = 'MIT',
version = md['version'],
description = 'Easily add cProfile profiling to django views.',
long_description = long_description,
long_description_content_type='text/markdown',
author = md['author'],
author_email = md['authoremail'],
url = 'https://github.com/omarish/django-cprofile-middleware/',
keywords = ['django','profiling','cProfile'],
classifiers = [
"Framework :: Django"
],
)