1+ [build-system ]
2+ requires = [" setuptools>=61" , " wheel" ]
3+ build-backend = " setuptools.build_meta"
4+
5+ [project ]
6+ name = " nemea-pytrap"
7+ version = " 0.17.0"
8+ description = " Python extension of the NEMEA project."
9+ readme = {file = " README.md" , content-type = " text/markdown" }
10+ authors = [
11+ {
name =
" Tomas Cejka" ,
email =
" [email protected] " },
12+ ]
13+ maintainers = [
14+ {
name =
" Tomas Cejka" ,
email =
" [email protected] " },
15+ ]
16+ license = { text = " BSD" }
17+ requires-python = " >=3.8"
18+ classifiers = [
19+ " Development Status :: 4 - Beta" ,
20+ " Operating System :: POSIX :: Linux" ,
21+ " Programming Language :: C" ,
22+ " Programming Language :: Python :: 3" ,
23+ " Programming Language :: Python :: 3.8" ,
24+ " Programming Language :: Python :: 3.9" ,
25+ " Programming Language :: Python :: 3.10" ,
26+ " Programming Language :: Python :: 3.11" ,
27+ " Programming Language :: Python :: 3.12" ,
28+ " Programming Language :: Python :: Implementation :: CPython" ,
29+ " Topic :: Software Development :: Libraries" ,
30+ " Topic :: System :: Networking :: Monitoring"
31+ ]
32+ dependencies = []
33+
34+ [project .optional-dependencies ]
35+ test = [
36+ " pytest" ,
37+ " pytest-cov" ,
38+ " pytest-forked" ,
39+ ]
40+ docs = [
41+ " sphinx" ,
42+ " sphinx-rtd-theme" ,
43+ " sphinx-pyproject"
44+ ]
45+
46+ [project .urls ]
47+ Homepage = " https://github.com/CESNET/Nemea-Framework"
48+
49+ # Configure setuptools to find packages and handle C extensions
50+ [tool .setuptools ]
51+ package-dir = { "" = " src" }
52+
53+ [tool .setuptools .packages .find ]
54+ where = [" src" ]
55+
56+ [[tool .setuptools .ext-modules ]]
57+ name = " pytrap.pytrap"
58+ sources = [
59+ " src/pytrapmodule.c" ,
60+ " src/unirecmodule.c" ,
61+ " src/unirecipaddr.c" ,
62+ " src/unirecmacaddr.c" ,
63+ " src/iplist.c" ,
64+ " src/fields.c"
65+ ]
66+ libraries = [" trap" , " unirec" ]
67+
68+
69+ [tool .pytest .ini_options ]
70+ testpaths = [" test" ]
71+ python_files = [" *_unittest.py" ]
72+ addopts = " --forked"
0 commit comments