-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (42 loc) · 1.4 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
# -*- coding: utf-8 -*-
# file: setup.py
# date: 2024-02-28
import os
import sys
import re
import subprocess
from pathlib import Path
from setuptools import setup, Extension, find_packages
from setuptools.command.install import install
from setuptools.command.build_ext import build_ext
from typing import List, Tuple, Dict
CURR_DIR: str = os.path.abspath(os.path.dirname(__file__))
def get_install_deps() -> Tuple[List[str], List[str] ]:
dependency_links: List[str] = []
install_requires: List[str] = []
requirements: List[str] = open(
os.path.join(CURR_DIR, "requirements.txt"), "r")\
.read().strip("\n").strip(" ").split("\n")
for dep in requirements:
if "git@" in dep or "://" in dep:
dependency_links.append(dep)
else:
install_requires.append(dep)
return (install_requires, dependency_links)
if __name__ == "__main__":
get_install_deps()
setup(
name="mia",
version="0.0.0",
author="innerNULL",
author_email="",
description="Lib for Audio Pipelines",
url="https://github.com/innerNULL/mia",
python_requires='>=3.8, <=3.11',
install_requires=get_install_deps()[0],
dependency_links=get_install_deps()[1],
package_dir={"": "src"},
packages=find_packages("src"),
zip_safe=False,
extras_require={"test": ["pytest"]},
)