forked from Eomys/pyleecan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
96 lines (84 loc) · 2.44 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
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
try:
import setuptools
except ImportError: # Install setuptools if needed
from os import system
from sys import executable
# run 'pip install setuptools'
system("{} -m pip install setuptools".format(executable))
import setuptools
import platform
# /!\ Increase the number before a release
# See https://www.python.org/dev/peps/pep-0440/
# Examples :
# First alpha of the release 0.1.0 : 0.1.0a1
# First beta of the release 1.0.0 : 1.0.0b1
# Second release candidate of the release 2.6.4 : 2.6.4rc2
# Release 1.1.0 : 1.1.0
# First post release of the release 1.1.0 : 1.1.0.post1
PYLEECAN_VERSION = "1.3.6"
with open("README.md", "r") as fh:
long_description = fh.read()
python_requires = ">= 3.6"
# Pyleecan dependancies
install_requires = [
"setuptools",
"cloudpickle>=1.3.0",
"matplotlib>=3.3.2",
"numpy>1.19.5",
"pandas>=1.0.3",
'pyfemm>=0.1.1;platform_system=="Windows"',
"PySide2>=5.15.2",
"swat_em>=0.6.3",
"scipy>=1.4.1",
"xlrd>=1.2.0",
"xlwt>=1.3.0",
"deap>=1.3.1",
"SciDataTool>=1.4.9",
"pyvista>=0.25.3",
"meshio>=4.0.15",
"h5py>=3.2.1",
"nbformat",
"nbconvert",
"quadpy",
"ezdxf>=0.14.2",
"pytest-qt>=3.3.0",
"pyuff>=1.25",
]
tests_require = [
"ddt>=1.3.1",
"pytest>=5.4.1",
"pytest-qt>=3.3.0",
"mock>=4.0.2",
"nbformat",
"nbconvert",
]
setuptools.setup(
name="pyleecan",
version=PYLEECAN_VERSION,
author="Pyleecan Developers",
author_email="[email protected]",
description="Python Library for Electrical Engineering Computational Analysis",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Eomys/pyleecan",
download_url="https://github.com/Eomys/pyleecan/archive/"
+ PYLEECAN_VERSION
+ ".tar.gz",
packages=setuptools.find_packages(exclude=["Tests*", "Tutorials*"]),
package_data={
# Include any *.json files found in pyleecan:
# '': ['*.json'],
"pyleecan": ["*.json"]
},
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
python_requires=python_requires,
install_requires=install_requires,
extras_require={
"test": tests_require
}, # Enables to install the test dependancies using pip install pyleecan[test]
)