-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
55 lines (49 loc) · 1.77 KB
/
setup.py
File metadata and controls
55 lines (49 loc) · 1.77 KB
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
import re
from os import path
import setuptools
# Version Number
package_name = 'trace_events'
package_path = path.join('src', package_name, '__init__.py')
with open(package_path, 'r') as file:
content = file.read()
author, author_email, version = [
re.search(f"^__{v}__[\ \t]*=[\ \t]*'([^']+)'",
content, re.MULTILINE).group(1)
for v
in ['author', 'author_email', 'version']]
# Readme
with open('README.md', 'r') as file:
long_description = file.read()
# Run
setuptools.setup(
name='trace-events',
version=version,
author=author,
author_email=author_email,
description='Python event tracing using the Trace Event Format supported by Chromium browsers',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/JonathanHiggs/trace_events',
license='MIT',
project_urls={
'Source': 'https://github.com/JonathanHiggs/trace_events',
'Bug Tracker': 'https://github.com/JonathanHiggs/trace_events/issues'
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Software Development :: Debuggers'
],
keywords='trace tracing event profile profiler',
package_dir={"": "src"},
packages=setuptools.find_packages(where='src'),
python_requires='>=3.8')