forked from coinkite/coinkite-tap-proto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
89 lines (79 loc) · 2.22 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
#
# (c) Copyright 2022 by Coinkite Inc. This file is covered by license found in COPYING-CC.
#
#
# Coinkite Tap protocol and python support library
#
from cktap import __version__
# To use this command to install and yet be able to edit the code (here). Great for dev:
#
# pip install --editable .
#
# with cli dependencies
#
# pip install --editable '.[cli]'
#
# with test dependencies
#
# pip install --editable '.[test]'
#
# On Windows, this can be useful:
#
# pip install -U --force-reinstall coinkite_tap_protocol-*.whl[cli]
#
#
from setuptools import setup
# these minimum versions are tested, some earlier values would probably work too.
# - you will need pyscard>=2.0.2 if doing real NFC w/ cards, but see transport.py
requirements = [
'cbor2>=5.4.1',
]
requests_socks = 'requests[socks]>=2.26.0'
cli_requirements = [
'pyscard>=2.0.2',
'click>=8.0.3',
'pyqrcode>=1.2.1',
'pypng>=0.0.21',
requests_socks,
]
test_requirements = [
'pyscard>=2.0.2',
'pytest',
requests_socks,
]
# only for developers playing with crypto libraries - cross library comparisons
test_plus_requirements = test_requirements + [
'coincurve>=15.0.1',
'wallycore>=0.8.2',
# needs libsecp256k1 installed (check project README.md)
#'python-secp256k1@git+https://github.com/scgbckbone/python-secp256k1.git',
]
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='coinkite-tap-protocol',
version=__version__,
packages=[ 'cktap' ],
python_requires='>3.6.0',
install_requires=requirements,
extras_require={
'cli': cli_requirements,
'test': test_requirements,
'test_plus': test_plus_requirements,
},
url='https://github.com/coinkite/coinkite-tap-proto',
author='Coinkite Inc.',
author_email='[email protected]',
description="Communicate with your TAPSIGNER or SATSCARD using Python",
long_description=long_description,
long_description_content_type="text/markdown",
entry_points='''
[console_scripts]
cktap=cktap.cli:main
''',
classifiers=[
'Operating System :: POSIX :: Linux',
'Operating System :: Microsoft :: Windows',
'Operating System :: MacOS :: MacOS X',
],
)