-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
60 lines (55 loc) · 1.89 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
54
55
56
57
58
59
60
# copyright ################################# #
# This file is part of the wakis Package. #
# Copyright (c) CERN, 2024. #
# ########################################### #
from setuptools import setup, find_packages
from pathlib import Path
# read version
version_file = Path(__file__).parent / 'wakis/_version.py'
dd = {}
with open(version_file.absolute(), 'r') as fp:
exec(fp.read(), dd)
__version__ = dd['__version__']
# read long_description
long_description = (Path(__file__).parent / "README.md").read_text()
# read requirements.txt for extras_require
with open('requirements.txt') as f:
notebook_required = f.read().splitlines()
setup(
name='wakis',
version=__version__,
description="3D Electromagnetic Time-Domain wake and impedance solver",
long_description=long_description,
long_description_content_type='text/markdown',
url='https://wakis.readthedocs.io/',
author='Elena de la Fuente et al.',
author_email="[email protected]",
license='Apache 2.0',
download_url="https://pypi.python.org/pypi/wakis",
project_urls={
"Bug Tracker": "https://github.com/ImpedanCEI/wakis/issues",
"Documentation": "https://wakis.readthedocs.io/en/latest/index.html",
"Source Code": "https://github.com/ImpedanCEI/wakis/wakis",
},
packages=find_packages(),
include_package_data=True,
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Physics",
],
install_requires=[
'numpy<2.0',
'scipy',
'pyvista',
'h5py',
'tqdm',
],
extras_require={
'gpu': ['cupy'],
'notebook': notebook_required,
},
tests_require=['pytest'],
)