mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-16 05:02:59 +00:00
More python 3.6 compat
This commit is contained in:
parent
42320081e1
commit
0660991fb8
@ -1,7 +1,7 @@
|
||||
# Install From Source
|
||||
## Pre-Requisites
|
||||
- On MacOS: `brew install librdkafka`
|
||||
- On Debian/Ubuntu: `sudo apt install librdkafka-dev`
|
||||
- On Debian/Ubuntu: `sudo apt install librdkafka-dev python3-dev python3-venv`
|
||||
|
||||
## Set up python environment (requires python 3.7+)
|
||||
- python3 -m venv venv
|
||||
|
@ -50,7 +50,7 @@ setuptools.setup(
|
||||
"Environment :: MacOS X",
|
||||
"Topic :: Software Development",
|
||||
],
|
||||
python_requires=">=3.7",
|
||||
python_requires=">=3.6",
|
||||
package_dir={"": "src"},
|
||||
packages=setuptools.find_packages(where='./src'),
|
||||
include_package_data=True,
|
||||
|
@ -3,7 +3,7 @@ from gometa.configuration import ConfigModel
|
||||
from gometa.configuration.kafka import KafkaConsumerConnectionConfig
|
||||
from gometa.ingestion.api.source import Source, Extractor, SourceReport
|
||||
from gometa.ingestion.api.source import WorkUnit
|
||||
from typing import Optional, Iterable, List, Dict
|
||||
from typing import Optional, Iterable, List, Dict, Any
|
||||
from dataclasses import dataclass, field
|
||||
import confluent_kafka
|
||||
from confluent_kafka.schema_registry.schema_registry_client import SchemaRegistryClient
|
||||
@ -54,7 +54,7 @@ class KafkaSourceReport(SourceReport):
|
||||
@dataclass
|
||||
class KafkaSource(Source):
|
||||
source_config: KafkaSourceConfig
|
||||
topic_pattern: re.Pattern
|
||||
topic_pattern: Any # actually re.Pattern
|
||||
consumer: confluent_kafka.Consumer
|
||||
report: KafkaSourceReport
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user