-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
35 lines (28 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
# Copyright 2024 Broadcom. All Rights Reserved.
from setuptools import setup
import config_modules_vmware
def read(fname):
with open(fname, "r") as fh:
return fh.read()
def _parse_requirements(requirements_file):
requirements = []
with open(requirements_file, encoding="utf-8") as f:
for line in f.readlines():
line = line.strip()
if not line or line.startswith(("#", "-r", "--")):
continue
requirements.append(line)
return requirements
setup(
name=config_modules_vmware.name,
# duplicate information due to concourse pipeline requirement
version=config_modules_vmware.version,
description=config_modules_vmware.description,
author=config_modules_vmware.author,
install_requires=_parse_requirements("requirements/prod-requirements.txt"),
extras_require={"api": _parse_requirements("requirements/api-requirements.txt")},
python_requires=">=3.7, <3.12.0",
tests_require=_parse_requirements("requirements/unit-test-requirements.txt"),
long_description=read("README.md"),
long_description_content_type="text/markdown",
)