-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
39 lines (34 loc) · 1.17 KB
/
Copy pathsetup.py
File metadata and controls
39 lines (34 loc) · 1.17 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
import setuptools
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
with open("requirements.txt", "r", encoding="utf-8") as fh:
requirements = [line.strip() for line in fh if line.strip() and not line.startswith("#")]
import re
with open("imeti/__init__.py", "r", encoding="utf-8") as f:
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", f.read(), re.M)
if version_match:
version_string = version_match.group(1)
else:
raise RuntimeError("Unable to find version string.")
setuptools.setup(
name="Imeti",
version=version_string,
author="Astrosp",
description="Imeti - Local Image Privacy Tool",
long_description=long_description,
long_description_content_type="text/markdown",
packages=setuptools.find_packages(),
include_package_data=True,
install_requires=requirements,
entry_points={
"console_scripts": [
"imeti=imeti.main:main",
],
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: Other/Proprietary License",
"Operating System :: OS Independent",
],
python_requires=">=3.10",
)