-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
68 lines (59 loc) · 2.3 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
import sys
from pathlib import Path
from setuptools import setup
from qgis_plugin_repo import __about__
python_min_version = (3, 7)
if sys.version_info < python_min_version:
sys.exit(
"qgis-plugin-repo requires at least Python version {vmaj}.{vmin}.\n"
"You are currently running this installation with\n\n{curver}".format(
vmaj=python_min_version[0], vmin=python_min_version[1], curver=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()
setup(
name="qgis-plugin-repo",
author=__about__.__author__,
author_email=__about__.__email__,
description=__about__.__summary__,
packages=["qgis_plugin_repo"],
long_description=read_me,
long_description_content_type="text/markdown",
url=__about__.__uri__,
entry_points={"console_scripts": ["qgis-plugin-repo = qgis_plugin_repo.__main__:main"]},
version=VERSION,
project_urls={
"Docs": __about__.__uri__,
"Bug Reports": "{}issues/".format(__about__.__uri__),
"Source": __about__.__uri__,
},
download_url="https://github.com/3liz/qgis-plugin-repo/archive/{}.tar.gz".format(
VERSION
),
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 :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: GIS",
],
install_requires=["requests"],
python_requires=">={vmaj}.{vmin}".format(
vmaj=python_min_version[0], vmin=python_min_version[1]
),
)