-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
82 lines (71 loc) · 2.55 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
#!/usr/bin/env python
#
# Copyright (c) 2022 TUM Department of Electrical and Computer Engineering.
#
# This file is part of MLonMCU.
# See https://github.com/tum-ei-eda/mlonmcu.git for further info.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
"""The setup script."""
import os
from setuptools import setup, find_packages
from seal5.version import __version__
def resource_files(directory):
paths = []
for path, directories, filenames in os.walk(directory):
for filename in filenames:
paths.append(os.path.join("..", path, filename))
return paths
with open("README.md") as readme_file:
readme = readme_file.read()
def get_requirements():
return []
requirements = get_requirements()
setup(
author="TUM Department of Electrical and Computer Engineering - Chair of Electronic Design Automation",
author_email="[email protected]",
python_requires=">=3.8",
classifiers=[ # TODO
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
description="Seal5 - Semi-automated LLVM Support for RISC-V Extensions including Autovectorization",
entry_points={
"console_scripts": [
"seal5=seal5.cli.main:main",
],
},
install_requires=requirements,
extras_require={},
license="Apache License 2.0",
long_description=readme,
long_description_content_type="text/markdown",
include_package_data=True,
keywords="seal5",
name="seal5",
packages=find_packages(include=["seal5", "seal5.*"]),
package_data={"seal5": resource_files("resources")},
test_suite="tests",
tests_require=requirements,
url="https://github.com/tum-ei-eda/seal5",
version=__version__,
zip_safe=False,
)