-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
70 lines (60 loc) · 2.46 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
__copyright__ = 'Copyright 2021, 3Liz'
__license__ = 'GPL version 3'
__email__ = '[email protected]'
import sys
from pathlib import Path
from setuptools import setup
from qgis_plugin_manager import __about__
python_min_version = (3, 7)
if sys.version_info < python_min_version:
sys.exit(
"qgis-plugin-manager requires at least Python version "
f"{python_min_version[0]}.{python_min_version[1]}.\n"
f"You are currently running this installation with\n\n{sys.version}",
)
# This string might be updated on CI on runtime with a proper semantic version name with X.Y.Z
VERSION = "__VERSION__"
if "." not in VERSION:
# If VERSION is still not a proper semantic versioning with X.Y.Z
# let's hardcode 0.0.0
VERSION = "0.0.0"
read_me = Path(__file__).parent.joinpath("README.md").read_text(encoding='utf8')
setup(
name="qgis-plugin-manager",
author=__about__.__author__,
author_email=__about__.__email__,
description=__about__.__summary__,
packages=["qgis_plugin_manager"],
long_description=read_me,
long_description_content_type="text/markdown",
url=__about__.__uri__,
entry_points={"console_scripts": ["qgis-plugin-manager = qgis_plugin_manager.__main__:main"]},
version=VERSION,
project_urls={
"Docs": f"{__about__.__uri__}/blob/master/README.md",
"Bug Reports": f"{__about__.__uri__}/issues/",
"Source": __about__.__uri__,
},
download_url=f"https://github.com/3liz/qgis-plugin-manager/archive/{VERSION}.tar.gz",
keywords=["QGIS"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: System Administrators",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: GIS",
],
install_requires=[],
python_requires=f">={python_min_version[0]}.{python_min_version[1]}",
include_package_data=True,
)