This repository has been archived by the owner on Mar 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
50 lines (44 loc) · 1.64 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
#!/usr/bin/env python
# encoding_ utf8
from setuptools import setup, find_packages
import codecs
import os
import re
def read(*parts):
filename = os.path.join(os.path.dirname(__file__), *parts)
with codecs.open(filename, encoding='utf-8') as fp:
return fp.read()
def find_version(*file_paths):
version_file = read(*file_paths)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
setup(
name='ukis_kafka',
version=find_version('ukis_kafka', "__init__.py"),
description='This package implements a compact binary wireformat to stream vector features using apache kafka.',
description_long=read('README'),
author='Nico Mandery',
author_email='nico.mandery@dlr.de',
install_requires=[
'Fiona==1.7',
'Shapely>=1.5',
'msgpack-python>=0.4',
'psycopg2-binary>=2.6',
'kafka-python==1.4.3',
'python-dateutil>=2.4',
'click>=6.7',
'PyYAML==4.2b1'
],
packages=find_packages(exclude=['tests', 'tests.*', 'examples']),
entry_points={
'console_scripts': [
'ukis_postgis_consumer=ukis_kafka.commands.postgis_consumer:main',
'ukis_dump_consumer=ukis_kafka.commands.dump_consumer:main',
'ukis_vectorlayer_producer=ukis_kafka.commands.vectorlayer_producer:main'
]
},
url='http://git.ukis.eoc.dlr.de/projects/BACKEND/repos/ukis_kafka'
)