-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
73 lines (68 loc) · 2.32 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
69
70
71
72
73
import json
import urllib.request
from setuptools import setup, find_packages
def latest_version(package_name):
url = f"https://pypi.python.org/pypi/{package_name}/json"
try:
response = urllib.request.urlopen(urllib.request.Request(url), timeout=1)
data = json.load(response)
versions = data["releases"].keys()
versions = sorted(versions)
return ">={}".format(versions[-1])
except Exception:
pass
return ""
with open("README.md", "r", encoding="utf-8") as f:
long_description = f.read()
setup(
name="cascade-trainer",
author="Ege Akman",
author_email="[email protected]",
url="https://github.com/egeakman/cascade-trainer",
description="An OpenCV based cascade trainer",
long_description=long_description,
long_description_content_type="text/markdown",
version="2022.2.8",
license="AGPLv3",
download_url="https://github.com/egeakman/cascade-trainer/archive/2022.2.8.tar.gz",
packages=find_packages(where=".", exclude=["tests"]),
include_package_data=True,
package_data={"data": ["data/*.*"]},
zip_safe=False,
python_requires=">=3.6",
entry_points={
"console_scripts": [
"cascade-trainer=cascade_trainer.train:main",
]
},
install_requires=[
f"setuptools{latest_version('setuptools')}",
f"opencv-python{latest_version('opencv-python')}",
],
keywords=[
"OpenCV",
"Cascade",
"Trainer",
"CLI",
"Haar" "Object Detection",
"Video Processing",
"Computer Vision",
],
classifiers=[
"Topic :: Utilities",
"Topic :: Scientific/Engineering :: Image Recognition",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
"Programming Language :: Python :: 3 :: Only",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Environment :: Console",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Operating System :: Microsoft :: Windows",
],
project_urls={
"Homepage": "https://github.com/egeakman/cascade-trainer",
"Issues": "https://github.com/egeakman/cascade-trainer/issues",
},
)