forked from mgedmin/profilehooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·51 lines (42 loc) · 1.58 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
#!/usr/bin/env python
import os
from setuptools import setup
here = os.path.dirname(__file__)
def read(filename):
with open(os.path.join(here, filename)) as f:
return f.read()
with open(os.path.join(here, 'profilehooks.py')) as f:
for line in f:
if line.startswith('__version__ = '):
version = line.split(' = ')[1].strip('\'"\n')
setup(
name='profilehooks',
version=version,
author='Marius Gedminas',
author_email='[email protected]',
url='https://mg.pov.lt/profilehooks/',
description='Decorators for profiling/timing/tracing individual functions',
long_description=read('README.rst') + '\n\n' + read('CHANGES.rst'),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
keywords='profile coverage decorators',
license='MIT',
py_modules=['profilehooks'],
test_suite='test_profilehooks',
zip_safe=False,
)