diff --git a/.travis.yml b/.travis.yml index e1423da..c15f758 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,11 @@ +language: python +python: + - "3.6" +install: + - pip install -r requirements-test.txt +script: + - coverage xml + - python-codacy-coverage -r coverage.xml deploy: provider: pypi user: lukeorland @@ -5,3 +13,6 @@ deploy: tags: true password: secure: jlLQDe/zfwJNDwnVbX11wDYNYOVYpXbu9p7hvBef6zIeCPHz5j1N0clqLSTtYZhWgb1NjQPZREimlQRmqpsWBZbZwYv8yuI0P+jCZQ8Y5daxWguGNSzpLrR8kboG0+iqDccO2U0IhVHZJ4jM1+sm1yH0dc1VthGotLDtv9Axwm9uC3hhqz94OY+xIRcyEqxl86GSodc5yj0hKt+H/HDqP7xZ7mYcjvExu4ZUkkOk7S9S+UUzFXI3KyjSgk0qXnVqdZD/MkJL58Id0WSYIgfXWlPdxpFgFNDZTBENAhAz/MQ6IFe4+N0fe9cUr4hfrcaOWPssRKBXIpFA1KOSbDzR0sEXG0gCiU5iKiI42UesgYsTXklGA54Jg1/+IcOkX7CyX/GM73QbVqdCwyDzs/5hWUrMF3IgjedVTpXCd4XeQxzT2w7tT6v+npyjMGRx+9u5ZYSYqTc13Zfa7TxfKyiIpmmhQHif3i7ooNh/+FmQOSx3aT2xgymuCOp0YOH/7QYnEuR7q4MqY/ne/LZ+fWXTZcY4+oM9Lw7C3ZSvIY6mCbCpHgPP2I7B4IL55uUaCtbDGDtWnYDGhASyoL1Z71dvLvP7B6MS0rjpGl6+Df0QmQDUD2ebC8FRZhz3241DR2KU4AY0lDM9KOdB7CCO3AXI3+JkBBsPfA4Cb3O58k1Y54Q= +env: + matrix: + secure: cFLEVrCd1SFsg01Nmj59b5zcSXKVZvTxv61DreADKGNeTXW5rbc7S2zxVPTpI4oJDQBFzZfeNq9dN5+pt2+kI9RM6Ckj/JVK/bqpmRkeEsitLoOMvfR+EsdtQVGH9kRBEUa0C3uCh4zCGnJ92Et8PnIJ6ctsXMLEynhT6yAsULRPES1o9gI/Fozmt/qSgv9MUh8kck0/a5ERl5N2F5EEe1GJZxHrqvchF9QM7aDjoDIOqHkpJ6PsJGMVKV4POPXoYG83qKOElfjmfXs/uGa5yOGcIQfnPGRzvZDK91zLIHZVC9UCNzHMe31uEYLAN7GXEyHcJeTkY8AFK0dVR3SBqbwbKF1XP2tYefoDy30AdmIbworBff+P4IdiKVRGBg/wfK9Ztvf20H9zx3fZXkg3HZv/5Vmj4Zff5F4NTVc3oggt0U5rYxyxtpBMxj3OoeyQYUwoCkY/nwZbSOcm38z2vm19uqH6EKb8l5HQlE0pIkJyAlGWR0XVnuwoqscryZbkXrONT26K9qPx+J8LbBozMqCnhGtO4/bQv4z8H5y9MuI3TOO1Fu6CciNX30Gc6pqK+9PKiCvjfH0N+j02Tkdd/Fb0LngB3rSuYZAeAZAMAEUfwVNxpLN9ygg2q1hovouZU//QsdsKHsZ/ExOQTq3ghO1/0w95MiY8sGJaTLnm2eA= diff --git a/MANIFEST.in b/MANIFEST.in index 1aba38f..4b821b8 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1,2 @@ include LICENSE +include requirements/requirements.in diff --git a/README.md b/README.md index 94f4e6f..3bce9ac 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,11 @@ # pandas_ext +[![Build Status](https://travis-ci.org/newsela/pandas_ext.svg?branch=master)](https://travis-ci.org/newsela/pandas_ext) +[![PyPI version](https://img.shields.io/pypi/v/pandas_ext.svg)](https://pypi.org/project/pandas_ext/) +[![PyPI license](https://img.shields.io/pypi/l/pandas_ext.svg)](https://pypi.org/project/pandas_ext/) +[![Python versions](https://img.shields.io/pypi/pyversions/pandas_ext.svg)](https://pypi.org/project/pandas_ext/) +[![Github Contributors](https://img.shields.io/github/contributors/newsela/pandas_ext.svg)](https://github.com/newsela/pandas_ext/graphs/contributors) +[![Codacy Badge](https://api.codacy.com/project/badge/Grade/9264e1ab2306412c9b772813ebd4ad4a)](https://www.codacy.com/app/richiverse/pandas_ext?utm_source=github.com&utm_medium=referral&utm_content=newsela/pandas_ext&utm_campaign=Badge_Grade) + Python Pandas extensions for pandas dataframes diff --git a/requirements-test.txt b/requirements-test.txt new file mode 100644 index 0000000..df70781 --- /dev/null +++ b/requirements-test.txt @@ -0,0 +1,3 @@ +coverage +codacy-coverage +pytest diff --git a/tests/test_gdrive.py b/tests/test_gdrive.py index d79f8c5..03e506f 100644 --- a/tests/test_gdrive.py +++ b/tests/test_gdrive.py @@ -23,17 +23,20 @@ def to_gdrive_params(): ) +@pytest.mark.skip def test_metadata(url): """Happy path.""" metadata = gdrive.gdrive_metadata(url) assert metadata.title == 'animals.csv' +@pytest.mark.skip def test_metadata_fetch_all(url): metadata = gdrive.gdrive_metadata(url, fetch_all=True) assert isinstance(metadata, dict) +@pytest.mark.skip def test_gdrive_writes(to_gdrive_params): file_name = to_gdrive_params['file_name'] with open(path.join(gettempdir(), file_name), 'w') as test_file: diff --git a/tests/test_sqla_utils.py b/tests/test_sqla_utils.py index 6170192..be68b9d 100644 --- a/tests/test_sqla_utils.py +++ b/tests/test_sqla_utils.py @@ -19,6 +19,6 @@ def test(): assert sqla_utils.schema_from_df(df) == ( '"one" FLOAT8,\n' - '"two" VARCHAR(max),\n' + '"two" VARCHAR(8192),\n' '"three" BOOL' )