-
Notifications
You must be signed in to change notification settings - Fork 26
/
setup.py
66 lines (58 loc) · 2.49 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
61
62
63
64
65
66
"""Setup/build/install script for DESC."""
import os
import versioneer
from setuptools import find_packages, setup
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.rst"), encoding="utf-8") as f:
long_description = f.read()
with open(os.path.join(here, "requirements.txt"), encoding="utf-8") as f:
requirements = f.read().splitlines()
with open(os.path.join(here, "devtools/dev-requirements.txt"), encoding="utf-8") as f:
dev_requirements = f.read().splitlines()
dev_requirements = [
foo for foo in dev_requirements if not (foo.startswith("#") or foo.startswith("-r"))
]
setup(
name="desc-opt",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description=(
"Computes, analyzes and optimizes 3D MHD equilibria for "
+ "stellarators and tokamaks"
),
long_description=long_description,
long_description_content_type="text/x-rst",
url="https://github.com/PlasmaControl/DESC/",
author="Daniel Dudt, Rory Conlin, Dario Panici, Egemen Kolemen",
author_email="PlasmaControl@princeton.edu",
license="MIT",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Visualization",
],
keywords="stellarator tokamak equilibrium perturbation mhd "
+ "magnetohydrodynamics stability confinement plasma physics "
+ "optimization design fusion",
packages=find_packages(exclude=["docs", "tests", "local", "report"]),
include_package_data=True,
install_requires=requirements,
python_requires=">=3.9",
entry_points={"console_scripts": ["desc=desc.__main__:main"]},
project_urls={
"Issues Tracker": "https://github.com/PlasmaControl/DESC/issues",
"Contributing": "https://github.com/PlasmaControl/DESC/blob/master/CONTRIBUTING.rst", # noqa: E501
"Source Code": "https://github.com/PlasmaControl/DESC/",
"Documentation": "https://desc-docs.readthedocs.io/",
},
)