-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
68 lines (62 loc) · 1.63 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
58
59
60
61
62
63
64
65
66
67
68
#
# setup.py: degirum_tools package setup file
#
# Copyright DeGirum Corporation 2024
# All rights reserved
#
# NOTE: before making new degirum_tools package release,
# increment the version number in `degirum_tools/_version.py`
#
from setuptools import setup
from pathlib import Path
root_path = Path(__file__).resolve().parent
# get version
exec(open(root_path / "degirum_tools/_version.py").read())
# load README.md
readme = open(root_path / "README.md", encoding="utf-8").read()
setup(
name="degirum_tools",
version=__version__, # noqa
description="Tools for PySDK",
author="DeGirum",
license="",
long_description=readme,
long_description_content_type="text/markdown",
packages=[
"degirum_tools",
],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
],
entry_points={
"console_scripts": [
"degirum_tools = degirum_tools:_command_entrypoint",
]
},
install_requires=[
line
for line in open(root_path / "requirements.txt")
if line and not line.startswith("#")
],
python_requires=">=3.8",
# extras
extras_require={
# linters for CI/CD
"linting": [
"black",
"mypy",
"flake8",
"pre-commit",
"types-Pillow",
"types-PyYAML",
],
# testing for CI/CD
"testing": ["pytest", "coverage"],
# building for CI/CD
"build": ["build"],
# external notifications
"notifications": ["apprise", "minio"],
},
include_package_data=True,
)