-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
25 lines (23 loc) · 679 Bytes
/
setup.py
File metadata and controls
25 lines (23 loc) · 679 Bytes
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
from pathlib import Path
from setuptools import setup, find_packages
def find_data_files(directory):
# Finds all files in the directory and subdirectories.
data_files = []
for path in Path(directory).glob("**/*.json"):
data_files.append(str(path.relative_to(directory)))
return data_files
setup(
name="snatch",
version="0.1.0",
packages=find_packages(),
keywords=["artificial intelligence", "osint", "reconnaissance", "information gathering"],
include_package_data=True,
entry_points={
"console_scripts": [
"snatch = src.cli:main"
]
},
package_data={
"": find_data_files("src")
}
)