-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
74 lines (68 loc) · 2.47 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# pybpf_asm - Python BPF Assembler
# Copyright (C) 2022 Segev Finer
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
import re
from setuptools import find_packages
from skbuild import setup
with open("bpf_asm/__init__.py", "r", encoding="utf-8") as f:
version = re.search(r'(?m)^__version__ = "([a-zA-Z0-9.-]+)"', f.read()).group(1)
with open("README.rst", "r", encoding="utf-8") as f:
long_description = f.read()
setup(
name="bpf_asm",
version=version,
author="Segev Finer",
author_email="[email protected]",
description="Python BPF Assembler",
long_description=long_description,
long_description_content_type="text/x-rst",
url="https://github.com/segevfiner/pybpf_asm",
project_urls={
"Documentation": "https://segevfiner.github.io/pybpf_asm/",
"Issue Tracker": "https://github.com/segevfiner/pybpf_asm/issues",
},
license="GPL-2.0-only",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: System :: Networking :: Monitoring",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Programming Language :: Cython",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"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",
"Programming Language :: Python :: 3.13",
],
keywords="bpf",
zip_safe=False,
packages=find_packages(),
entry_points={
"console_scripts": [
"pybpf_asm = bpf_asm.__main__:main"
],
},
python_requires='>=3.6',
extras_require={
"dev": [
"flake8",
"pytest",
"sphinx==5.*"
],
}
)