-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
73 lines (66 loc) · 2.56 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
import os
from setuptools import setup
here = os.path.abspath(os.path.dirname(__name__))
# with open(os.path.join(here, "README.md")) as f:
# README = f.read()
README = "Interface library to communicate with QGIS-Server light"
with open(os.path.join(here, "CHANGES.md")) as f:
CHANGES = f.read()
with open(os.path.join(here, "requirements.interface.txt")) as f:
install_requires = f.read().splitlines()
tests_require = ["pytest", "pytest-cov"] # includes virtualenv
worker_files = {}
worker_modules = []
worker_packages = []
worker_scripts = []
if os.environ.get("WITH_WORKER", False):
with open(os.path.join(here, "requirements.worker.txt")) as f:
install_requires = install_requires + f.read().splitlines()
worker_files = {"qgis_server_light.worker": ["*.py"]}
worker_modules = [
"qgis_server_light/worker/engine",
"qgis_server_light/worker/image_utils",
"qgis_server_light/worker/qgis",
"qgis_server_light/worker/redis",
"qgis_server_light/worker/runner",
]
worker_packages = ["qgis_server_light.worker"]
worker_scripts = ["redis_worker=qgis_server_light.worker.redis:main"]
package_data = {"qgis_server_light.interface": ["*.py"]}
package_data.update(worker_files)
setup(
name="qgis_server_light",
version="v0.0.2",
description="qgis renderer as a python process",
long_description=README + "\n\n" + CHANGES,
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Topic :: Internet :: WWW/HTTP",
"Typing :: Typed",
],
author="Clemens Rudert (OPENGIS.ch)",
author_email="[email protected]",
url="https://github.com/opengisch/qgis-server-light",
keywords=["web worker qgis qgis-server processing"],
packages=["qgis_server_light.interface"] + worker_packages,
package_dir={"": "src"},
package_data=package_data,
py_modules=[
"qgis_server_light/interface/job",
"qgis_server_light/interface/dispatcher",
"qgis_server_light/interface/qgis",
]
+ worker_modules,
include_package_data=True,
zip_safe=False,
project_urls={
"Documentation": "https://github.com/opengisch/qgis-server-light",
"Changelog": "https://github.com/opengisch/qgis-server-light/blob/master/CHANGES.md",
"Issue Tracker": "https://github.com/opengisch/qgis-server-light/issues",
},
install_requires=install_requires,
entry_points={"console_scripts": [] + worker_scripts},
)