forked from W24-Service-GmbH/werk24-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
98 lines (89 loc) · 2.7 KB
/
setup.py
File metadata and controls
98 lines (89 loc) · 2.7 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
import re
from os import path
from setuptools import setup
VERSIONFILE = "werk24/_version.py"
NAME = "werk24"
def _get_version(version_file: str) -> str:
version_pattern = r"^__version__ = ['\"]([^'\"]*)['\"]"
with open(version_file, "rt") as file_handle:
match = re.search(version_pattern, file_handle.read(), re.M)
if match:
return match.group(1)
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
def _get_description() -> str:
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, "README.md")) as file_handle:
return file_handle.read()
setup(
name=NAME,
version=_get_version(VERSIONFILE),
author="W24 Service GmbH",
author_email="[email protected]",
description="Werk24 Client to read PDF- and Image-based "
"Technical Drawings / Engineering Drawings",
url="https://werk24.io",
entry_points={
"console_scripts": [
"w24cli=werk24.cli.w24cli:main",
],
},
license="commercial",
packages=[
"werk24",
"werk24.cli",
"werk24.models",
],
include_package_data=True,
package_data={"werk24": ["assets/*"]},
install_requires=[
"aiohttp >= 3.8.3",
"boto3 >= 1.14.44",
"pydantic>=2.5.1",
"pydantic-extra-types>=2.1.0",
"python-dotenv>=0.10.1,<1.0",
"websockets >= 10.3",
"pint >= 0.21",
"termcolor>=2.0.0",
"colorama>=0.4.4",
"certifi>=2020.12.5",
],
classifiers=[
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Image Recognition",
],
keywords=[
"Digitisation",
"Digitization",
"Engineering Drawing",
"Engineering Drawings",
"Technical Drawing",
"Technical Drawings",
"CAD",
"CAD Drawing",
"Data Extraction",
"Information Extraction",
"Model Based Definition",
"EN10027",
"ISO2768",
"Title Block",
"General Tolerances",
"Material",
"Drawing ID",
"Drawing Designation",
"Product Manufacturing Information",
"PMI",
"Scanned Document",
"Bill of Material",
"BOM",
"Anonymiziation",
"RFQ",
"GD&T",
"General Dimensioning and Toleration",
"Vectorization",
],
python_requires=">=3.9.0",
project_urls={"Documentation": "https://docs.werk24.io/"},
long_description_content_type="text/markdown",
long_description=_get_description(),
)