-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
68 lines (56 loc) · 1.67 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
66
67
68
"""Setups up the CeBed module."""
from setuptools import find_packages, setup
def get_description():
"""Gets the description from the readme."""
with open("README.md") as fh:
long_description = ""
header_count = 0
for line in fh:
if line.startswith("##"):
header_count += 1
if header_count < 2:
long_description += line
else:
break
return header_count, long_description
def get_version():
"""Gets the cebed version."""
path = "cebed/__init__.py"
with open(path) as file:
lines = file.readlines()
for line in lines:
if line.startswith("__version__"):
return line.strip().split()[-1].strip().strip('"')
raise RuntimeError("bad version data in __init__.py")
version = get_version()
header_count, long_description = get_description()
setup(
name="cebed",
version=version,
author="SAIC Montreal",
description="Benchmark for Data Driven Deep Channel Estimation.",
license="CC-BY-NV 3.0",
licence_files=("LICENCE",),
long_description=long_description,
long_description_content_type="text/markdown",
keywords=["Deep Learning", "Datasets", "CE", "OFDM"],
python_requires=">=3.7, <3.11",
packages=find_packages(exclude=["scripts"]),
include_package_data=True,
install_requires=[
"numpy==1.24.2",
"sionna==0.13.0",
"tensorflow==2.11",
"pyaml",
"tqdm==4.65.0",
"pandas==1.5.3",
"seaborn==0.12.2",
"pre-commit",
],
extras_require={
"tests": [
"pytest",
"pytest-cov",
]
},
)