Skip to content

Commit cc31d1c

Browse files
authored
Testing PyArrow 5 Distribution Build (#861)
1 parent e85ac6c commit cc31d1c

File tree

10 files changed

+37
-14
lines changed

10 files changed

+37
-14
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ updates:
1010
prefix: "[skip ci] pip"
1111
prefix-development: "[skip ci] pip"
1212
include: "scope"
13-
open-pull-requests-limit: 5

.github/workflows/static-checking.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
python -m pip install --upgrade pip
3030
pip install -U -r requirements-dev.txt
3131
- name: mypy check
32-
run: yes y | mypy --install-types awswrangler
32+
run: mypy --install-types --non-interactive awswrangler
3333
- name: Flake8 Lint
3434
run: flake8 .
3535
- name: Pylint Lint

awswrangler/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def chunkify(lst: List[Any], num_chunks: int = 1, max_length: Optional[int] = No
227227
if not lst:
228228
return []
229229
n: int = num_chunks if max_length is None else int(math.ceil((float(len(lst)) / float(max_length))))
230-
np_chunks = np.array_split(lst, n)
230+
np_chunks = np.array_split(lst, n) # type: ignore
231231
return [arr.tolist() for arr in np_chunks if len(arr) > 0]
232232

233233

awswrangler/timestream.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,15 +200,15 @@ def write(
200200

201201

202202
def query(
203-
sql: str, pagination_config: Dict[str, Any] = None, boto3_session: Optional[boto3.Session] = None
203+
sql: str, pagination_config: Optional[Dict[str, Any]] = None, boto3_session: Optional[boto3.Session] = None
204204
) -> pd.DataFrame:
205205
"""Run a query and retrieve the result as a Pandas DataFrame.
206206
207207
Parameters
208208
----------
209209
sql: str
210210
SQL query.
211-
pagination_config: Dict[str, Any]
211+
pagination_config: Dict[str, Any], optional
212212
Pagination configuration dictionary of a form {'MaxItems': 10, 'PageSize': 10, 'StartingToken': '...'}
213213
boto3_session : boto3.Session(), optional
214214
Boto3 Session. The default boto3 Session will be used if boto3_session receive None.

building/lambda/build-lambda-layer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export ARROW_HOME=$(pwd)/dist
1414
export LD_LIBRARY_PATH=$(pwd)/dist/lib:$LD_LIBRARY_PATH
1515

1616
git clone \
17-
--branch apache-arrow-4.0.0 \
17+
--branch apache-arrow-5.0.0 \
1818
--single-branch \
1919
https://github.com/apache/arrow.git
2020

docs/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dependencies:
88
- pip:
99
- nbsphinx
1010
- nbsphinx-link
11-
- sphinx==4.0.3
11+
- sphinx
1212
- sphinx_bootstrap_theme
1313
- IPython
1414
- -e ..

docs/source/api.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ API Reference
88
* `PostgreSQL`_
99
* `MySQL`_
1010
* `Microsoft SQL Server`_
11+
* `Data API Redshift`_
12+
* `Data API RDS`_
1113
* `DynamoDB`_
1214
* `Amazon Timestream`_
1315
* `Amazon EMR`_
@@ -173,6 +175,28 @@ ____________________
173175
read_sql_table
174176
to_sql
175177

178+
Data API Redshift
179+
-----------------
180+
181+
.. currentmodule:: awswrangler.data_api.redshift
182+
183+
.. autosummary::
184+
:toctree: stubs
185+
186+
connect
187+
read_sql_query
188+
189+
Data API RDS
190+
------------
191+
192+
.. currentmodule:: awswrangler.data_api.rds
193+
194+
.. autosummary::
195+
:toctree: stubs
196+
197+
connect
198+
read_sql_query
199+
176200
DynamoDB
177201
--------
178202

requirements-dev.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
wheel==0.36.2
22
isort==5.9.3
33
black==21.7b0
4-
pylint==2.9.5
4+
pylint==2.9.6
55
flake8==3.9.2
6-
mypy==0.902
6+
mypy==0.910
77
pydocstyle==6.1.1
88
doc8==0.9.0
99
tox==3.24.1
@@ -14,13 +14,13 @@ pytest-xdist==2.3.0
1414
pytest-timeout==1.4.2
1515
pydot==1.4.2
1616
twine==3.4.2
17-
sphinx==4.0.3
17+
sphinx==4.1.2
1818
sphinx_bootstrap_theme==0.7.1
1919
nbsphinx==0.8.6
2020
nbsphinx-link==1.3.0
2121
IPython==7.16.0
22-
moto==2.2.0
23-
jupyterlab==3.1.1
22+
moto==2.2.1
23+
jupyterlab==3.1.2
2424
s3fs==2021.7.0
2525
python-Levenshtein==0.12.2
2626
bump2version==1.0.1

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ botocore>=1.19.8,<2.0.0
33
numpy>=1.18.0,<2.0.0
44
pandas>=1.1.0,<2.0.0
55
pyarrow>=2.0.0,<5.1.0
6-
redshift-connector~=2.0.883
6+
redshift-connector~=2.0.884
77
pymysql>=0.9.0,<1.1.0
88
pg8000>=1.16.0,<1.22.0
99
openpyxl~=3.0.0

validate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -ex
33

44
isort --check .
55
black --check .
6-
yes y | mypy --install-types awswrangler
6+
mypy --install-types --non-interactive awswrangler
77
flake8 .
88
pylint -j 0 awswrangler
99
pydocstyle awswrangler/ --convention=numpy

0 commit comments

Comments
 (0)