-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
57 lines (51 loc) · 1.65 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
import setuptools
from pathlib import Path
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
def get_version():
"""Retrieve package version."""
version_path = Path() / "taegis_magic" / "_version.py"
if not version_path.exists():
raise RuntimeError(f"{version_path.name} does not exist")
for line in version_path.read_text(encoding="utf-8").splitlines():
if line.startswith("__version__"):
quote = '"' if '"' in line else "'"
version = line.split()[2]
return version.replace(quote, "")
raise RuntimeError("Unable to read version.")
setuptools.setup(
name="taegis-magic",
version=get_version(),
author="Micah Pegman",
author_email="[email protected]",
description="Taegis IPython Magics",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/secureworks/taegis-magics",
packages=setuptools.find_packages(),
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
install_requires=[
"ipython",
"nbformat",
"typer[all]>=0.9.0",
"pandas",
"pandas[excel]",
"taegis-sdk-python",
"Jinja2",
"compress_pickle>=2.1.0",
"gql",
"dataclasses_json",
"click",
"requests",
"ipynbname",
"panel",
"tabulator",
],
python_requires=">=3.8",
entry_points={"console_scripts": ["taegis = taegis_magic.cli:cli"]},
)