-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsetup.py
51 lines (45 loc) · 1.5 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
#!/usr/bin/env python3
# -*- coding:utf8 -*-
from setuptools import setup, find_packages
import re
MRE = r"__([a-z]+)__\s*=\s*['\"]([^'\"]*)['\"]"
# Retrieve all metadata from project
with open("__metadata.py", "rt") as meta_file:
metadata = dict(re.findall(MRE, meta_file.read()))
meta_file.close()
# Get required packages from requirements.txt
# Make it compatible with setuptools and pip
with open("requirements.txt", "rt") as f:
requirements = f.read().splitlines()
setup(
name="sysplant",
description="SysPlant is your syscalls factory",
url="https://github.com/x42en/sysplant",
license="MIT",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Security",
"Topic :: Software Development :: Code Generators",
],
author=metadata["author"],
author_email=metadata["authoremail"],
version=metadata["version"],
packages=find_packages(),
install_requires=requirements,
package_data={
metadata["name"]: [
"data/*.json",
"data/*.nim",
"templates/**/*.nim",
"templates/**/*.cpp",
"templates/**/*.c",
"templates/**/*.h",
]
},
)