forked from annetutil/annet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·46 lines (41 loc) · 1.25 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
#!/usr/bin/env python3
import os
import setuptools
here = os.path.abspath(os.path.dirname(__file__))
def requirements() -> str:
with open(os.path.join(here, "requirements.txt")) as file:
return "".join(
line
for line in file.readlines()
if not line.startswith("-")
)
if __name__ == "__main__":
setuptools.setup(
name="annet",
version=os.getenv("VERSION") or "0.0",
description="annet",
license="MIT",
url="https://github.com/annetutil/annet",
packages=setuptools.find_packages(include=[
"annet",
"annet.*",
"annet_generators",
"annet_generators.*",
]),
package_data={
"annet": ["configs/*"],
"annet.rulebook": ["texts/*.rul", "texts/*.order", "texts/*.deploy"],
"annet.annlib.netdev.devdb": ["data/*.json"],
},
entry_points={
"console_scripts": [
"annet = annet.annet:main",
],
"annet.connectors": [
"storage = annet.adapters.netbox.provider:NetboxProvider",
],
},
python_requires=">=3.8",
install_requires=requirements(),
include_package_data=True,
)