-
Notifications
You must be signed in to change notification settings - Fork 61
/
setup.py
61 lines (55 loc) · 2.32 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
import os
from setuptools import setup, find_packages
from pip._internal.req import parse_requirements
from pip._internal.network.session import PipSession
this_dir = os.path.dirname(os.path.abspath(__file__))
pip_requirements = parse_requirements(
os.path.join(this_dir, "requirements.txt"), PipSession())
pip_requirements_test = parse_requirements(
os.path.join(this_dir, "requirements-test.txt"), PipSession())
reqs = [pii.requirement for pii in pip_requirements]
reqs_test = [pii.requirement for pii in pip_requirements_test]
readme_path = os.path.join(this_dir, "README.md")
with open(readme_path, "r") as f:
long_description = f.read()
# description must be one line
description = "beep is a python package supporting Battery Estimation and Early Prediction of battery cycle life."
setup(name="beep",
url="https://github.com/TRI-AMDD/beep",
version="2022.10.3.16",
description=description,
long_description=long_description,
long_description_content_type='text/markdown',
packages=find_packages(),
install_requires=reqs,
extras_require={"tests": reqs_test},
entry_points='''
[console_scripts]
beep=beep.cmd:cli
''',
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
package_data={
"beep.conversion_schemas": ["*.yaml", "*.md"],
"beep.protocol.biologic_templates": ["*.mps", "*.csv", "*.json"],
"beep.protocol.procedure_templates": ["*.000", "*.csv", "*.json",
"*.yaml"],
"beep.protocol.protocol_schemas": ["*.yaml", "*.txt"],
"beep.protocol.schedule_templates": ["*.sdu", "*.csv", "*.json"],
"beep.protocol-parameters": ["*.csv"],
"beep.validation_schemas": ["*.yaml"],
# "beep.model": ["*.model"],
# "beep.features": ["*.yaml"]
},
include_package_data=True,
author="Energy and Materials - Toyota Research Institute",
maintainer="Energy and Materials - Toyota Research Institute",
license="Apache",
keywords=[
"materials", "battery", "chemistry", "science",
"electrochemistry", "energy", "AI", "artificial intelligence"
],
)