-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (42 loc) · 1.32 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
from distutils.core import setup
from git import Repo
repo = Repo()
# Get version before adding version file
ver = repo.git.describe('--tags')
# append version constant to package init
with open('python/surf/__init__.py','a') as vf:
vf.write(f'\n__version__="{ver}"\n')
setup (
name='surf',
version=ver,
packages=['surf',
'surf/axi',
'surf/devices',
'surf/ethernet',
'surf/misc',
'surf/protocols',
'surf/xilinx',
'surf/devices/analog_devices',
'surf/devices/cypress',
'surf/devices/intel',
'surf/devices/linear',
'surf/devices/microchip',
'surf/devices/micron',
'surf/devices/nxp',
'surf/devices/silabs',
'surf/devices/ti',
'surf/devices/transceivers',
'surf/ethernet/gige',
'surf/ethernet/mac',
'surf/ethernet/ten_gig',
'surf/ethernet/udp',
'surf/ethernet/xaui',
'surf/protocols/batcher',
'surf/protocols/clink',
'surf/protocols/i2c',
'surf/protocols/jesd204b',
'surf/protocols/pgp',
'surf/protocols/rssi',
'surf/protocols/ssi', ],
package_dir={'':'python'},
)