-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
33 lines (29 loc) · 881 Bytes
/
setup.py
File metadata and controls
33 lines (29 loc) · 881 Bytes
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
"""Installation with setuptools or pip."""
from setuptools import setup, find_packages
import os
import ast
def get_version_from_init():
"""Obtain library version from main init."""
init_file = os.path.join(
os.path.dirname(__file__), 'bb_tools', '__init__.py'
)
with open(init_file) as fd:
for line in fd:
if line.startswith('__version__'):
return ast.literal_eval(line.split('=', 1)[1].strip())
setup(
name='bb_tools',
version=get_version_from_init(),
description='Beam-beam tools for LHC',
author='Elleanor Lamb',
author_email='elleanor.rose.lamb@cern.ch',
url='https://github.com/ElleanorLamb/bb_tools',
license=None,
packages=find_packages(exclude=('tests', 'docs', 'examples')),
install_requires=[
'numpy',
'cpymad',
'pandas',
'scipy'
],
)