-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
67 lines (62 loc) · 2.01 KB
/
setup.py
File metadata and controls
67 lines (62 loc) · 2.01 KB
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
67
"""Setup script for BatteryPack simulation library."""
from pathlib import Path
from setuptools import find_packages, setup
# Read README
readme_file = Path(__file__).parent / "README.md"
long_description = readme_file.read_text() if readme_file.exists() else ""
# Read requirements
requirements_file = Path(__file__).parent / "requirements.txt"
requirements = []
if requirements_file.exists():
requirements = [
line.strip() for line in requirements_file.read_text().splitlines() if line.strip() and not line.startswith("#")
]
setup(
name="battery-pack-sim",
version="2.0.0",
description="Python battery pack simulator: ECM electro-thermal model, RTE, BMS, and safety analysis",
long_description=long_description,
long_description_content_type="text/markdown",
author="BatteryPack Contributors",
packages=find_packages(),
python_requires=">=3.10",
install_requires=requirements,
keywords=[
"battery simulation",
"lithium-ion",
"battery pack",
"BMS",
"thermal runaway",
"equivalent circuit model",
"electric vehicle",
"energy storage",
"drive cycle",
"round-trip efficiency",
"Python",
],
extras_require={
"dev": [
"pytest>=7.4",
"pytest-cov>=4.1",
"black>=23.0",
"mypy>=1.0",
"flake8>=6.0",
"pylint>=2.17",
],
"optional": [
"pybamm>=23.0", # For PyBaMM integration
],
},
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
],
)