forked from ansys/pyaedt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_setup_common.py
92 lines (75 loc) · 2.69 KB
/
_setup_common.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
import fnmatch
import os
import sys
# required since Python 2.7's glob.iglob does not support recursive keyword
def recursive_glob(startpath, filepattern):
"""Return a list of files matching a pattern, searching recursively from a start path.
Keyword Arguments:
startpath -- starting path (directory)
filepattern -- fnmatch-style filename pattern
"""
return [
os.path.join(dirpath, filename)
for dirpath, _, filenames in os.walk(startpath)
for filename in filenames
if fnmatch.fnmatch(filename, filepattern)
]
open3 = open
if sys.version_info < (3, 0):
import io
open3 = io.open
# loosely from https://packaging.python.org/guides/single-sourcing-package-version/
HERE = os.path.abspath(os.path.dirname(__file__))
name = "pyaedt"
with open(os.path.join(HERE, "pyaedt", "version.txt"), "r") as f:
version = f.readline()
author = "ANSYS, Inc."
maintainer = "Massimo Capodiferro"
maintainer_email = "massimo.capodiferro@ansys.com"
description = "Higher-Level Pythonic Ansys Electronics Destkop Framework"
# Get the long description from the README file
with open3(os.path.join(HERE, "README.rst"), encoding="utf-8") as f:
long_description = f.read()
packages = [
"pyaedt",
"pyaedt.misc",
"pyaedt.application",
"pyaedt.modeler",
"pyaedt.modules",
"pyaedt.generic",
"pyaedt.edb_core",
"pyaedt.examples",
"pyaedt.rpc",
"pyaedt.third_party",
"pyaedt.third_party.ironpython",
"pyaedt.third_party.ironpython.rpyc",
"pyaedt.third_party.ironpython.rpyc.core",
"pyaedt.third_party.ironpython.rpyc.lib",
"pyaedt.third_party.ironpython.rpyc.utils",
"pyaedt.third_party.ironpython.plumbum",
"pyaedt.third_party.ironpython.plumbum.cli",
"pyaedt.third_party.ironpython.plumbum.colorlib",
"pyaedt.third_party.ironpython.plumbum.commands",
"pyaedt.third_party.ironpython.plumbum.fs",
"pyaedt.third_party.ironpython.plumbum.machines",
"pyaedt.third_party.ironpython.plumbum.path",
]
data_files = [
("dlls", recursive_glob(os.path.join("pyaedt", "dlls"), "*")),
("misc", recursive_glob(os.path.join("pyaedt", "misc"), "*")),
("License", recursive_glob(".", "*.md")),
("version", ["pyaedt/version.txt"]),
("setup-distutils", ["setup-distutils.py"]),
]
license = "MIT"
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
]