-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
153 lines (147 loc) · 5.59 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
from setuptools import setup
dependencies = [
"aiofiles==0.7.0", # Async IO for files
"blspy==1.0.13", # Signature library
"chiavdf==1.0.6", # timelord and vdf verification
"chiabip158==1.1", # bip158-style wallet filters
"chiapos==1.0.10", # proof of space
"clvm==0.9.7",
"clvm_tools==0.4.4", # Currying, Program.to, other conveniences
"chia_rs==0.1.2",
"clvm-tools-rs==0.1.9", # Rust implementation of clvm_tools
"aiohttp==3.8.1", # HTTP server for full node rpc
"aiosqlite==0.17.0", # asyncio wrapper for sqlite, to store blocks
"bitstring==3.1.9", # Binary data management library
"colorama==0.4.4", # Colorizes terminal output
"colorlog==6.6.0", # Adds color to logs
"concurrent-log-handler==0.9.19", # Concurrently log and rotate logs
"cryptography==36.0.2", # Python cryptography library for TLS - keyring conflict
"fasteners==0.16.3", # For interprocess file locking, expected to be replaced by filelock
"filelock==3.4.2", # For reading and writing config multiprocess and multithread safely (non-reentrant locks)
"keyring==23.0.1", # Store keys in MacOS Keychain, Windows Credential Locker
"keyrings.cryptfile==1.3.4", # Secure storage for keys on Linux (Will be replaced)
# "keyrings.cryptfile==1.3.8", # Secure storage for keys on Linux (Will be replaced)
# See https://github.com/frispete/keyrings.cryptfile/issues/15
"PyYAML==6.0", # Used for config file format
"setproctitle==1.2.3", # Gives the chives processes readable names
"sortedcontainers==2.4.0", # For maintaining sorted mempools
# TODO: when moving to click 8 remove the pinning of black noted below
"click==7.1.2", # For the CLI
"dnspythonchia==2.2.0", # Query DNS seeds
"watchdog==2.1.7", # Filesystem event watching - watches keyring.yaml
"dnslib==0.9.17", # dns lib
"typing-extensions==4.0.1", # typing backports like Protocol and TypedDict
"zstd==1.5.0.4",
"packaging==21.0",
]
upnp_dependencies = [
"miniupnpc==2.2.2", # Allows users to open ports on their router
]
dev_dependencies = [
"build",
"coverage",
"pre-commit",
"pytest",
"pytest-asyncio>=0.18.1", # require attribute 'fixture'
"pytest-monitor; sys_platform == 'linux'",
"pytest-xdist",
"twine",
"isort",
"flake8",
"mypy",
# TODO: black 22.1.0 requires click>=8, remove this pin after updating to click 8
"black==21.12b0",
"aiohttp_cors", # For blackd
"ipython", # For asyncio debugging
"pyinstaller==5.0",
"types-aiofiles",
"types-click",
"types-cryptography",
"types-pkg_resources",
"types-pyyaml",
"types-setuptools",
]
kwargs = dict(
name="chives-blockchain",
author="Mariano Sorgente",
author_email="[email protected]",
description="Chives blockchain full node, farmer, timelord, and wallet.",
url="https://chivescoin.org/",
license="Apache License",
python_requires=">=3.7, <4",
keywords="chives blockchain node",
install_requires=dependencies,
extras_require=dict(
uvloop=["uvloop"],
dev=dev_dependencies,
upnp=upnp_dependencies,
),
packages=[
"build_scripts",
"chives",
"chives.cmds",
"chives.clvm",
"chives.consensus",
"chives.daemon",
"chives.full_node",
"chives.timelord",
"chives.farmer",
"chives.harvester",
"chives.introducer",
"chives.plot_sync",
"chives.plotters",
"chives.plotting",
"chives.pools",
"chives.protocols",
"chives.rpc",
"chives.seeder",
"chives.server",
"chives.simulator",
"chives.types.blockchain_format",
"chives.types",
"chives.util",
"chives.masternode",
"chives.masternode.clsp",
"chives.masternode.include",
"chives.wallet",
"chives.wallet.puzzles",
"chives.wallet.rl_wallet",
"chives.wallet.cat_wallet",
"chives.wallet.did_wallet",
"chives.wallet.nft_wallet",
"chives.wallet.settings",
"chives.wallet.trading",
"chives.wallet.util",
"chives.ssl",
"mozilla-ca",
],
entry_points={
"console_scripts": [
"chives = chives.cmds.chives:main",
"chives_daemon = chives.daemon.server:main",
"chives_wallet = chives.server.start_wallet:main",
"chives_full_node = chives.server.start_full_node:main",
"chives_harvester = chives.server.start_harvester:main",
"chives_farmer = chives.server.start_farmer:main",
"chives_introducer = chives.server.start_introducer:main",
"chives_crawler = chives.seeder.start_crawler:main",
"chives_seeder = chives.seeder.dns_server:main",
"chives_timelord = chives.server.start_timelord:main",
"chives_timelord_launcher = chives.timelord.timelord_launcher:main",
"chives_full_node_simulator = chives.simulator.start_simulator:main",
"chives_masternode = chives.masternode.start_masternode:main",
]
},
package_data={
"chives": ["pyinstaller.spec"],
"": ["*.clvm", "*.clvm.hex", "*.clib", "*.clinc", "*.clsp", "py.typed"],
"chives.util": ["initial-*.yaml", "english.txt"],
"chives.ssl": ["chives_ca.crt", "chives_ca.key", "dst_root_ca.pem"],
"mozilla-ca": ["cacert.pem"],
},
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
zip_safe=False,
)
if __name__ == "__main__":
setup(**kwargs) # type: ignore