forked from neudinger/PDIC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
69 lines (62 loc) · 2.14 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
__author__ = "Barre Kevin"
__maintainer__ = "Barre kevin"
__credits__ = ["https://github.com/neudinger"]
__email__ = "[email protected]"
__status__ = "Beta"
import os
import sys
import pathlib
import re
try:
from skbuild import setup
except ImportError:
print('Please update pip, you need pip 10 or greater,\n'
' or you need to install the PEP 518 requirements in pyproject.toml yourself', file=sys.stderr)
raise
here = pathlib.Path(__file__).parent.resolve()
long_description = (here / "README.md").read_text(encoding="utf-8")
version = os.getenv("version", default="0.0.1")
version = re.match(r".*?(\d+\.?\d+\.?\d+).*?",
version, re.S).groups()[0]
print(f"__version__ = '{version}'",
file=open(f"{here}/src/pdic/__version__.py", "w"))
setup(
name="pdic",
version=version,
author_email="[email protected]",
description="Python api (IDL) Transpiler Source-to-source compiler C/C++ to YAML Description based on clang",
long_description_content_type="text/markdown",
long_description=long_description,
author="Barre Kevin",
license="EUPL",
python_requires=">=3.6",
packages=["pdic"],
package_dir={"": "src"},
project_urls={
'Source': 'https://github.com/neudinger/pdic',
},
cmake_install_dir="src/pdic",
cmake_args=['-DDEBUG:BOOL=OFF'],
install_requires=[
"pyyaml"
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
"Programming Language :: C++",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Typing :: Typed",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
'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 :: Only',
],
)