-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
executable file
·46 lines (40 loc) · 1.6 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
#!/usr/bin/env python
# Installing package from sources:
from setuptools import setup, find_packages
from platform import system
author = 'Jens Janssen, David-Leon Pohl'
author_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()
if system() == 'Windows':
install_requires.append('pywin32')
setup(
name='pyBAR',
version=version,
description='pyBAR - Bonn ATLAS Readout in Python',
url='https://github.com/SiLab-Bonn/pyBAR',
license='BSD 3-Clause ("BSD New" or "BSD Simplified") License',
long_description='PyBAR is a versatile readout and test system for the ATLAS FEI4 pixel readout chip.\nIt uses the Basil framework to access the readout hardware. PyBAR\'s FPGA firmware and host software includes support for different hardware platforms.',
author=author,
maintainer=author,
author_email=author_email,
maintainer_email=author_email,
install_requires=install_requires,
packages=find_packages(),
include_package_data=True, # accept all data files and directories matched by MANIFEST.in or found in source control
platforms='any'
)