-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
49 lines (45 loc) · 1.66 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
import pathlib
from setuptools import setup
pkg_name = 'perf_timer'
base_dir = pathlib.Path(__file__).parent
with open(base_dir / 'src' / pkg_name / '_version.py') as f:
version_globals = {}
exec(f.read(), version_globals)
version = version_globals['__version__']
setup(
name=pkg_name,
description='An indispensable performance timer for Python',
long_description='''
PerfTimer is an instrumenting timer which provides an easy way to
get insight into call count and average execution time of a function
or piece of code during a real session of your program.
Use cases include:
* check the effects of algorithm tweaks, new implementations, etc.
* confirm the performance of a library you are considering under
actual use by your app (as opposed to upstream's artificial
benchmarks)
* measure CPU overhead of networking or other asynchronous I/O
(currently supported: OS threads, Trio async/await)
''',
long_description_content_type='text/markdown',
version=version,
author='John Belmonte',
author_email='[email protected]',
url='https://github.com/belm0/perf-timer',
license='MIT',
packages=[pkg_name],
package_dir={'': 'src'},
install_requires=[],
python_requires='>=3.7',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Framework :: Trio',
],
)