-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
44 lines (37 loc) · 1.13 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
import subprocess
from setuptools import find_packages, setup
def run_code_formatters():
for tool in ["isort .", "black .", "mdformat ."]:
print(f"running `{tool}`")
subprocess.run(tool, shell=True)
def run_code_verification():
tool = "flake8 src/ test/"
print(f"running `{tool}`")
subprocess.run(tool, shell=True)
if __name__ == "__main__":
setup(
name="utec",
version="0.0",
python_requires=">=3.10",
packages=find_packages(),
install_requires=[
"black[jupyter]==22.3.0",
"flake8==4.0.1",
"flake8-black==0.3.2",
"flake8-isort==4.1.1",
"isort==5.10.1",
"mdformat==0.7.14",
"mdformat-gfm==0.3.5",
"mdformat-black==0.1.1",
"numpy==1.22.3",
"pytest==7.1.2",
"sphinx==4.5.0",
"sphinx-rtd-theme==1.0.0",
],
entry_points={
"console_scripts": [
f"format = setup:{run_code_formatters.__name__}",
f"validate = setup:{run_code_verification.__name__}",
]
},
)