forked from annetutil/annet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·55 lines (48 loc) · 1.55 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·55 lines (48 loc) · 1.55 KB
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
#!/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/*", "py.typed"],
"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",
],
"annet.connectors.storage": [
"file = annet.adapters.file.provider:Provider",
],
},
extras_require={
"netbox": [
"annetbox[sync]>=0.11.1",
"requests-cache>=1.2.1",
],
},
python_requires=">=3.10",
install_requires=requirements(),
include_package_data=True,
)