-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
45 lines (36 loc) · 1.27 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
from setuptools import setup
import os
from os import path
def readme():
with open('README.md') as f:
return f.read()
ALLOWED_FILETYPES = ['.py', '.yaml', '.csv', '.xls', '.txt']
def listdir(d=''):
d = os.path.join(os.path.dirname(__file__), d)
files = [os.path.join(d, f) for f in os.listdir(d)]
files = [f for f in files if path.isfile(f)]
return [f for f in files if any(a in f for a in ALLOWED_FILETYPES)]
sharedir = 'share/accelergy/estimation_plug_ins/accelergy-adc-plug-in'
setup(
name='accelergy-adc-plug-in',
version='0.1',
description='An energy estimation plug-in for Accelergy framework for analog components',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)',
],
keywords='accelerator hardware energy estimation analog adc',
author='Tanner Andrulis',
author_email='[email protected]',
license='MIT',
install_requires=['PyYAML', 'numpy', 'pandas'],
python_requires='>=3.8',
data_files=[
(sharedir, listdir()),
(f'{sharedir}/adc_data', listdir('adc_data')),
],
entry_points={},
zip_safe=False,
)