-
Notifications
You must be signed in to change notification settings - Fork 29
/
setup.py
53 lines (46 loc) · 1.95 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
from setuptools import setup, find_packages
from os import path, walk
author = 'Tomasz Hemperek, Jens Janssen, David-Leon Pohl'
maintainer = 'Yannick Dieter, Christian Bespin'
maintainer_email = '[email protected], [email protected]'
# https://packaging.python.org/guides/single-sourcing-package-version/
# Use
# import get_distribution
# get_distribution('package_name').version
# to programmatically access a version number.
# Also add
# include VERSION
# MANIFEST.in
with open('VERSION') as version_file:
version = version_file.read().strip()
# Requirements for core functionality from requirements.txt
# Also add
# include requirements.txt
# MANIFEST.in
with open('requirements.txt') as f:
install_requires = f.read().splitlines()
def package_files(directory):
paths = []
for (fpath, directories, filenames) in walk(directory):
for filename in filenames:
paths.append(path.join('..', fpath, filename))
return paths
setup(
name='basil_daq',
version=version,
python_requires='>=3.8',
description='Basil - a data acquisition and system testing framework',
url='https://github.com/SiLab-Bonn/basil',
license='BSD 3-Clause ("BSD New" or "BSD Simplified") License',
long_description='Basil is a modular data acquisition system and system testing framework in Python.\nIt also provides generic FPGA firmware modules for different hardware platforms and drivers for wide range of lab appliances.',
install_requires=install_requires,
author=author,
author_email=author_email,
maintainer=maintainer,
maintainer_email=maintainer_email,
packages=find_packages(),
include_package_data=True, # accept all data files and directories matched by MANIFEST.in or found in source control
package_data={'': ['*.yaml'], 'basil': package_files('basil/firmware')},
platforms='any'
)