-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
47 lines (43 loc) · 1.47 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
import setuptools
import os
import re
PACKAGE_NAME = 'mypower'
current_path = os.path.abspath(os.path.dirname(__file__))
version_line = open(os.path.join(current_path, PACKAGE_NAME, 'version.py'), "rt").read()
m = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_line, re.M)
__version__ = m.group(1)
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name = "mypower", # Replace with your own username
version = __version__,
author = "Muhammad Yasirroni",
author_email = "muhammadyasirroni@gmail.com",
description = "Supplementary function and Python port of MATPOWER",
long_description = long_description,
long_description_content_type = "text/markdown",
url = "https://github.com/yasirroni/mypower",
packages = setuptools.find_packages(),
package_data = {},
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: MIT License",
"Development Status :: 3 - Alpha",
"Topic :: Scientific/Engineering",
],
python_requires = '>=3.6',
install_requires = [
"numpy>=1.0.0",
"oct2py>=5.2."
],
extras_require = {
"matpower": [
"matpower>=7.0.0.1"
]
}
)