-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
65 lines (52 loc) · 1.45 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
61
62
63
64
65
#!/usr/bin/env python
from pathlib import Path
from setuptools import setup, find_packages, Command
import shutil
NAME = "compydetools"
HERE = Path(__file__).resolve().parent
class CleanCommand(Command):
"""Custom clean command to tidy up the project root."""
CLEAN_FILES = [
"build",
"dist",
"*.pyc",
"__pycache__",
"*.egg-info",
".eggs",
"*.egg",
]
user_options = []
def initialize_options(self) -> None:
pass
def finalize_options(self) -> None:
pass
def run(self) -> None:
for pattern in self.CLEAN_FILES:
for file_path in HERE.glob(pattern):
if file_path.is_file() or file_path.is_symlink():
file_path.unlink()
elif file_path.is_dir():
shutil.rmtree(file_path)
about = {}
with open(HERE.joinpath(NAME, "__version__.py")) as f:
exec(f.read(), about)
setup(
name=NAME,
version=about.get("__version__"),
description="A Python implementation of a part of compareDEtools.",
url="https://github.com/136s/comPyDEtools",
packages=find_packages(),
package_data={NAME: ["data/*.csv", "data/*.yaml"]},
python_requires=">=3.10",
install_requires=[
"hydra-core",
"matplotlib",
"numpy",
"omegaconf",
"pandas",
"seaborn",
"sklearn",
"skunk",
],
cmdclass={"clean": CleanCommand},
)