forked from HDDcoin-Network/hddcoin-blockchain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
131 lines (122 loc) · 5.03 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
from __future__ import annotations
import os
import sys
from setuptools import find_packages, setup
dependencies = [
"aiofiles==23.2.1", # Async IO for files
"anyio==4.1.0",
"boto3==1.34.0", # AWS S3 for DL s3 plugin
"chiavdf==1.1.1", # timelord and vdf verification
"chiabip158==1.3", # bip158-style wallet filters
"chiapos==2.0.3", # proof of space
"clvm==0.9.8",
"clvm_tools==0.4.7", # Currying, Program.to, other conveniences
"chia_rs==0.3.3",
"clvm-tools-rs==0.1.40", # Rust implementation of clvm_tools' compiler
"aiohttp==3.9.1", # HTTP server for full node rpc
"aiosqlite==0.19.0", # asyncio wrapper for sqlite, to store blocks
"bitstring==4.1.4", # Binary data management library
"colorama==0.4.6", # Colorizes terminal output
"colorlog==6.8.0", # Adds color to logs
"concurrent-log-handler==0.9.25", # Concurrently log and rotate logs
"cryptography==41.0.7", # Python cryptography library for TLS - keyring conflict
"filelock==3.13.1", # For reading and writing config multiprocess and multithread safely (non-reentrant locks)
"keyring==24.3.0", # Store keys in MacOS Keychain, Windows Credential Locker
"PyYAML==6.0.1", # Used for config file format
"setproctitle==1.3.3", # Gives the hddcoin processes readable names
"sortedcontainers==2.4.0", # For maintaining sorted mempools
"click==8.1.3", # For the CLI
"dnspython==2.4.2", # Query DNS seeds
"watchdog==2.2.0", # Filesystem event watching - watches keyring.yaml
"dnslib==0.9.23", # dns lib
"typing-extensions==4.8.0", # typing backports like Protocol and TypedDict
"zstd==1.5.5.1",
"packaging==23.2",
"psutil==5.9.4",
]
upnp_dependencies = [
"miniupnpc==2.2.2", # Allows users to open ports on their router
]
dev_dependencies = [
"build==1.0.3",
"coverage==7.3.3",
"diff-cover==8.0.1",
"pre-commit==3.5.0; python_version < '3.9'",
"pre-commit==3.6.0; python_version >= '3.9'",
"py3createtorrent==1.1.0",
"pylint==3.0.2",
"pytest==7.4.3",
"pytest-cov==4.1.0",
"pytest-mock==3.12.0",
"pytest-xdist==3.5.0",
"pyupgrade==3.15.0",
"twine==4.0.2",
"isort==5.12.0",
"flake8==6.1.0",
"mypy==1.7.1",
"black==23.11.0",
"lxml==4.9.3",
"aiohttp_cors==0.7.0", # For blackd
"pyinstaller==5.13.0",
"types-aiofiles==23.2.0.0",
"types-cryptography==3.3.23.2",
"types-pyyaml==6.0.12.12",
"types-setuptools==69.0.0.0",
]
legacy_keyring_dependencies = [
"keyrings.cryptfile==1.3.9",
]
kwargs = dict(
name="hddcoin-blockchain",
author="HDDcoin Blockchain",
author_email="[email protected]",
description="HDDcoin blockchain full node, farmer, timelord, and wallet.",
url="https://hddcoin.org/",
license="Apache License",
python_requires=">=3.8.1, <4",
keywords="hddcoin blockchain node",
install_requires=dependencies,
extras_require=dict(
dev=dev_dependencies,
upnp=upnp_dependencies,
legacy_keyring=legacy_keyring_dependencies,
),
packages=find_packages(include=["build_scripts", "hddcoin", "hddcoin.*", "mozilla-ca"]),
entry_points={
"console_scripts": [
"hddcoin = hddcoin.cmds.hddcoin:main",
"hddcoin_daemon = hddcoin.daemon.server:main",
"hddcoin_wallet = hddcoin.server.start_wallet:main",
"hddcoin_full_node = hddcoin.server.start_full_node:main",
"hddcoin_harvester = hddcoin.server.start_harvester:main",
"hddcoin_farmer = hddcoin.server.start_farmer:main",
"hddcoin_introducer = hddcoin.server.start_introducer:main",
"hddcoin_crawler = hddcoin.seeder.start_crawler:main",
"hddcoin_seeder = hddcoin.seeder.dns_server:main",
"hddcoin_timelord = hddcoin.server.start_timelord:main",
"hddcoin_timelord_launcher = hddcoin.timelord.timelord_launcher:main",
"hddcoin_full_node_simulator = hddcoin.simulator.start_simulator:main",
"hddcoin_data_layer = hddcoin.server.start_data_layer:main",
"hddcoin_data_layer_http = hddcoin.data_layer.data_layer_server:main",
"hddcoin_data_layer_s3_plugin = hddcoin.data_layer.s3_plugin_service:run_server",
]
},
package_data={
"": ["*.clsp", "*.clsp.hex", "*.clvm", "*.clib", "py.typed"],
"hddcoin.util": ["initial-*.yaml", "english.txt"],
"hddcoin.ssl": ["hddcoin_ca.crt", "hddcoin_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,
project_urls={
"Source": "https://github.com/HDDcoin-Network/hddcoin-blockchain/",
"Changelog": "https://github.com/HDDcoin-Network/hddcoin-blockchain/blob/main/CHANGELOG.md",
},
)
if "setup_file" in sys.modules:
# include dev deps in regular deps when run in snyk
dependencies.extend(dev_dependencies)
if len(os.environ.get("HDDCOIN_SKIP_SETUP", "")) < 1:
setup(**kwargs) # type: ignore