2018-04-11 21:49:41 +00:00
|
|
|
|
# -*- coding: UTF−8 -*-
|
2017-07-05 21:36:10 +00:00
|
|
|
|
|
|
|
|
|
from setuptools import setup, find_packages
|
|
|
|
|
|
|
|
|
|
setup(
|
|
|
|
|
name="pycrate",
|
2019-02-25 10:26:10 +00:00
|
|
|
|
version="0.4",
|
2017-07-05 21:36:10 +00:00
|
|
|
|
|
|
|
|
|
#packages=find_packages(),
|
|
|
|
|
packages=["pycrate_core",
|
|
|
|
|
"pycrate_ether",
|
|
|
|
|
"pycrate_media",
|
|
|
|
|
"pycrate_asn1c",
|
|
|
|
|
"pycrate_asn1dir",
|
2017-08-27 20:28:16 +00:00
|
|
|
|
"pycrate_asn1rt",
|
|
|
|
|
"pycrate_csn1",
|
|
|
|
|
"pycrate_csn1dir",
|
|
|
|
|
"pycrate_mobile",
|
2019-08-01 15:04:33 +00:00
|
|
|
|
"pycrate_diameter",
|
2017-09-16 16:57:05 +00:00
|
|
|
|
"pycrate_corenet",
|
2018-06-20 16:44:57 +00:00
|
|
|
|
"pycrate_sys",
|
2020-10-23 16:31:01 +00:00
|
|
|
|
"pycrate_crypto",
|
2017-09-01 19:51:12 +00:00
|
|
|
|
],
|
2017-07-05 21:36:10 +00:00
|
|
|
|
test_suite="test.test_pycrate",
|
|
|
|
|
|
|
|
|
|
scripts=["tools/pycrate_asn1compile.py",
|
2017-08-27 20:28:16 +00:00
|
|
|
|
"tools/pycrate_berdecode.py",
|
2017-07-05 21:36:10 +00:00
|
|
|
|
"tools/pycrate_showmedia.py",
|
2020-12-08 16:15:31 +00:00
|
|
|
|
"tools/pycrate_shownas.py",
|
2019-11-04 09:52:43 +00:00
|
|
|
|
"tools/pycrate_map_op_info.py",
|
2017-07-05 21:36:10 +00:00
|
|
|
|
],
|
|
|
|
|
|
2019-08-01 15:04:33 +00:00
|
|
|
|
# no mandatory dependency
|
2017-07-05 21:36:10 +00:00
|
|
|
|
install_requires=[],
|
|
|
|
|
|
2019-08-01 15:04:33 +00:00
|
|
|
|
# optional dependencies
|
2019-08-01 15:08:17 +00:00
|
|
|
|
extras_require={
|
2019-08-01 15:04:33 +00:00
|
|
|
|
"NASLTE" : ["CryptoMobile"],
|
|
|
|
|
"corenet" : ["pysctp", "CryptoMobile"],
|
|
|
|
|
"diameter_dict" : ["lxml"],
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
# for pycrate_asn1dir and pycrate_csn1dir:
|
|
|
|
|
# .asn, .csn, .txt and .json files from asn1dir and csn1dir are not required
|
|
|
|
|
# to be installed
|
2017-07-05 21:36:10 +00:00
|
|
|
|
# only compiled .py modules are installed by default
|
2019-08-01 15:04:33 +00:00
|
|
|
|
# for pycrate_diameter:
|
2020-12-10 14:28:44 +00:00
|
|
|
|
# .xml files are converted to Python dicts and may be updated from time to
|
|
|
|
|
# time
|
2019-08-01 15:04:33 +00:00
|
|
|
|
# for pycrate_corenet:
|
|
|
|
|
# the AuC.db file is the mobile subscriber authentication database
|
|
|
|
|
# containing Ki and is required at runtime when using corenet
|
2017-07-05 21:36:10 +00:00
|
|
|
|
package_data={
|
2019-08-01 15:04:33 +00:00
|
|
|
|
#"pycrate_asn1dir" : ["*.asn", "*.json"],
|
|
|
|
|
#"pycrate_csn1dir" : ["*.csn"],
|
2020-12-10 14:28:44 +00:00
|
|
|
|
#"pycrate_diameter" : ["*.xml"],
|
2019-08-01 15:04:33 +00:00
|
|
|
|
"pycrate_corenet" : ["AuC.db"],
|
2017-07-05 21:36:10 +00:00
|
|
|
|
},
|
|
|
|
|
#include_package_data=False,
|
|
|
|
|
|
|
|
|
|
author="Benoit Michau",
|
|
|
|
|
author_email="michau.benoit@gmail.com",
|
|
|
|
|
description="A software suite to handle various data formats",
|
|
|
|
|
long_description=open("README.md", "r").read(),
|
2021-05-06 15:45:17 +00:00
|
|
|
|
long_description_content_type="text/markdown",
|
2019-08-01 15:04:33 +00:00
|
|
|
|
url="https://github.com/P1sec/pycrate/",
|
2020-12-08 16:15:31 +00:00
|
|
|
|
keywords="protocol format asn1 compiler csn1 encoder decoder mobile core network Diameter NAS S1AP NGAP TCAP MAP",
|
2018-04-15 19:47:21 +00:00
|
|
|
|
license="LGPL v2.1+",
|
2017-07-05 21:36:10 +00:00
|
|
|
|
)
|