-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
58 lines (51 loc) · 1.63 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
from setuptools.command.install import install
from _version import __version__
from setuptools import find_packages, setup
import pathlib
import os
from generate_config import generate_config
with open("requirements.txt", "r") as file:
required_deps = file.read().splitlines()
parent_folder = pathlib.Path(__file__).parent.resolve()
long_description = (parent_folder / "README.md").read_text(encoding="utf-8")
class custom_install(install):
def run(self):
# Default install command
install.run(self)
overwrite_settings = os.getenv("OVERWRITE_SETTINGS", "False").lower() == "true"
mars_home_dir = os.getenv("MARS_SETTINGS_DIR", "HOME")
generate_config(overwrite_settings, mars_home_dir)
setup(
name="mars",
cmdclass={
"install": custom_install,
},
description="Multi-omics Adapter for Repository Submissions",
long_description=long_description,
long_description_content_type="text/markdown",
packages=find_packages(include=["mars_lib", "mars_lib.*"]),
py_modules=["mars_cli"],
version=__version__,
license="MIT",
install_requires=[required_deps],
extras_require={
"test": [
# Dependencies for testing only
"black",
"ruff",
"pytest",
"pytest-cov",
"mypy",
]
},
project_urls={
"Source": "https://github.com/elixir-europe/MARS",
"Bug Reports": "https://github.com/elixir-europe/MARS/issues",
},
entry_points={ # Optional
"console_scripts": [
"mars-cli=mars_cli:cli",
],
},
python_requires=">=3.9, <4",
)