-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathsetup.py
63 lines (53 loc) · 1.85 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
from pathlib import Path
from setuptools import find_packages, setup
# Read the contents of README file
source_root = Path(".")
with (source_root / "README.rst").open(encoding="utf-8") as f:
long_description = f.read()
# Read the requirements
with (source_root / "requirements.txt").open(encoding="utf8") as f:
requirements = f.readlines()
with (source_root / "requirements_dev.txt").open(encoding="utf8") as f:
dev_requirements = f.readlines()
with (source_root / "requirements_test.txt").open(encoding="utf8") as f:
test_requirements = f.readlines()
type_geometry_requires = ["shapely"]
type_image_path_requires = ["imagehash", "Pillow"]
extras_requires = {
"type_geometry": type_geometry_requires,
"type_image_path": type_image_path_requires,
"plotting": ["pydot", "pygraphviz", "matplotlib"],
"dev": dev_requirements,
"test": test_requirements,
}
extras_requires["all"] = requirements + [
dependency
for name, dependencies in extras_requires.items()
if name.startswith("type_") or name == "plotting"
for dependency in dependencies
]
setup(
name="visions",
version="0.6.1",
url="https://github.com/dylan-profiler/visions",
description="Visions",
author="Dylan Profiler",
author_email="[email protected]",
package_data={"vision": ["py.typed"]},
packages=find_packages("src"),
package_dir={"": "src"},
install_requires=requirements,
include_package_data=True,
extras_require=extras_requires,
tests_require=test_requirements,
python_requires=">=3.6",
long_description=long_description,
long_description_content_type="text/x-rst",
zip_safe=False,
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
)