-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from moj-analytical-services/develop
Revert to AP working version
- Loading branch information
Showing
8 changed files
with
30 additions
and
356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,4 @@ | |
|
||
from .utils import s3_path_join # noqa: F401 | ||
|
||
__version__ = "5.5.5" | ||
__version__ = "5.5.6" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[tool] | ||
[tool.poetry] | ||
name = "pydbtools" | ||
version = "5.5.5" | ||
version = "5.5.6" | ||
description = "A python package to query data via amazon athena and bring it into a pandas df using aws-wrangler." | ||
license = "MIT" | ||
authors = ["Karik Isichei <[email protected]>"] | ||
|
@@ -11,7 +11,7 @@ readme = "README.md" | |
python = ">=3.8,<3.11" # wrangler dependency | ||
boto3 = ">=1.7.4" | ||
sqlparse = "^0.4.4" | ||
awswrangler = "^2.15.0" | ||
awswrangler = "^2.12.0" | ||
pyarrow = ">=5.0.0" | ||
Jinja2 = ">=3.1.0" | ||
sql-metadata = "^2.3.0" | ||
|
@@ -20,7 +20,6 @@ arrow-pd-parser = "^1.3.7" | |
[tool.poetry.dev-dependencies] | ||
pytest = ">=6.1" | ||
toml = "^0.10" | ||
moto = "^4.1.8" | ||
|
||
[build-system] | ||
requires = ["poetry>=0.12"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import toml | ||
import pytest | ||
|
||
|
||
def test_set_module_values(): | ||
|
@@ -27,16 +26,3 @@ def test_pyproject_toml_matches_version(): | |
with open("pyproject.toml") as f: | ||
proj = toml.load(f) | ||
assert pydb.__version__ == proj["tool"]["poetry"]["version"] | ||
|
||
|
||
@pytest.mark.parametrize( | ||
"test_input, expected", | ||
[ | ||
("abcde:12345", "12345"), | ||
("abcde:my-name", "my_name"), | ||
("abcde:[email protected]", "my_name"), | ||
], | ||
) | ||
def test_clean_user_id(test_input, expected): | ||
import pydbtools as pydb | ||
assert pydb.utils.clean_user_id(test_input) == expected |