forked from opengisch/qgis-plugin-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
98 lines (86 loc) · 3.24 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
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
#! python3 # noqa: E265
# ############################################################################
# ########## Libraries #############
# ##################################
# standard library
import pathlib
import sys
# 3rd party
from setuptools import setup
# package (to get version)
from qgispluginci import __about__
# ############################################################################
# ########## Globals #############
# ################################
HERE = pathlib.Path(__file__).parent
README = (HERE / "README.md").read_text()
python_min_version = (3, 7)
# 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"
# ############################################################################
# ########## Setup #############
# ##############################
if sys.version_info < python_min_version:
sys.exit(
"qgis-plugin-ci 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
)
)
setup(
name="qgis-plugin-ci",
author=__about__.__author__,
author_email=__about__.__email__,
description=__about__.__summary__,
packages=["qgispluginci", "scripts"],
long_description=README,
long_description_content_type="text/markdown",
entry_points={"console_scripts": ["qgis-plugin-ci = scripts.qgis_plugin_ci:main"]},
package_data={"qgispluginci": ["plugins.xml.template"]},
version=VERSION,
url=__about__.__uri__,
project_urls={
"Docs": "https://opengisch.github.io/qgis-plugin-ci/",
"Bug Reports": "{}issues/".format(__about__.__uri__),
"Source": __about__.__uri__,
},
download_url="https://github.com/opengisch/qgis-plugin-ci/archive/{}.tar.gz".format(
VERSION
),
install_requires=[
"GitPython>=3.1,<3.2",
"PyGithub>=1.54,<1.56",
"PyQt5>=5.15,<5.16",
"pyqt5ac>=1.2,<1.3",
"python-slugify>=4.0,<4.1",
"pytransifex>=0.1.10,<0.2",
"pyyaml>=5.4,<5.5",
],
extras_require={
"dev": ["black", "flake8", "pre-commit"],
},
python_requires=">={vmaj}.{vmin}".format(
vmaj=python_min_version[0], vmin=python_min_version[1]
),
# metadata
keywords=["QGIS", "CI", "changelog", "plugin"],
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",
],
)