mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-07-06 12:03:17 +03:00
597f1e0398
Some Linux distributions (e.g. Arch Linux) already ship cmd2 3.x.x, which removed the style()/Fg/Bg API in favor of stylize()/Color. Add a version guard to select the right API at runtime. Adjust the upper bound cap in requirements.txt and setup.py. Change-Id: Ibf2ac7847933296fb06665c87f53ed6e1f315d27
65 lines
1.5 KiB
Python
65 lines
1.5 KiB
Python
from setuptools import setup
|
|
|
|
setup(
|
|
name='pySim',
|
|
version='1.0',
|
|
packages=[
|
|
'pySim',
|
|
'pySim.apdu',
|
|
'pySim.apdu_source',
|
|
'pySim.esim',
|
|
'pySim.esim.saip',
|
|
'pySim.global_platform',
|
|
'pySim.legacy',
|
|
'pySim.transport',
|
|
],
|
|
url='https://osmocom.org/projects/pysim/wiki',
|
|
license='GPLv2',
|
|
author_email='simtrace@lists.osmocom.org',
|
|
description='Tools related to SIM/USIM/ISIM cards',
|
|
install_requires=[
|
|
"pyscard",
|
|
"pyserial",
|
|
"pytlv",
|
|
"cmd2 >= 2.6.2, < 4.0",
|
|
"jsonpath-ng",
|
|
"construct >= 2.10.70",
|
|
"bidict",
|
|
"pyosmocom >= 0.0.12",
|
|
"pyyaml >= 5.4",
|
|
"termcolor",
|
|
"colorlog",
|
|
"pycryptodomex",
|
|
"packaging",
|
|
"smpp.pdu @ git+https://github.com/hologram-io/smpp.pdu",
|
|
"asn1tools",
|
|
"smpp.twisted3 @ git+https://github.com/jookies/smpp.twisted",
|
|
],
|
|
scripts=[
|
|
'pySim-prog.py',
|
|
'pySim-read.py',
|
|
'pySim-shell.py',
|
|
'pySim-trace.py',
|
|
'pySim-smpp2sim.py',
|
|
],
|
|
package_data={
|
|
'pySim.esim':
|
|
[
|
|
'asn1/rsp/*.asn',
|
|
'asn1/saip/*.asn',
|
|
],
|
|
},
|
|
extras_require={
|
|
"smdpp": [
|
|
"klein",
|
|
"service-identity",
|
|
"pyopenssl",
|
|
"requests",
|
|
"smpplib",
|
|
],
|
|
"CardKeyProviderPgsql": [
|
|
"psycopg2-binary",
|
|
]
|
|
},
|
|
)
|