-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
27 lines (23 loc) · 714 Bytes
/
Copy pathsetup.py
File metadata and controls
27 lines (23 loc) · 714 Bytes
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
# setup.py
from pathlib import Path
from setuptools import setup, find_packages
def read_requirements(file: str):
reqs = []
for line in Path(file).read_text().splitlines():
line = line.strip()
if line and not line.startswith("#"):
reqs.append(line)
return reqs
setup(
name="metahash",
version="1.0.0",
packages=find_packages(include=["metahash", "metahash.*"]),
python_requires=">=3.9",
install_requires=read_requirements("requirements.txt"),
entry_points={
"console_scripts": [
"run_miner=metahash.scripts.run_miner:main",
"run_validator=metahash.scripts.run_validator:main",
],
},
)