-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsetup.py
More file actions
48 lines (46 loc) · 1.39 KB
/
setup.py
File metadata and controls
48 lines (46 loc) · 1.39 KB
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
from setuptools import setup
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="restalker",
version="2.2.5",
description="Text analyzer package",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://gitlab.com/junquera/stalker",
author="Javier Junquera Sánchez",
author_email="javier@junquera.io",
license="MIT",
packages=["restalker"],
install_requires=[
"based58",
"bech32ref",
"bip-utils",
"bs4",
"gliner2",
"monero",
"web3",
"lxml",
"phonenumbers",
"python-magic",
"torch>=2.0.0", # CPU-only by default from PyPI
],
extras_require={
# NVIDIA GPU support (CUDA)
# Install with: pip install restalker[gpu]
"gpu": [
"torch>=2.0.0", # Will install CUDA variant from PyTorch index
],
# AMD GPU support (ROCm)
# Install with: pip install restalker[amd-gpu]
"amd-gpu": [
"torch>=2.0.0", # Will install ROCm variant from PyTorch index
],
# CPU-only (default)
# Install with: pip install restalker or pip install restalker[cpu]
"cpu": [
"torch>=2.0.0", # Will install CPU-only variant
],
},
entry_points={"console_scripts": ["restalker=restalker.restalker:main"]},
)