-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathsetup.py
51 lines (48 loc) · 1.4 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
from distutils.core import setup
import os
from setuptools import find_packages
# User-friendly description from README.md
current_directory = os.path.dirname(os.path.abspath(__file__))
try:
with open(os.path.join(current_directory, "README.md"), encoding="utf-8") as f:
long_description = f.read()
except Exception:
long_description = ""
# Defines __version__
root = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(root, "pybop", "version.py")) as f:
exec(f.read())
setup(
name="pybop",
packages=find_packages("."),
version=__version__, # noqa F821
license="BSD-3-Clause",
description="Python Battery Optimisation and Parameterisation",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/pybop-team/PyBOP",
install_requires=[
"pybamm>=23.5",
"numpy>=1.16",
"scipy>=1.3",
"pandas>=1.0",
"pints>=0.5",
],
extras_require={
"plot": ["plotly>=5.0"],
"all": ["pybop[plot]"],
"docs": [
"sphinx>=6",
"pydata-sphinx-theme",
"sphinx-autobuild",
"sphinx-autoapi",
"sphinx_copybutton",
"sphinx_favicon",
"sphinx_design",
"myst-parser",
],
},
# https://pypi.org/classifiers/
classifiers=[],
python_requires=">=3.8,<=3.12",
)