Skip to content

Commit 0fdf395

Browse files
committed
Support for Python 3.9, Pandas 1.2.1, PyArrow 3. #454 #531
1 parent 5e04df0 commit 0fdf395

File tree

14 files changed

+32
-25
lines changed

14 files changed

+32
-25
lines changed

.github/workflows/static-checking.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: CloudFormation Lint - Databases
3232
run: cfn-lint -t cloudformation/databases.yaml
3333
- name: mypy check
34-
run: mypy .
34+
run: mypy awswrangler
3535
- name: Flake8 Lint
3636
run: flake8 .
3737
- name: Pylint Lint

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ output/
132132
/dev/
133133
metrics/
134134
python/
135+
notes.txt
135136

136137
# SAM
137138
.aws-sam

.pylintrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ disable=print-statement,
140140
exception-escape,
141141
comprehension-escape,
142142
invalid-name,
143-
bad-continuation
143+
bad-continuation,
144+
unsubscriptable-object,
145+
inherit-non-class,
146+
too-few-public-methods
144147

145148
# Enable the message, report, category or checker with the given id(s). You can
146149
# either give multiple identifier separated by comma (,) or put this option

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Easy integration with Athena, Glue, Redshift, Timestream, QuickSight, Chime, Clo
88

99
> An [AWS Professional Service](https://aws.amazon.com/professional-services/) open source initiative | [email protected]
1010
11-
[![Release](https://img.shields.io/badge/release-2.3.0-brightgreen.svg)](https://pypi.org/project/awswrangler/)
12-
[![Python Version](https://img.shields.io/badge/python-3.6%20%7C%203.7%20%7C%203.8-brightgreen.svg)](https://anaconda.org/conda-forge/awswrangler)
11+
[![Release](https://img.shields.io/badge/release-2.4.0-brightgreen.svg)](https://pypi.org/project/awswrangler/)
12+
[![Python Version](https://img.shields.io/badge/python-3.6%20%7C%203.7%20%7C%203.8%20%7C%203.9-brightgreen.svg)](https://anaconda.org/conda-forge/awswrangler)
1313
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
1414
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
1515

awswrangler/__metadata__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77

88
__title__: str = "awswrangler"
99
__description__: str = "Pandas on AWS."
10-
__version__: str = "2.3.0"
10+
__version__: str = "2.4.0"
1111
__license__: str = "Apache License 2.0"

awswrangler/mysql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,8 @@ def to_sql(
333333
_logger.debug("sql: %s", sql)
334334
parameters: List[List[Any]] = _db_utils.extract_parameters(df=df)
335335
cursor.executemany(sql, parameters)
336-
con.commit() # type: ignore
336+
con.commit()
337337
except Exception as ex:
338-
con.rollback() # type: ignore
338+
con.rollback()
339339
_logger.error(ex)
340340
raise

awswrangler/sqlserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
__all__ = ["connect", "read_sql_query", "read_sql_table", "to_sql"]
1717

18-
_pyodbc_found = importlib.util.find_spec("pyodbc")
18+
_pyodbc_found = importlib.util.find_spec("pyodbc") # type: ignore
1919
if _pyodbc_found:
2020
import pyodbc # pylint: disable=import-error
2121

requirements-dev.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,22 @@ isort==5.7.0
22
black==20.8b1
33
pylint==2.6.0
44
flake8==3.8.4
5-
mypy==0.790
5+
mypy==0.800
66
pydocstyle==5.1.1
77
doc8==0.8.1
88
tox==3.21.2
9-
pytest==6.2.1
10-
pytest-cov==2.11.0
9+
pytest==6.2.2
10+
pytest-cov==2.11.1
1111
pytest-xdist==2.2.0
1212
pytest-timeout==1.4.2
13-
cfn-lint~=0.44.3
13+
cfn-lint~=0.44.5
1414
pydot~=1.4.1
1515
cfn-flip==1.2.3
1616
twine==3.3.0
1717
sphinx==3.4.3
1818
sphinx_bootstrap_theme==0.7.1
1919
moto==1.3.16
2020
jupyterlab==3.0.5
21-
jupyter==1.0.0
2221
s3fs==0.4.2
2322
python-Levenshtein==0.12.1
2423
-e .[sqlserver]

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
boto3>=1.12.49,<2.0.0
22
botocore>=1.15.49,<2.0.0
33
numpy>=1.18.0,<1.20.0
4-
pandas>=1.1.0,<=1.2.0
5-
pyarrow~=2.0.0
4+
pandas>=1.1.0,<1.3.0
5+
pyarrow>=2.0.0,<3.1.0
66
redshift-connector~=2.0.0
77
pymysql>=0.9.0,<1.1.0
88
pg8000~=1.16.0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
license=about["__license__"],
2525
packages=find_packages(exclude=["tests"]),
2626
include_package_data=True,
27-
python_requires=">=3.6, <3.9",
27+
python_requires=">=3.6, <3.10",
2828
install_requires=open("requirements.txt").read().strip().split("\n"),
2929
classifiers=[
3030
"Programming Language :: Python :: 3.6",

0 commit comments

Comments
 (0)