forked from jepegit/cellpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
106 lines (92 loc) · 2.61 KB
/
setup.py
File metadata and controls
106 lines (92 loc) · 2.61 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Setup script for PyPI packaging
This script is used for creating the PyPI package.
$ python setup.py sdist # create gzip distr (source dist)
$ python setup.py bdist_wheel # create build
$ twine upload dist/* # upload to PyPI
"""
from setuptools import setup, find_packages
import os
with open("README.rst") as readme_file:
readme = readme_file.read()
with open("HISTORY.rst") as history_file:
history = history_file.read()
included_packages = find_packages(exclude=["build", "docs", "templates"])
requirements = [
"scipy",
"numpy>=1.16.4",
"pandas",
"python-box",
"setuptools",
"ruamel.yaml",
"matplotlib",
"xlrd",
"click",
"PyGithub",
"tqdm",
'pyodbc;platform_system=="windows"',
# 'pytables', # not available by pip
]
test_requirements = [
"scipy",
"numpy>=1.16.4",
"pandas",
"python-box",
"setuptools",
"ruamel.yaml",
"matplotlib",
"lmfit",
"pyodbc",
"xlrd",
"click",
"PyGithub",
# 'pytables', # not available by pip
"pytest",
"tqdm",
]
extra_req_batch = ["ipython", "jupyter"]
extra_req_fit = ["lmfit", "matplotlib"]
extra_req_all = extra_req_batch + extra_req_fit
extra_requirements = {
"batch": extra_req_batch,
"fit": extra_req_fit,
"all": extra_req_all,
}
name = "cellpy"
here = os.path.abspath(os.path.dirname(__file__))
user_dir = os.path.expanduser("~")
version_ns = {}
with open(os.path.join(here, name, "_version.py")) as f:
exec(f.read(), {}, version_ns)
description = "Extract and manipulate data from battery cell testers."
setup(
name=name,
version=version_ns["__version__"],
description=description,
long_description=readme + "\n\n" + history,
author="Jan Petter Maehlen",
author_email="jepe@ife.no",
url="https://github.com/jepegit/cellpy",
packages=included_packages,
package_dir={"cellpy": "cellpy"},
package_data={"parameters": [".cellpy_prms_default.conf"]},
entry_points={"console_scripts": ["cellpy=cellpy.cli:cli"]},
include_package_data=True,
install_requires=requirements,
license="MIT license",
zip_safe=False,
keywords="cellpy",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
test_suite="tests",
tests_require=test_requirements,
extras_require=extra_requirements,
)