-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
96 lines (82 loc) · 2.81 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# -*- coding: UTF−8 -*-
import os
import sys
from setuptools import setup, find_packages
# Pycrate Version
VERSION = "0.7.7"
# get long description from the README.md
with open(os.path.join(os.path.dirname(__file__), "README.md")) as fd:
long_description = fd.read()
setup(
name="pycrate",
version=VERSION,
#packages=find_packages(),
packages=[
"pycrate_core",
"pycrate_ether",
"pycrate_media",
"pycrate_asn1c",
"pycrate_asn1dir",
"pycrate_asn1rt",
"pycrate_csn1",
"pycrate_csn1dir",
"pycrate_mobile",
"pycrate_diameter",
"pycrate_corenet",
"pycrate_sys",
"pycrate_crypto",
"pycrate_osmo",
"pycrate_gmr1",
"pycrate_gmr1_csn1",
],
test_suite="test.test_pycrate",
scripts=[
"tools/pycrate_asn1compile.py",
"tools/pycrate_berdecode.py",
'tools/pycrate_certdecode.py',
"tools/pycrate_showmedia.py",
"tools/pycrate_shownas.py",
"tools/pycrate_gtp_type_info.py",
"tools/pycrate_map_op_info.py",
"tools/pycrate_extnas_demo.py",
],
# potential dependencies
install_requires=[],
# optional dependencies
extras_require={
"NASLTE" : ["CryptoMobile"],
"NAS5G" : ["CryptoMobile"],
"corenet" : ["pysctp", "CryptoMobile"],
"diameter_dict" : ["lxml"],
"SEDebugMux": ["crcmod"],
},
# for pycrate_asn1dir, pycrate_csn1dir, pycrate_gmr1_csn1:
# .asn, .csn, .txt and .json files from asn1dir and csn1dir are not required to be installed
# only compiled .py modules are installed by default
#
# for pycrate_diameter:
# .xml files are converted to Python dicts and may be updated from time to time
#
# for pycrate_corenet:
# the AuC.db file is the mobile subscriber authentication database
# containing Ki and is required at runtime when using corenet
#
package_data={
#"pycrate_asn1dir" : ["*.asn", "*.json"],
#"pycrate_csn1dir" : ["*.csn"],
#"pycrate_gmr1_csn1" : ["*.csn"],
#"pycrate_diameter" : ["*.xml"],
"pycrate_corenet" : ["AuC.db"],
},
#include_package_data=False,
# include license file and remind the licensing here
license_files=('license.txt', ),
license="LGPL v2.1+",
author="Benoit Michau",
author_email="[email protected]",
description="A software suite to handle various data and protocol formats",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/pycrate-org/pycrate/",
keywords="protocol format ASN.1 CSN.1 compiler encoder decoder mobile core network Diameter NAS S1AP NGAP TCAP MAP GTP PFCP SCCP ISUP",
)