-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
39 lines (36 loc) · 1.24 KB
/
setup.py
File metadata and controls
39 lines (36 loc) · 1.24 KB
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
from setuptools import setup, find_packages
from pyrfdpd import __version__
from docutils import core
from pathlib import Path
path = Path.cwd()
# parse description section text
with open(str(path / "README.rst"), "r") as f:
data = f.read()
readme_nodes = list(core.publish_doctree(data))
for node in readme_nodes:
if node.astext().startswith("Description"):
long_description = node.astext().rsplit("\n\n")[1]
# parse package requirements from text file
with open(str(path / "requirements.txt"), "r") as f:
req_list = f.read().split("\n")
setup(
name="pyrfdpd",
version=__version__,
author="Zhe Li",
author_email="ataraxialex@gmail.com",
description="Python package for radio frequency digital predistortion techniques",
long_description=long_description,
long_description_content_type="text/x-rst",
url="https://github.com/SEU-MSLab/pyrfdpd",
packages=find_packages(),
license="MIT",
keywords="communication DPD pytroch volterra",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
install_requires=req_list,
include_package_data=True,
zip_safe=False,
)