-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathsetup.py
More file actions
29 lines (25 loc) · 762 Bytes
/
setup.py
File metadata and controls
29 lines (25 loc) · 762 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
28
29
from pathlib import Path
from typing import List
from setuptools import find_packages, setup
def load_requirements(path: str) -> List[str]:
req_file = Path(__file__).parent / path
requirements: List[str] = []
for line in req_file.read_text(encoding="utf-8").splitlines():
line = line.strip()
if not line or line.startswith("#"):
continue
requirements.append(line)
return requirements
setup(
name="LaTeXTrans",
version="0.1.0",
packages=find_packages(),
py_modules=["main"],
install_requires=load_requirements("requirements.txt"),
entry_points={
"console_scripts": [
"latextrans=main:main",
"latextrans-gui=src.gui.launcher:main",
],
},
)