-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
59 lines (53 loc) · 1.92 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
from setuptools import setup, find_packages
import os, fnmatch
import profiling
media_files = []
for dirpath, dirnames, filenames in os.walk(os.path.join('profiling', 'media')):
for filename in filenames:
filepath = os.path.join(dirpath, filename)
failed = False
for pattern in ('*.py', '*.pyc', '*~', '.*', '*.bak', '*.swp*'):
if fnmatch.fnmatchcase(filename, pattern):
failed = True
if failed:
continue
media_files.append(os.path.join(*filepath.split(os.sep)[1:]))
if profiling.VERSION[-1] == 'final':
CLASSIFIERS = ['Development Status :: 5 - Production/Stable']
elif 'beta' in profiling.VERSION[-1]:
CLASSIFIERS = ['Development Status :: 4 - Beta']
else:
CLASSIFIERS = ['Development Status :: 3 - Alpha']
CLASSIFIERS += [
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries :: Application Frameworks',
]
setup(
author="Frank Bieniek",
author_email="[email protected]",
name='django-profiling',
version=profiling.__version__,
description='An Profiling Middleware',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst')).read(),
url='http://github.com/FrankBie/django-profiling/',
download_url='http://github.com/FrankBie/django-profiling/downloads',
license='MIT License',
platforms=['OS Independent'],
classifiers=CLASSIFIERS,
install_requires=[
],
packages=find_packages(exclude=["example", "example.*","testdata","testdata.*"]),
package_data={
'profiling': [
]
},
test_suite = "",
zip_safe = False
)