forked from 3liz/py-qgis-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
72 lines (66 loc) · 2.51 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
from setuptools import setup, find_namespace_packages
import os
def parse_requirements( filename ):
with open( filename ) as fp:
return list(filter(None, (r.strip('\n ').partition('#')[0] for r in fp.readlines())))
def get_version():
with open('VERSION') as fp:
return fp.read().strip()
VERSION = get_version()
DESCRIPTION = ('Py-Qgis-Server is an implementation of the OWS standards '
'standard from the Open Geospatial Consortium.'
'Py-Qgis-Server written in Python and built on top of Qgis server'
'implementation')
KEYWORDS = 'QGIS OWS OGC'
kwargs = {}
with open('README.md') as f:
kwargs['long_description'] = f.read()
# Parse requirement file and transform it to setuptools requirements'''
requirements = 'requirements.txt'
if os.path.exists(requirements):
kwargs['install_requires']=parse_requirements(requirements)
setup(
name='py-qgis-server',
version=VERSION,
author='3Liz',
author_email='david.marteau@3liz.com',
maintainer='David Marteau',
maintainer_email='dmarteau@3liz.com',
long_description_content_type="text/markdown",
description=DESCRIPTION,
keywords=KEYWORDS,
url='https://github.com/3liz/py-qgis-server',
packages=find_namespace_packages(include=['pyqgisserver','pyqgisserver.*',
'pyqgisservercontrib.*']),
entry_points={
'console_scripts': [
'qgisserver = pyqgisserver.server:main',
'qgisserver-worker = pyqgisserver.qgsworker:main',
],
'py_qgis_server.monitors':[
'amqp = pyqgisserver.monitors.amqp:Monitor',
'test = pyqgisserver.monitors.test',
],
'py_qgis_server.cache.observers':[
'test = pyqgisserver.qgscache.observers.test',
'ban = pyqgisserver.qgscache.observers.ban',
]
},
# Add manifest to main package
include_package_data=True,
package_data={"pyqgisserver": ['build.manifest'] },
python_requires='>=3.6',
classifiers=[
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3",
"Operating System :: POSIX :: Linux",
"Topic :: Scientific/Engineering :: GIS",
],
**kwargs
)