Skip to content

Commit 2153b74

Browse files
committed
chore: downgrade python requirement to 3.6
1 parent b91f552 commit 2153b74

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

dataprep/connector/schema/base.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# pylint: disable=missing-function-docstring
44

55
from copy import deepcopy
6-
from dataclasses import dataclass
76
from typing import Callable, Dict, Optional, TypeVar, cast, Any
87

98
from pydantic import BaseModel # pylint: disable=no-name-in-module
@@ -13,13 +12,16 @@
1312
BaseDefT = TypeVar("BaseDefT", bound="BaseDef")
1413

1514

16-
@dataclass
1715
class Policy:
1816
"""Merge policy. Defines how a field can be merged."""
1917

2018
override_none: bool = False
2119
merge: str = "same" # merge policy, values: same, override, keep or None
2220

21+
def __init__(self, override_none: bool = False, merge: str = "same") -> None:
22+
self.override_none = override_none
23+
self.merge = merge
24+
2325

2426
class BaseDef(BaseModel):
2527
"""The base definition."""

pyproject.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "dataprep"
3-
version = "0.2.13"
3+
version = "0.2.13-1"
44
description = "Dataprep: Data Preparation in Python"
55
authors = ["SFU Database System Lab <dsl.cs.sfu@gmail.com>"]
66
maintainers = [
@@ -34,28 +34,28 @@ classifiers = [
3434
]
3535

3636
[tool.poetry.dependencies]
37-
python = "^3.7.8"
37+
python = "^3.6.0"
3838

3939
# Dependencies for EDA
4040
dask = { version = "~2.25", extras = [ "complete" ]}
4141
pandas = "~1.0"
4242
numpy = "~1.19"
4343
scipy = "~1.5"
4444
bokeh = "~2.0"
45+
nltk = "^3.5"
46+
wordcloud = "~1.8"
47+
pillow = "~7.2"
48+
bottleneck = "^1.3.2"
4549

46-
# Dependencies for DataConnector
50+
# Dependencies for Connector
4751
jsonschema = "~3.2"
4852
requests = "~2.24"
4953
jinja2 = "~2.11"
5054
lxml = "~4.5"
51-
nltk = "^3.5"
52-
pillow = "~7.2"
53-
wordcloud = "~1.8"
5455
tqdm = "~4.48"
5556
tornado = "5.0.2"
5657
jsonpath-ng = "~1.5"
5758
aiohttp = "~3.6"
58-
bottleneck = "^1.3.2"
5959
stringcase = "^1.2.0"
6060
pydantic = "^1.6.1"
6161

0 commit comments

Comments
 (0)