-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·60 lines (52 loc) · 1.27 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
#!/usr/bin/env python3
"""
Install HQ Python module
"""
from distutils.core import setup
import os
from pathlib import Path
setup(
name="hq",
version="1.0",
description="Generic personal python library",
author="Hamish Morgan",
author_email="[email protected]",
url="http://github.com/hacmorgan/hq",
packages=[
"hq",
"hq.calculators",
"hq.cli",
"hq.gui",
"hq.hardware",
"hq.ml",
"hq.ml.wwd",
],
scripts=[
str(path)
for path in Path("applications").iterdir()
if not path.stem.startswith(".")
],
install_requires=[
"black",
"cattrs",
"cloudpickle",
"distro",
"escpos",
"flake8",
"ipython",
"jedi_language_server",
"keyboard",
"numpy",
"opencv-python-headless",
"pillow",
"pygls>1.1.1", # Avoids (1) from version 1.1.1
"pylint",
"typer",
"virtualenv",
]
+ (["torch", "torchvision"] if "HQML" in os.environ else []),
)
# Errors
# (1) - TypeError when initialising jedi-language-server in emacs
# TypeError: Options of method "textDocument/completion" should be instance of
# type <class 'lsprotocol.types.CompletionOptions'>